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