comparison dmd/UnitTestDeclaration.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 832f71e6f96c
children 5c859d5fbe27
comparison
equal deleted inserted replaced
71:8e24ef1dd139 72:2e2a5c3f943a
30 this(Loc loc, Loc endloc) 30 this(Loc loc, Loc endloc)
31 { 31 {
32 super(loc, endloc, unitTestId(), STC.STCundefined, null); 32 super(loc, endloc, unitTestId(), STC.STCundefined, null);
33 } 33 }
34 34
35 Dsymbol syntaxCopy(Dsymbol s) 35 override Dsymbol syntaxCopy(Dsymbol s)
36 { 36 {
37 UnitTestDeclaration utd; 37 UnitTestDeclaration utd;
38 38
39 assert(!s); 39 assert(!s);
40 utd = new UnitTestDeclaration(loc, endloc); 40 utd = new UnitTestDeclaration(loc, endloc);
41 41
42 return FuncDeclaration.syntaxCopy(utd); 42 return FuncDeclaration.syntaxCopy(utd);
43 } 43 }
44 44
45 void semantic(Scope sc) 45 override void semantic(Scope sc)
46 { 46 {
47 if (global.params.useUnitTests) 47 if (global.params.useUnitTests)
48 { 48 {
49 type = new TypeFunction(null, Type.tvoid, false, LINKd); 49 type = new TypeFunction(null, Type.tvoid, false, LINKd);
50 Scope sc2 = sc.push(); 50 Scope sc2 = sc.push();
61 m = sc.module_; 61 m = sc.module_;
62 if (m) 62 if (m)
63 m.needmoduleinfo = 1; 63 m.needmoduleinfo = 1;
64 } 64 }
65 65
66 AggregateDeclaration isThis() 66 override AggregateDeclaration isThis()
67 { 67 {
68 return null; 68 return null;
69 } 69 }
70 70
71 bool isVirtual() 71 override bool isVirtual()
72 { 72 {
73 return false; 73 return false;
74 } 74 }
75 75
76 bool addPreInvariant() 76 override bool addPreInvariant()
77 { 77 {
78 return false; 78 return false;
79 } 79 }
80 80
81 bool addPostInvariant() 81 override bool addPostInvariant()
82 { 82 {
83 return false; 83 return false;
84 } 84 }
85 85
86 void toCBuffer(OutBuffer buf, HdrGenState* hgs) 86 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
87 { 87 {
88 assert(false); 88 assert(false);
89 } 89 }
90 90
91 UnitTestDeclaration isUnitTestDeclaration() { return this; } 91 override UnitTestDeclaration isUnitTestDeclaration() { return this; }
92 } 92 }