Search in sources :

Example 1 with BLangBreak

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

the class BLangPackageBuilder method addBreakStatement.

public void addBreakStatement(DiagnosticPos pos, Set<Whitespace> ws) {
    BLangBreak breakNode = (BLangBreak) TreeBuilder.createBreakNode();
    breakNode.pos = pos;
    breakNode.addWS(ws);
    addStmtToCurrentBlock(breakNode);
}
Also used : BLangBreak(org.wso2.ballerinalang.compiler.tree.statements.BLangBreak)

Aggregations

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