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);
}
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);
}
Aggregations