Search in sources :

Example 1 with BLangAbort

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

the class BLangPackageBuilder method addAbortStatement.

public void addAbortStatement(DiagnosticPos pos, Set<Whitespace> ws) {
    BLangAbort abortNode = (BLangAbort) TreeBuilder.createAbortNode();
    abortNode.pos = pos;
    abortNode.addWS(ws);
    addStmtToCurrentBlock(abortNode);
}
Also used : BLangAbort(org.wso2.ballerinalang.compiler.tree.statements.BLangAbort)

Aggregations

BLangAbort (org.wso2.ballerinalang.compiler.tree.statements.BLangAbort)1