Mercurial > projects > ddmd
comparison dmd/TypeidExp.d @ 72:2e2a5c3f943a
reduced warnings by adding override to the methods
think this also normalizes different line endings used all over the place
author | Trass3r |
---|---|
date | Sat, 28 Aug 2010 16:19:48 +0200 |
parents | 10317f0c89a5 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
23 Type clone() | 23 Type clone() |
24 { | 24 { |
25 assert(false); | 25 assert(false); |
26 } | 26 } |
27 } | 27 } |
28 Expression syntaxCopy() | 28 override Expression syntaxCopy() |
29 { | 29 { |
30 return new TypeidExp(loc, typeidType.syntaxCopy()); | 30 return new TypeidExp(loc, typeidType.syntaxCopy()); |
31 } | 31 } |
32 | 32 |
33 Expression semantic(Scope sc) | 33 override Expression semantic(Scope sc) |
34 { | 34 { |
35 Expression e; | 35 Expression e; |
36 | 36 |
37 version (LOGSEMANTIC) { | 37 version (LOGSEMANTIC) { |
38 printf("TypeidExp.semantic()\n"); | 38 printf("TypeidExp.semantic()\n"); |
42 if (e.loc.linnum == 0) | 42 if (e.loc.linnum == 0) |
43 e.loc = loc; // so there's at least some line number info | 43 e.loc = loc; // so there's at least some line number info |
44 return e; | 44 return e; |
45 } | 45 } |
46 | 46 |
47 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 47 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
48 { | 48 { |
49 assert(false); | 49 assert(false); |
50 } | 50 } |
51 } | 51 } |
52 | 52 |