makeNewClass

Generates code declaring variables with the correct type and value, which are then passed on to ctor().

E.g.: makeNewClass("Expression", "Token*")

1 assert(argtypes.length == args.length);
2 assert(argtypes.length == 2);
3 assert(argtypes[0] == typeid(Expression));
4 auto _0 = *cast(Expression*)args[0];
5 assert(argtypes[1] == typeid(Token*));
6 auto _1 = *cast(Token**)args[1];
7 auto node = ctor(_0,_1,);
char[]
makeNewClass

Meta