annotate dmd/TemplateTypeParameter.d @ 192:eb38fdcb3e62 default tip

updated to compile with dmd2.062
author korDen
date Sat, 02 Mar 2013 01:25:52 -0800
parents b0d41ff5e0df
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
1 module dmd.TemplateTypeParameter;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 113
diff changeset
3 import dmd.common;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
4 import dmd.TemplateParameter;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.Type;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
6 import dmd.Loc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.Identifier;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
8 import dmd.Scope;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
9 import dmd.OutBuffer;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
10 import dmd.HdrGenState;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
11 import dmd.Declaration;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
12 import dmd.ArrayTypes;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 import dmd.TypeIdentifier;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 import dmd.AliasDeclaration;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 import dmd.Util;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 import dmd.MATCH;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 import dmd.Dsymbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18
187
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
19 import dmd.DDMDExtensions;
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
20
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 class TemplateTypeParameter : TemplateParameter
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 {
187
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
23 mixin insertMemberExtension!(typeof(this));
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
24
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 /* Syntax:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 * ident : specType = defaultType
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 */
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
28 Type specType; // type parameter: if !=null, this is the type specialization
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
29 Type defaultType;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
30
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
31 this(Loc loc, Identifier ident, Type specType, Type defaultType)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32 {
178
e3afd1303184 Many small bugs fixed
korDen
parents: 114
diff changeset
33 register();
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
34 super(loc, ident);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
35 this.ident = ident;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
36 this.specType = specType;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
37 this.defaultType = defaultType;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
38 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
39
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
40 override TemplateTypeParameter isTemplateTypeParameter()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
41 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
42 return this;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
43 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
44
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
45 override TemplateParameter syntaxCopy()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
46 {
51
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
47 TemplateTypeParameter tp = new TemplateTypeParameter(loc, ident, specType, defaultType);
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
48 if (tp.specType)
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
49 tp.specType = specType.syntaxCopy();
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
50 if (defaultType)
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
51 tp.defaultType = defaultType.syntaxCopy();
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
52 return tp;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
53 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
54
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
55 override void declareParameter(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
56 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
57 //printf("TemplateTypeParameter.declareParameter('%s')\n", ident.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
58 TypeIdentifier ti = new TypeIdentifier(loc, ident);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
59 sparam = new AliasDeclaration(loc, ident, ti);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
60 if (!sc.insert(sparam))
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
61 error(loc, "parameter '%s' multiply defined", ident.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
62 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
63
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
64 override void semantic(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
65 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
66 //printf("TemplateTypeParameter.semantic('%s')\n", ident.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
67 if (specType)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
68 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
69 specType = specType.semantic(loc, sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
70 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
71 static if (false) { // Don't do semantic() until instantiation
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
72 if (defaultType)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
73 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
74 defaultType = defaultType.semantic(loc, sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
75 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
76 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
77 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
78
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
79 override void print(Object oarg, Object oded)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
80 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
81 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
82 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
83
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
84 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
85 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
86 buf.writestring(ident.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
87 if (specType)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
88 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
89 buf.writestring(" : ");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
90 specType.toCBuffer(buf, null, hgs);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
91 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
92 if (defaultType)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
93 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
94 buf.writestring(" = ");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
95 defaultType.toCBuffer(buf, null, hgs);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
96 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
97 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
98
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
99 override Object specialization()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
100 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
101 return specType;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
102 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
103
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
104 override Object defaultArg(Loc loc, Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
105 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
106 Type t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
107
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
108 t = defaultType;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
109 if (t)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
110 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
111 t = t.syntaxCopy();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
112 t = t.semantic(loc, sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
113 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
114 return t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
115 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
116
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
117 override bool overloadMatch(TemplateParameter)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
118 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
119 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
120 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
121
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
122 /*******************************************
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
123 * Match to a particular TemplateParameter.
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
124 * Input:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
125 * i i'th argument
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
126 * tiargs[] actual arguments to template instance
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
127 * parameters[] template parameters
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
128 * dedtypes[] deduced arguments to template instance
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
129 * *psparam set to symbol declared and initialized to dedtypes[i]
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
130 * flags 1: don't do 'toHeadMutable()'
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
131 */
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
132 override MATCH matchArg(Scope sc, Objects tiargs, int i, TemplateParameters parameters, Objects dedtypes, Declaration* psparam, int flags)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
133 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
134 //printf("TemplateTypeParameter.matchArg()\n");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
135 Type t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
136 Object oarg;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
137 MATCH m = MATCHexact;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
138 Type ta;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
139
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
140 if (i < tiargs.dim)
113
3482c73a991b More cleanup for arrays
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 94
diff changeset
141 oarg = tiargs[i];
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
142 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
143 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
144 // Get default argument instead
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
145 oarg = defaultArg(loc, sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
146 if (!oarg)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
147 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
148 assert(i < dedtypes.dim);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
149 // It might have already been deduced
113
3482c73a991b More cleanup for arrays
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 94
diff changeset
150 oarg = dedtypes[i];
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
151 if (!oarg)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
152 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
153 goto Lnomatch;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
154 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
155 flags |= 1; // already deduced, so don't to toHeadMutable()
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
156 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
157 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
158
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
159 ta = isType(oarg);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
160 if (!ta)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
161 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
162 //printf("%s %p %p %p\n", oarg.toChars(), isExpression(oarg), isDsymbol(oarg), isTuple(oarg));
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
163 goto Lnomatch;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
164 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
165 //printf("ta is %s\n", ta.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
166
113
3482c73a991b More cleanup for arrays
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 94
diff changeset
167 t = cast(Type)dedtypes[i];
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
168
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
169 if (specType)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
170 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
171 //printf("\tcalling deduceType(): ta is %s, specType is %s\n", ta.toChars(), specType.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
172 MATCH m2 = ta.deduceType(sc, specType, parameters, dedtypes);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
173 if (m2 == MATCHnomatch)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
174 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
175 //printf("\tfailed deduceType\n");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
176 goto Lnomatch;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
177 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
178
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
179 if (m2 < m)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
180 m = m2;
113
3482c73a991b More cleanup for arrays
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 94
diff changeset
181 t = cast(Type)dedtypes[i];
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
182 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
183 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
184 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
185 // So that matches with specializations are better
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
186 m = MATCHconvert;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
187
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
188 /* This is so that:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
189 * template Foo(T), Foo!(const int), => ta == int
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
190 */
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
191 // if (!(flags & 1))
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
192 // ta = ta.toHeadMutable();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
193
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
194 if (t)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
195 { // Must match already deduced type
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
196
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
197 m = MATCHexact;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
198 if (!t.equals(ta))
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
199 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
200 //printf("t = %s ta = %s\n", t.toChars(), ta.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
201 goto Lnomatch;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
202 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
203 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
204 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
205
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
206 if (!t)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
207 {
94
3a0b150c9841 Objects -> Vector!Object iteration 1
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
208 dedtypes[i] = ta;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
209 t = ta;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
210 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
211
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
212 *psparam = new AliasDeclaration(loc, ident, t);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
213 //printf("\tm = %d\n", m);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
214 return m;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
215
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
216 Lnomatch:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
217 *psparam = null;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
218 //printf("\tm = %d\n", MATCHnomatch);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
219 return MATCHnomatch;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
220 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
221
94
3a0b150c9841 Objects -> Vector!Object iteration 1
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
222 override Object dummyArg()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
223 {
51
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
224 Type t;
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
225
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
226 if (specType)
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
227 t = specType;
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
228 else
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
229 {
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
230 // Use this for alias-parameter's too (?)
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
231 t = new TypeIdentifier(loc, ident);
b7d29f613539 StaticAssertStatement.syntaxCopy
korDen
parents: 0
diff changeset
232 }
94
3a0b150c9841 Objects -> Vector!Object iteration 1
Eldar Insafutdinov <e.insafutdinov@gmail.com>
parents: 72
diff changeset
233 return t;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
234 }
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 51
diff changeset
235 }