Mercurial > projects > ddmd
comparison dmd/FileInitExp.d @ 130:60bb0fe4563e
dmdfe 2.037 first main iteration
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 09 Sep 2010 22:51:44 +0100 |
parents | e28b18c23469 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
129:010eb8f0e18d | 130:60bb0fe4563e |
---|---|
21 { | 21 { |
22 type = Type.tchar.invariantOf().arrayOf(); | 22 type = Type.tchar.invariantOf().arrayOf(); |
23 return this; | 23 return this; |
24 } | 24 } |
25 | 25 |
26 override Expression resolve(Loc loc, Scope sc) | 26 override Expression resolveLoc(Loc loc, Scope sc) |
27 { | 27 { |
28 //printf("FileInitExp::resolve() %.*s\n", toChars()); | 28 //printf("FileInitExp::resolve() %.*s\n", toChars()); |
29 string s = loc.filename ? loc.filename : sc.module_.ident.toChars(); | 29 string s = loc.filename ? loc.filename : sc.module_.ident.toChars(); |
30 Expression e = new StringExp(loc, s); | 30 Expression e = new StringExp(loc, s); |
31 e = e.semantic(sc); | 31 e = e.semantic(sc); |