Add way to get constructor args.

This commit is contained in:
Juraj Kirchheim
2017-09-11 10:35:54 +02:00
parent cc009b2026
commit c94e4a0337

View File

@@ -62,6 +62,10 @@ class Constructor {
default: [].toBlock();
}
}
public function getArgList():Array<FunctionArg>
return beforeArgs.concat(args).concat(afterArgs);
public function addStatement(e:Expr, ?prepend)
if (prepend)
this.nuStatements.unshift(e)