annotate dmd/AttribDeclaration.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents ad4792a1cfd6
children e95073e26356
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.AttribDeclaration;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
3 import dmd.Dsymbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.Array;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.Scope;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.ScopeDsymbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.LINK;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 import dmd.STC;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 import dmd.PROT;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 import dmd.ArrayTypes;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 import dmd.OutBuffer;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 import dmd.HdrGenState;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 class AttribDeclaration : Dsymbol
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
16 Dsymbols decl; // array of Dsymbol's
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
18 this(Dsymbols decl)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
19 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
20 this.decl = decl;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
23 Dsymbols include(Scope sc, ScopeDsymbol sd)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 return decl;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
28 override bool addMember(Scope sc, ScopeDsymbol sd, bool memnum)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
30 bool m = false;
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
31 auto d = include(sc, sd);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
33 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
34 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
35 foreach(s; d)
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
36 m |= s.addMember(sc, sd, m | memnum);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
37 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
38
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
39 return m;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
40 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
41
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
42 void setScopeNewSc(Scope sc, STC stc, LINK linkage, PROT protection, int explicitProtection, uint structalign)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
43 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
44 if (decl)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
45 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
46 Scope newsc = sc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
47 if (stc != sc.stc || linkage != sc.linkage || protection != sc.protection || explicitProtection != sc.explicitProtection || structalign != sc.structalign)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
48 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
49 // create new one for changes
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
50 newsc = new Scope(sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
51 newsc.offset = sc.offset;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
52 newsc.scopesym = sc.scopesym;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
53 newsc.flags &= ~SCOPE.SCOPEfree;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
54 newsc.stc = stc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
55 newsc.linkage = linkage;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
56 newsc.protection = protection;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
57 newsc.explicitProtection = explicitProtection;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
58 newsc.structalign = structalign;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
59 }
77
ad4792a1cfd6 more D-ification container accessing
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 74
diff changeset
60 foreach(Dsymbol s; decl)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
61 s.setScope(newsc); // yes, the only difference from semanticNewSc()
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
62 if (newsc != sc)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
63 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
64 sc.offset = newsc.offset;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
65 newsc.pop();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
66 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
67 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
68 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
69
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
70 void semanticNewSc(Scope sc, STC stc, LINK linkage, PROT protection, int explicitProtection, uint structalign)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
71 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
72 if (decl)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
73 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
74 Scope newsc = sc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
75 if (stc != sc.stc || linkage != sc.linkage || protection != sc.protection || explicitProtection != sc.explicitProtection || structalign != sc.structalign)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
76 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
77 // create new one for changes
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
78 newsc = new Scope(sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
79 newsc.offset = sc.offset;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
80 newsc.scopesym = sc.scopesym;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
81 newsc.flags &= ~SCOPE.SCOPEfree;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
82 newsc.stc = stc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
83 newsc.linkage = linkage;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
84 newsc.protection = protection;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
85 newsc.explicitProtection = explicitProtection;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
86 newsc.structalign = structalign;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
87 }
77
ad4792a1cfd6 more D-ification container accessing
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 74
diff changeset
88 foreach(Dsymbol s; decl)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
89 s.semantic(newsc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
90 if (newsc != sc)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
91 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
92 sc.offset = newsc.offset;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
93 newsc.pop();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
94 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
95 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
96 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
97
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
98 override void semantic(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
99 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
100 auto d = include(sc, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
101
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
102 //printf("\tAttribDeclaration::semantic '%s', d = %p\n",toChars(), d);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
103 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
104 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
105 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
106 s.semantic(sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
107 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
108 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
109
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
110 override void semantic2(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
111 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
112 auto d = include(sc, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
113
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
114 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
115 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
116 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
117 s.semantic2(sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
118 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
119 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
120
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
121 override void semantic3(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
122 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
123 auto d = include(sc, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
124
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
125 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
126 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
127 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
128 s.semantic3(sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
129 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
130 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
131
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
132 override void inlineScan()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
133 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
134 auto d = include(null, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
135
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
136 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
137 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
138 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
139 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
140 //printf("AttribDeclaration.inlineScan %s\n", s.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
141 s.inlineScan();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
142 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
143 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
144 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
145
79
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
146 override void addComment(string comment)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
147 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
148 if (comment !is null)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
149 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
150 auto d = include(null, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
151 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
152 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
153 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
154 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
155 //printf("AttribDeclaration::addComment %s\n", s.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
156 s.addComment(comment);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
157 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
158 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
159 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
160 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
161
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
162 override void emitComment(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
163 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
164 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
165 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
166
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
167 override string kind()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
168 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
169 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
170 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
171
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
172 override bool oneMember(Dsymbol* ps)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
173 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
174 auto d = include(null, null);
49
0aa7d1437ada AttribDeclaration.oneMember
korDen
parents: 13
diff changeset
175
0aa7d1437ada AttribDeclaration.oneMember
korDen
parents: 13
diff changeset
176 return Dsymbol.oneMembers(d, ps);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
177 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
178
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
179 override bool hasPointers()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
180 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
181 auto d = include(null, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
182
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
183 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
184 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
185 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
186 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
187 if (s.hasPointers())
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
188 return true;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
189 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
190 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
191
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
192 return false;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
193 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
194
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
195 override void checkCtorConstInit()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
196 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
197 auto d = include(null, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
198 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
199 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
200 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
201 s.checkCtorConstInit();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
202 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
203 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
204
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
205 override void addLocalClass(ClassDeclarations aclasses)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
206 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
207 auto d = include(null, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
208 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
209 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
210 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
211 s.addLocalClass(aclasses);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
212 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
213 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
214
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
215 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
216 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
217 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
218 }
79
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
219
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
220 override void toJsonBuffer(OutBuffer buf)
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
221 {
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
222 //writef("AttribDeclaration.toJsonBuffer()\n");
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
223
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
224 Dsymbols d = include(null, null);
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
225
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
226 if (d)
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
227 {
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
228 foreach (Dsymbol s; d)
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
229 {
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
230 //writef("AttribDeclaration.toJsonBuffer %s\n", s.toChars());
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
231 s.toJsonBuffer(buf);
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
232 }
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
233 }
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
234 }
43073c7c7769 updated to 2.035
Trass3r
parents: 77
diff changeset
235
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
236 override AttribDeclaration isAttribDeclaration() { return this; }
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
237
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
238 override void toObjFile(int multiobj) // compile to .obj file
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
239 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
240 auto d = include(null, null);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
241
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
242 if (d)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
243 {
74
7e0d548de9e6 Switch Arrays of Dsymbols to the new templated Vector type
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
244 foreach(s; d)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
245 s.toObjFile(multiobj);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
246 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
247 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
248
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
249 override int cvMember(ubyte* p)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
250 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
251 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
252 }
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 49
diff changeset
253 }