Mercurial > projects > ddmd
annotate dmd/OverExp.d @ 114:e28b18c23469
added a module dmd.common for commonly used stuff
it currently holds code for consistency checking of predefined versions
also added a VisualD project file
author | Trass3r |
---|---|
date | Wed, 01 Sep 2010 18:21:58 +0200 |
parents | 6da99741178e |
children | e3afd1303184 |
rev | line source |
---|---|
72 | 1 module dmd.OverExp; |
2 | |
114 | 3 import dmd.common; |
72 | 4 import dmd.Expression; |
5 import dmd.OverloadSet; | |
6 import dmd.Scope; | |
7 import dmd.Loc; | |
8 import dmd.TOK; | |
9 import dmd.Type; | |
10 | |
108
6da99741178e
e2ir.c changes, mainly accounts for static arrays being value types now
Trass3r
parents:
72
diff
changeset
|
11 //! overload set |
6da99741178e
e2ir.c changes, mainly accounts for static arrays being value types now
Trass3r
parents:
72
diff
changeset
|
12 version(DMDV2) |
0 | 13 class OverExp : Expression |
14 { | |
15 OverloadSet vars; | |
16 | |
17 this(OverloadSet s) | |
18 { | |
72 | 19 super(loc, TOKoverloadset, OverExp.sizeof); |
20 //printf("OverExp(this = %p, '%s')\n", this, var.toChars()); | |
21 vars = s; | |
63 | 22 type = Type.tvoid; |
0 | 23 } |
24 | |
72 | 25 override int isLvalue() |
0 | 26 { |
108
6da99741178e
e2ir.c changes, mainly accounts for static arrays being value types now
Trass3r
parents:
72
diff
changeset
|
27 return true; |
0 | 28 } |
29 | |
72 | 30 override Expression toLvalue(Scope sc, Expression e) |
0 | 31 { |
108
6da99741178e
e2ir.c changes, mainly accounts for static arrays being value types now
Trass3r
parents:
72
diff
changeset
|
32 return this; |
0 | 33 } |
34 } | |
35 |