Search in sources :

Example 1 with BLangFail

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

the class BLangPackageBuilder method addFailStatement.

public void addFailStatement(DiagnosticPos pos, Set<Whitespace> ws) {
    BLangFail failNode = (BLangFail) TreeBuilder.createFailNode();
    failNode.pos = pos;
    failNode.addWS(ws);
    addStmtToCurrentBlock(failNode);
}
Also used : BLangFail(org.wso2.ballerinalang.compiler.tree.statements.BLangFail)

Aggregations

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