comparison dmd/VolatileStatement.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
24 { 24 {
25 super(loc); 25 super(loc);
26 this.statement = statement; 26 this.statement = statement;
27 } 27 }
28 28
29 Statement syntaxCopy() 29 override Statement syntaxCopy()
30 { 30 {
31 assert(false); 31 assert(false);
32 } 32 }
33 33
34 Statement semantic(Scope sc) 34 override Statement semantic(Scope sc)
35 { 35 {
36 if (statement) 36 if (statement)
37 statement = statement.semantic(sc); 37 statement = statement.semantic(sc);
38 return this; 38 return this;
39 } 39 }
40 40
41 Statements flatten(Scope sc) 41 override Statements flatten(Scope sc)
42 { 42 {
43 Statements a = statement ? statement.flatten(sc) : null; 43 Statements a = statement ? statement.flatten(sc) : null;
44 if (a) 44 if (a)
45 { 45 {
46 for (int i = 0; i < a.dim; i++) 46 for (int i = 0; i < a.dim; i++)
53 } 53 }
54 54
55 return a; 55 return a;
56 } 56 }
57 57
58 BE blockExit() 58 override BE blockExit()
59 { 59 {
60 return statement ? statement.blockExit() : BE.BEfallthru; 60 return statement ? statement.blockExit() : BE.BEfallthru;
61 } 61 }
62 62
63 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 63 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
64 { 64 {
65 assert(false); 65 assert(false);
66 } 66 }
67 67
68 Statement inlineScan(InlineScanState* iss) 68 override Statement inlineScan(InlineScanState* iss)
69 { 69 {
70 if (statement) 70 if (statement)
71 statement = statement.inlineScan(iss); 71 statement = statement.inlineScan(iss);
72 return this; 72 return this;
73 } 73 }
74 74
75 void toIR(IRState* irs) 75 override void toIR(IRState* irs)
76 { 76 {
77 block* b; 77 block* b;
78 78
79 if (statement) 79 if (statement)
80 { 80 {