Mercurial > projects > ddmd
comparison dmd/TupleDeclaration.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 | 81796b717a39 |
children | 5c859d5fbe27 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
29 this.objects = objects; | 29 this.objects = objects; |
30 this.isexp = 0; | 30 this.isexp = 0; |
31 this.tupletype = null; | 31 this.tupletype = null; |
32 } | 32 } |
33 | 33 |
34 Dsymbol syntaxCopy(Dsymbol) | 34 override Dsymbol syntaxCopy(Dsymbol) |
35 { | 35 { |
36 assert(false); | 36 assert(false); |
37 } | 37 } |
38 | 38 |
39 string kind() | 39 override string kind() |
40 { | 40 { |
41 return "tuple"; | 41 return "tuple"; |
42 } | 42 } |
43 | 43 |
44 Type getType() | 44 override Type getType() |
45 { | 45 { |
46 /* If this tuple represents a type, return that type | 46 /* If this tuple represents a type, return that type |
47 */ | 47 */ |
48 | 48 |
49 //printf("TupleDeclaration::getType() %s\n", toChars()); | 49 //printf("TupleDeclaration::getType() %s\n", toChars()); |
88 } | 88 } |
89 | 89 |
90 return tupletype; | 90 return tupletype; |
91 } | 91 } |
92 | 92 |
93 bool needThis() | 93 override bool needThis() |
94 { | 94 { |
95 //printf("TupleDeclaration::needThis(%s)\n", toChars()); | 95 //printf("TupleDeclaration::needThis(%s)\n", toChars()); |
96 for (size_t i = 0; i < objects.dim; i++) | 96 for (size_t i = 0; i < objects.dim; i++) |
97 { | 97 { |
98 Object o = cast(Object)objects.data[i]; | 98 Object o = cast(Object)objects.data[i]; |
110 } | 110 } |
111 } | 111 } |
112 return 0; | 112 return 0; |
113 } | 113 } |
114 | 114 |
115 TupleDeclaration isTupleDeclaration() { return this; } | 115 override TupleDeclaration isTupleDeclaration() { return this; } |
116 } | 116 } |