www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15311] New: [dmd-internal] DsymbolExp.resolve and

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 puremagic.com
          Reporter: k.hara.pg 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.

--
Nov 09 2015