[Issue 15311] New: [dmd-internal] DsymbolExp.resolve and DotIdExp.semanticY (eright.op == TOKimport) need to be merged

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 9 18:56:44 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15311

          Issue ID: 15311
           Summary: [dmd-internal] DsymbolExp.resolve and
                    DotIdExp.semanticY (eright.op == TOKimport) need to be
                    merged
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: k.hara.pg at gmail.com
        Depends on: 15116, 15117, 15310, 14858

DsymbolExp.resolve converts a D symbol to corresponding expression object.

In DotIdExp.semanticY, if eright.op == TOKimport, the found symbol is converted
to corresponding expression object with the 'eleft' context.

They're doing similar work, but they are not yet enough consistent. Issue
14858, issue 15116, issue 15117, and issue 15310 (14603 and 14604) have been
caused by the inconsistency between them.

I think, DsymbolExp.resolve should take one more parameter 'eleft', and if it's
not null, it should work like DotIdExp.semanticY.

--


More information about the Digitalmars-d-bugs mailing list