comparison dmd/OnScopeStatement.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 4ae0d790a452
children e28b18c23469
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
33 33
34 this.tok = tok; 34 this.tok = tok;
35 this.statement = statement; 35 this.statement = statement;
36 } 36 }
37 37
38 Statement syntaxCopy() 38 override Statement syntaxCopy()
39 { 39 {
40 OnScopeStatement s = new OnScopeStatement(loc, 40 OnScopeStatement s = new OnScopeStatement(loc,
41 tok, statement.syntaxCopy()); 41 tok, statement.syntaxCopy());
42 return s; 42 return s;
43 } 43 }
44 44
45 BE blockExit() 45 override BE blockExit()
46 { 46 {
47 // At this point, this statement is just an empty placeholder 47 // At this point, this statement is just an empty placeholder
48 return BE.BEfallthru; 48 return BE.BEfallthru;
49 } 49 }
50 50
51 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 51 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
52 { 52 {
53 assert(false); 53 assert(false);
54 } 54 }
55 55
56 Statement semantic(Scope sc) 56 override Statement semantic(Scope sc)
57 { 57 {
58 /* semantic is called on results of scopeCode() */ 58 /* semantic is called on results of scopeCode() */
59 return this; 59 return this;
60 } 60 }
61 61
62 bool usesEH() 62 override bool usesEH()
63 { 63 {
64 assert(false); 64 assert(false);
65 } 65 }
66 66
67 void scopeCode(Scope sc, Statement* sentry, Statement* sexception, Statement* sfinally) 67 override void scopeCode(Scope sc, Statement* sentry, Statement* sexception, Statement* sfinally)
68 { 68 {
69 //printf("OnScopeStatement::scopeCode()\n"); 69 //printf("OnScopeStatement::scopeCode()\n");
70 //print(); 70 //print();
71 *sentry = null; 71 *sentry = null;
72 *sexception = null; 72 *sexception = null;
108 default: 108 default:
109 assert(0); 109 assert(0);
110 } 110 }
111 } 111 }
112 112
113 void toIR(IRState* irs) 113 override void toIR(IRState* irs)
114 { 114 {
115 } 115 }
116 } 116 }