Search in sources :

Example 1 with BLangRestArgsExpression

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);
}
Also used : BLangRestArgsExpression(org.wso2.ballerinalang.compiler.tree.expressions.BLangRestArgsExpression)

Aggregations

BLangRestArgsExpression (org.wso2.ballerinalang.compiler.tree.expressions.BLangRestArgsExpression)1