use of org.wso2.ballerinalang.compiler.tree.clauses.BLangPatternClause in project ballerina by ballerina-lang.
the class BLangPackageBuilder method endPatternClause.
public void endPatternClause(boolean isForEvents, boolean isWithinClauseAvailable, DiagnosticPos pos, Set<Whitespace> ws) {
PatternClause patternClause = this.patternClauseStack.peek();
((BLangPatternClause) patternClause).pos = pos;
patternClause.addWS(ws);
patternClause.setForAllEvents(isForEvents);
patternClause.setPatternStreamingInputNode(this.patternStreamingInputStack.pop());
if (isWithinClauseAvailable) {
patternClause.setWithinClause(this.withinClauseStack.pop());
}
}
Aggregations