comparison dmd/TypeSlice.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 38a17310d587
children 3482c73a991b
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
40 { 40 {
41 assert(false); 41 assert(false);
42 } 42 }
43 } 43 }
44 44
45 Type syntaxCopy() 45 override Type syntaxCopy()
46 { 46 {
47 Type t = new TypeSlice(next.syntaxCopy(), lwr.syntaxCopy(), upr.syntaxCopy()); 47 Type t = new TypeSlice(next.syntaxCopy(), lwr.syntaxCopy(), upr.syntaxCopy());
48 t.mod = mod; 48 t.mod = mod;
49 return t; 49 return t;
50 } 50 }
51 51
52 Type semantic(Loc loc, Scope sc) 52 override Type semantic(Loc loc, Scope sc)
53 { 53 {
54 //printf("TypeSlice.semantic() %s\n", toChars()); 54 //printf("TypeSlice.semantic() %s\n", toChars());
55 next = next.semantic(loc, sc); 55 next = next.semantic(loc, sc);
56 transitive(); 56 transitive();
57 //printf("next: %s\n", next.toChars()); 57 //printf("next: %s\n", next.toChars());
87 } 87 }
88 88
89 return new TypeTuple(args); 89 return new TypeTuple(args);
90 } 90 }
91 91
92 void resolve(Loc loc, Scope sc, Expression* pe, Type* pt, Dsymbol* ps) 92 override void resolve(Loc loc, Scope sc, Expression* pe, Type* pt, Dsymbol* ps)
93 { 93 {
94 next.resolve(loc, sc, pe, pt, ps); 94 next.resolve(loc, sc, pe, pt, ps);
95 if (*pe) 95 if (*pe)
96 { // It's really a slice expression 96 { // It's really a slice expression
97 Expression e; 97 Expression e;
153 Ldefault: 153 Ldefault:
154 Type.resolve(loc, sc, pe, pt, ps); 154 Type.resolve(loc, sc, pe, pt, ps);
155 } 155 }
156 } 156 }
157 157
158 void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) 158 override void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod)
159 { 159 {
160 assert(false); 160 assert(false);
161 } 161 }
162 } 162 }