Mercurial > projects > ddmd
comparison dmd/FileInitExp.d @ 55:8c2c7b7579f8
Expression.toMangleBuffer
Expression.toDelegate
Expression.scanForNestedRef
TypeStruct.deduceType
TypeStruct.toChars
DefaultInitExp wrong TOK bug fixed
author | korDen |
---|---|
date | Sat, 21 Aug 2010 13:28:16 +0400 |
parents | 460959608115 |
children | 2e2a5c3f943a |
comparison
equal
deleted
inserted
replaced
54:f95140b40251 | 55:8c2c7b7579f8 |
---|---|
22 return this; | 22 return this; |
23 } | 23 } |
24 | 24 |
25 Expression resolve(Loc loc, Scope sc) | 25 Expression resolve(Loc loc, Scope sc) |
26 { | 26 { |
27 //printf("FileInitExp::resolve() %s\n", toChars()); | 27 //printf("FileInitExp::resolve() %.*s\n", toChars()); |
28 string s = loc.filename ? loc.filename : sc.module_.ident.toChars(); | 28 string s = loc.filename ? loc.filename : sc.module_.ident.toChars(); |
29 Expression e = new StringExp(loc, s); | 29 Expression e = new StringExp(loc, s); |
30 e = e.semantic(sc); | 30 e = e.semantic(sc); |
31 e = e.castTo(sc, type); | 31 e = e.castTo(sc, type); |
32 return e; | 32 return e; |