Mercurial > projects > ddmd
comparison dmd/BreakStatement.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 | cab4c37afb89 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
71:8e24ef1dd139 | 72:2e2a5c3f943a |
---|---|
28 { | 28 { |
29 super(loc); | 29 super(loc); |
30 this.ident = ident; | 30 this.ident = ident; |
31 } | 31 } |
32 | 32 |
33 Statement syntaxCopy() | 33 override Statement syntaxCopy() |
34 { | 34 { |
35 BreakStatement s = new BreakStatement(loc, ident); | 35 BreakStatement s = new BreakStatement(loc, ident); |
36 return s; | 36 return s; |
37 } | 37 } |
38 | 38 |
39 Statement semantic(Scope sc) | 39 override Statement semantic(Scope sc) |
40 { | 40 { |
41 //printf("BreakStatement::semantic()\n"); | 41 //printf("BreakStatement::semantic()\n"); |
42 // If: | 42 // If: |
43 // break Identifier; | 43 // break Identifier; |
44 if (ident) | 44 if (ident) |
96 error("break is not inside a loop or switch"); | 96 error("break is not inside a loop or switch"); |
97 } | 97 } |
98 return this; | 98 return this; |
99 } | 99 } |
100 | 100 |
101 Expression interpret(InterState istate) | 101 override Expression interpret(InterState istate) |
102 { | 102 { |
103 assert(false); | 103 assert(false); |
104 } | 104 } |
105 | 105 |
106 BE blockExit() | 106 override BE blockExit() |
107 { | 107 { |
108 //printf("BreakStatement::blockExit(%p) = x%x\n", this, ident ? BEgoto : BEbreak); | 108 //printf("BreakStatement::blockExit(%p) = x%x\n", this, ident ? BEgoto : BEbreak); |
109 return ident ? BE.BEgoto : BE.BEbreak; | 109 return ident ? BE.BEgoto : BE.BEbreak; |
110 } | 110 } |
111 | 111 |
112 void toCBuffer(OutBuffer buf, HdrGenState* hgs) | 112 override void toCBuffer(OutBuffer buf, HdrGenState* hgs) |
113 { | 113 { |
114 assert(false); | 114 assert(false); |
115 } | 115 } |
116 | 116 |
117 void toIR(IRState* irs) | 117 override void toIR(IRState* irs) |
118 { | 118 { |
119 block* bbreak; | 119 block* bbreak; |
120 block* b; | 120 block* b; |
121 Blockx* blx = irs.blx; | 121 Blockx* blx = irs.blx; |
122 | 122 |