comparison dmd/TryFinallyStatement.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
27 super(loc); 27 super(loc);
28 this.body_ = body_; 28 this.body_ = body_;
29 this.finalbody = finalbody; 29 this.finalbody = finalbody;
30 } 30 }
31 31
32 Statement syntaxCopy() 32 override Statement syntaxCopy()
33 { 33 {
34 assert(false); 34 assert(false);
35 } 35 }
36 36
37 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 37 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
38 { 38 {
39 assert(false); 39 assert(false);
40 } 40 }
41 41
42 Statement semantic(Scope sc) 42 override Statement semantic(Scope sc)
43 { 43 {
44 //printf("TryFinallyStatement::semantic()\n"); 44 //printf("TryFinallyStatement::semantic()\n");
45 body_ = body_.semantic(sc); 45 body_ = body_.semantic(sc);
46 sc = sc.push(); 46 sc = sc.push();
47 sc.tf = this; 47 sc.tf = this;
59 return s; 59 return s;
60 } 60 }
61 return this; 61 return this;
62 } 62 }
63 63
64 bool hasBreak() 64 override bool hasBreak()
65 { 65 {
66 assert(false); 66 assert(false);
67 } 67 }
68 68
69 bool hasContinue() 69 override bool hasContinue()
70 { 70 {
71 assert(false); 71 assert(false);
72 } 72 }
73 73
74 bool usesEH() 74 override bool usesEH()
75 { 75 {
76 assert(false); 76 assert(false);
77 } 77 }
78 78
79 BE blockExit() 79 override BE blockExit()
80 { 80 {
81 if (body_) 81 if (body_)
82 return body_.blockExit(); 82 return body_.blockExit();
83 return BE.BEfallthru; 83 return BE.BEfallthru;
84 } 84 }
85 85
86 Statement inlineScan(InlineScanState* iss) 86 override Statement inlineScan(InlineScanState* iss)
87 { 87 {
88 if (body_) 88 if (body_)
89 body_ = body_.inlineScan(iss); 89 body_ = body_.inlineScan(iss);
90 if (finalbody) 90 if (finalbody)
91 finalbody = finalbody.inlineScan(iss); 91 finalbody = finalbody.inlineScan(iss);
99 * block 99 * block
100 * _finally 100 * _finally
101 * finalbody 101 * finalbody
102 * _ret 102 * _ret
103 */ 103 */
104 void toIR(IRState* irs) 104 override void toIR(IRState* irs)
105 { 105 {
106 //printf("TryFinallyStatement.toIR()\n"); 106 //printf("TryFinallyStatement.toIR()\n");
107 Blockx* blx = irs.blx; 107 Blockx* blx = irs.blx;
108 108
109 version (SEH) { 109 version (SEH) {