comparison dmd/ArrayExp.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 1628b221808d
children be2ab491772e
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
27 { 27 {
28 super(loc, TOK.TOKarray, ArrayExp.sizeof, e1); 28 super(loc, TOK.TOKarray, ArrayExp.sizeof, e1);
29 arguments = args; 29 arguments = args;
30 } 30 }
31 31
32 Expression syntaxCopy() 32 override Expression syntaxCopy()
33 { 33 {
34 return new ArrayExp(loc, e1.syntaxCopy(), arraySyntaxCopy(arguments)); 34 return new ArrayExp(loc, e1.syntaxCopy(), arraySyntaxCopy(arguments));
35 } 35 }
36 36
37 Expression semantic(Scope sc) 37 override Expression semantic(Scope sc)
38 { 38 {
39 Expression e; 39 Expression e;
40 Type t1; 40 Type t1;
41 41
42 version (LOGSEMANTIC) { 42 version (LOGSEMANTIC) {
76 e = e1; 76 e = e1;
77 } 77 }
78 return e; 78 return e;
79 } 79 }
80 80
81 int isLvalue() 81 override int isLvalue()
82 { 82 {
83 assert(false); 83 assert(false);
84 } 84 }
85 85
86 Expression toLvalue(Scope sc, Expression e) 86 override Expression toLvalue(Scope sc, Expression e)
87 { 87 {
88 assert(false); 88 assert(false);
89 } 89 }
90 90
91 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 91 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
92 { 92 {
93 assert(false); 93 assert(false);
94 } 94 }
95 95
96 void scanForNestedRef(Scope sc) 96 override void scanForNestedRef(Scope sc)
97 { 97 {
98 assert(false); 98 assert(false);
99 } 99 }
100 100
101 Identifier opId() 101 override Identifier opId()
102 { 102 {
103 return Id.index; 103 return Id.index;
104 } 104 }
105 105
106 int inlineCost(InlineCostState* ics) 106 override int inlineCost(InlineCostState* ics)
107 { 107 {
108 return 1 + e1.inlineCost(ics) + arrayInlineCost(ics, arguments); 108 return 1 + e1.inlineCost(ics) + arrayInlineCost(ics, arguments);
109 } 109 }
110 110
111 Expression doInline(InlineDoState ids) 111 override Expression doInline(InlineDoState ids)
112 { 112 {
113 ArrayExp ce; 113 ArrayExp ce;
114 114
115 ce = cast(ArrayExp)copy(); 115 ce = cast(ArrayExp)copy();
116 ce.e1 = e1.doInline(ids); 116 ce.e1 = e1.doInline(ids);
117 ce.arguments = arrayExpressiondoInline(arguments, ids); 117 ce.arguments = arrayExpressiondoInline(arguments, ids);
118 return ce; 118 return ce;
119 } 119 }
120 120
121 Expression inlineScan(InlineScanState* iss) 121 override Expression inlineScan(InlineScanState* iss)
122 { 122 {
123 Expression e = this; 123 Expression e = this;
124 124
125 //printf("ArrayExp.inlineScan()\n"); 125 //printf("ArrayExp.inlineScan()\n");
126 e1 = e1.inlineScan(iss); 126 e1 = e1.inlineScan(iss);