use of org.wso2.ballerinalang.compiler.tree.expressions.BLangRestArgsExpression in project ballerina by ballerina-lang.
the class BLangPackageBuilder method addRestArgument.
public void addRestArgument(DiagnosticPos pos, Set<Whitespace> ws) {
BLangRestArgsExpression varArgs = (BLangRestArgsExpression) TreeBuilder.createVarArgsNode();
varArgs.pos = pos;
varArgs.addWS(ws);
varArgs.expr = (BLangExpression) this.exprNodeStack.pop();
addExpressionNode(varArgs);
}
Aggregations