Search in sources :

Example 1 with WithinClause

use of org.ballerinalang.model.tree.clauses.WithinClause in project ballerina by ballerina-lang.

the class BLangPackageBuilder method startWithinClause.

public void startWithinClause(DiagnosticPos pos, Set<Whitespace> ws) {
    WithinClause withinClause = TreeBuilder.createWithinClause();
    ((BLangWithinClause) withinClause).pos = pos;
    withinClause.addWS(ws);
    this.withinClauseStack.push(withinClause);
}
Also used : BLangWithinClause(org.wso2.ballerinalang.compiler.tree.clauses.BLangWithinClause) WithinClause(org.ballerinalang.model.tree.clauses.WithinClause)

Example 2 with WithinClause

use of org.ballerinalang.model.tree.clauses.WithinClause in project ballerina by ballerina-lang.

the class BLangPackageBuilder method endWithinClause.

public void endWithinClause(DiagnosticPos pos, Set<Whitespace> ws) {
    WithinClause withinClause = this.withinClauseStack.peek();
    ((BLangWithinClause) withinClause).pos = pos;
    withinClause.addWS(ws);
    withinClause.setWithinTimePeriod(exprNodeStack.pop());
}
Also used : BLangWithinClause(org.wso2.ballerinalang.compiler.tree.clauses.BLangWithinClause) WithinClause(org.ballerinalang.model.tree.clauses.WithinClause)

Aggregations

WithinClause (org.ballerinalang.model.tree.clauses.WithinClause)2 BLangWithinClause (org.wso2.ballerinalang.compiler.tree.clauses.BLangWithinClause)2