annotate dmd/AttribDeclaration.d @ 131:206db751bd4c

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