comparison dmd/CallExp.d @ 66:efb1e5bdf63c

more implementations
author korDen
date Mon, 23 Aug 2010 20:38:30 +0400
parents 4290d870944a
children 2e2a5c3f943a
comparison
equal deleted inserted replaced
65:9ce5d450c318 66:efb1e5bdf63c
99 this.arguments = arguments; 99 this.arguments = arguments;
100 } 100 }
101 101
102 this(Loc loc, Expression e, Expression earg1, Expression earg2) 102 this(Loc loc, Expression e, Expression earg1, Expression earg2)
103 { 103 {
104 assert(false); 104 super(loc, TOK.TOKcall, CallExp.sizeof, e);
105 super(loc, TOK.init, 0, e); 105
106 Expressions arguments = new Expressions();
107 arguments.setDim(2);
108 arguments.data[0] = cast(void*)earg1;
109 arguments.data[1] = cast(void*)earg2;
110
111 this.arguments = arguments;
106 } 112 }
107 113
108 Expression syntaxCopy() 114 Expression syntaxCopy()
109 { 115 {
110 return new CallExp(loc, e1.syntaxCopy(), arraySyntaxCopy(arguments)); 116 return new CallExp(loc, e1.syntaxCopy(), arraySyntaxCopy(arguments));