annotate dmd/DelegateExp.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
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
1 module dmd.DelegateExp;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 73
diff changeset
3 import dmd.common;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
4 import dmd.Expression;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
5 import dmd.backend.elem;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
6 import dmd.AggregateDeclaration;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
7 import dmd.UnaExp;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
8 import dmd.TypeDelegate;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
9 import dmd.FuncDeclaration;
179
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
10 import dmd.InterState;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
11 import dmd.MATCH;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
12 import dmd.Type;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
13 import dmd.OutBuffer;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
14 import dmd.Loc;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
15 import dmd.TY;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
16 import dmd.Scope;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
17 import dmd.InlineCostState;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
18 import dmd.IRState;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
19 import dmd.PREC;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
20 import dmd.HdrGenState;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 import dmd.TOK;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 import dmd.expression.Util;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 import dmd.codegen.Util;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25 import dmd.backend.Util;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
26 import dmd.backend.Symbol;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
27 import dmd.backend.TYM;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
28 import dmd.backend.OPER;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
29
187
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 179
diff changeset
30 import dmd.DDMDExtensions;
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 179
diff changeset
31
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32 class DelegateExp : UnaExp
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
33 {
187
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 179
diff changeset
34 mixin insertMemberExtension!(typeof(this));
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 179
diff changeset
35
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
36 FuncDeclaration func;
73
ef02e2e203c2 Updating to dmd2.033
korDen
parents: 72
diff changeset
37 bool hasOverloads;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
38
73
ef02e2e203c2 Updating to dmd2.033
korDen
parents: 72
diff changeset
39 this(Loc loc, Expression e, FuncDeclaration f, bool hasOverloads = false)
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
40 {
178
e3afd1303184 Many small bugs fixed
korDen
parents: 175
diff changeset
41 register();
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
42 super(loc, TOK.TOKdelegate, DelegateExp.sizeof, e);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
43 this.func = f;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
44 this.hasOverloads = hasOverloads;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
45 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
46
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
47 override Expression semantic(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
48 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
49 version (LOGSEMANTIC) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
50 printf("DelegateExp.semantic('%s')\n", toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
51 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
52 if (!type)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
53 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
54 e1 = e1.semantic(sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
55 type = new TypeDelegate(func.type);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
56 type = type.semantic(loc, sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
57 AggregateDeclaration ad = func.toParent().isAggregateDeclaration();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
58 if (func.needThis())
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
59 e1 = getRightThis(loc, sc, ad, e1, func);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
60 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
61 return this;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
62 }
179
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
63
192
eb38fdcb3e62 updated to compile with dmd2.062
korDen
parents: 187
diff changeset
64 override Expression interpret(InterState istate)
179
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
65 {
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
66 version (LOG) {
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
67 printf("DelegateExp::interpret() %s\n", toChars());
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
68 }
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
69 return this;
cd48cb899aee Updated to dmd2.040
korDen
parents: 178
diff changeset
70 }
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
71
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
72 override MATCH implicitConvTo(Type t)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
73 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
74 static if (false) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
75 printf("DelegateExp.implicitConvTo(this=%s, type=%s, t=%s)\n",
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
76 toChars(), type.toChars(), t.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
77 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
78 MATCH result;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
79
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
80 result = type.implicitConvTo(t);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
81
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
82 if (result == MATCHnomatch)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
83 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
84 // Look for pointers to functions where the functions are overloaded.
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
85 FuncDeclaration f;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
86
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
87 t = t.toBasetype();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
88 if (type.ty == Tdelegate && type.nextOf().ty == Tfunction &&
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
89 t.ty == Tdelegate && t.nextOf().ty == Tfunction)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
90 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
91 if (func && func.overloadExactMatch(t.nextOf()))
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
92 result = MATCHexact;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
93 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
94 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
95 return result;
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: 0
diff changeset
98 override Expression castTo(Scope sc, Type t)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
99 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
100 static if (false) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
101 printf("DelegateExp.castTo(this=%s, type=%s, t=%s)\n",
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
102 toChars(), type.toChars(), t.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
103 }
175
94b6033c07f3 get rid of globals
korDen
parents: 114
diff changeset
104 enum string msg = "cannot form delegate due to covariant return type";
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
105
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
106 Expression e = this;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
107 Type tb = t.toBasetype();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
108 Type typeb = type.toBasetype();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
109 if (tb != typeb)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
110 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
111 // Look for delegates to functions where the functions are overloaded.
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
112 FuncDeclaration f;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
113
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
114 if (typeb.ty == Tdelegate && typeb.nextOf().ty == Tfunction &&
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
115 tb.ty == Tdelegate && tb.nextOf().ty == Tfunction)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
116 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
117 if (func)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
118 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
119 f = func.overloadExactMatch(tb.nextOf());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
120 if (f)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
121 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
122 int offset;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
123 if (f.tintro && f.tintro.nextOf().isBaseOf(f.type.nextOf(), &offset) && offset)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
124 error("%s", msg);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
125 f.tookAddressOf++;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
126 e = new DelegateExp(loc, e1, f);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
127 e.type = t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
128 return e;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
129 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
130 if (func.tintro)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
131 error("%s", msg);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
132 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
133 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
134 e = Expression.castTo(sc, t);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
135 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
136 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
137 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
138 int offset;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
139
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
140 func.tookAddressOf++;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
141 if (func.tintro && func.tintro.nextOf().isBaseOf(func.type.nextOf(), &offset) && offset)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
142 error("%s", msg);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
143 e = copy();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
144 e.type = t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
145 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
146 return e;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
147 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
148
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
149 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
150 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
151 buf.writeByte('&');
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
152 if (!func.isNested())
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
153 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
154 expToCBuffer(buf, hgs, e1, PREC.PREC_primary);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
155 buf.writeByte('.');
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
156 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
157 buf.writestring(func.toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
158 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
159
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
160 override void dump(int indent)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
161 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
162 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
163 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
164
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
165 override int inlineCost(InlineCostState* ics)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
166 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
167 assert(false);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
168 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
169
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
170 override elem* toElem(IRState* irs)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
171 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
172 elem* e;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
173 elem* ethis;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
174 elem* ep;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
175 Symbol* sfunc;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
176 int directcall = 0;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
177
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
178 //printf("DelegateExp.toElem() '%s'\n", toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
179 sfunc = func.toSymbol();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
180 if (func.isNested())
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
181 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
182 ep = el_ptr(sfunc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
183 ethis = getEthis(loc, irs, func);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
184 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
185 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
186 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
187 ethis = e1.toElem(irs);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
188 if (e1.type.ty != Tclass && e1.type.ty != Tpointer)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
189 ethis = addressElem(ethis, e1.type);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
190
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
191 if (e1.op == TOKsuper)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
192 directcall = 1;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
193
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
194 if (!func.isThis())
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
195 error("delegates are only for non-static functions");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
196
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
197 if (!func.isVirtual() ||
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
198 directcall ||
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
199 func.isFinal())
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
200 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
201 ep = el_ptr(sfunc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
202 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
203 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
204 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
205 // Get pointer to function out of virtual table
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
206 assert(ethis);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
207 ep = el_same(&ethis);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
208 ep = el_una(OPind, TYnptr, ep);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
209 uint vindex = func.vtblIndex;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
210
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
211 // Build *(ep + vindex * 4)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
212 ep = el_bin(OPadd,TYnptr,ep,el_long(TYint, vindex * 4));
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
213 ep = el_una(OPind,TYnptr,ep);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
214 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
215
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
216 // if (func.tintro)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
217 // func.error(loc, "cannot form delegate due to covariant return type");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
218 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
219
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
220 if (ethis.Eoper == OPcomma)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
221 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
222 ethis.E2() = el_pair(TYullong, ethis.E2, ep);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
223 ethis.Ety = TYullong;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
224 e = ethis;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
225 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
226 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
227 e = el_pair(TYullong, ethis, ep);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
228
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
229 el_setLoc(e,loc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
230
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
231 return e;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
232 }
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 0
diff changeset
233 }