Search in sources :

Example 1 with BLangNext

use of org.wso2.ballerinalang.compiler.tree.statements.BLangNext in project ballerina by ballerina-lang.

the class ASTBuilderUtil method createNextStmt.

static void createNextStmt(DiagnosticPos pos, BLangBlockStmt target) {
    final BLangNext nextStmt = (BLangNext) TreeBuilder.createNextNode();
    nextStmt.pos = pos;
    target.addStatement(nextStmt);
}
Also used : BLangNext(org.wso2.ballerinalang.compiler.tree.statements.BLangNext)

Example 2 with BLangNext

use of org.wso2.ballerinalang.compiler.tree.statements.BLangNext in project ballerina by ballerina-lang.

the class BLangPackageBuilder method addNextStatement.

public void addNextStatement(DiagnosticPos pos, Set<Whitespace> ws) {
    BLangNext nextNode = (BLangNext) TreeBuilder.createNextNode();
    nextNode.pos = pos;
    nextNode.addWS(ws);
    addStmtToCurrentBlock(nextNode);
}
Also used : BLangNext(org.wso2.ballerinalang.compiler.tree.statements.BLangNext)

Aggregations

BLangNext (org.wso2.ballerinalang.compiler.tree.statements.BLangNext)2