Search in sources :

Example 6 with BLangPatternClause

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());
    }
}
Also used : BLangMatchStmtPatternClause(org.wso2.ballerinalang.compiler.tree.statements.BLangMatch.BLangMatchStmtPatternClause) BLangPatternClause(org.wso2.ballerinalang.compiler.tree.clauses.BLangPatternClause) PatternClause(org.ballerinalang.model.tree.clauses.PatternClause)

Aggregations

BLangPatternClause (org.wso2.ballerinalang.compiler.tree.clauses.BLangPatternClause)4 BLangPatternStreamingInput (org.wso2.ballerinalang.compiler.tree.clauses.BLangPatternStreamingInput)4 PatternClause (org.ballerinalang.model.tree.clauses.PatternClause)3 JoinStreamingInput (org.ballerinalang.model.tree.clauses.JoinStreamingInput)2 OrderByNode (org.ballerinalang.model.tree.clauses.OrderByNode)2 SelectClauseNode (org.ballerinalang.model.tree.clauses.SelectClauseNode)2 StreamingInput (org.ballerinalang.model.tree.clauses.StreamingInput)2 BLangJoinStreamingInput (org.wso2.ballerinalang.compiler.tree.clauses.BLangJoinStreamingInput)2 BLangOrderBy (org.wso2.ballerinalang.compiler.tree.clauses.BLangOrderBy)2 BLangSelectClause (org.wso2.ballerinalang.compiler.tree.clauses.BLangSelectClause)2 BLangStreamAction (org.wso2.ballerinalang.compiler.tree.clauses.BLangStreamAction)2 BLangStreamingInput (org.wso2.ballerinalang.compiler.tree.clauses.BLangStreamingInput)2 BLangMatchStmtPatternClause (org.wso2.ballerinalang.compiler.tree.statements.BLangMatch.BLangMatchStmtPatternClause)2 OutputRateLimitNode (org.ballerinalang.model.tree.clauses.OutputRateLimitNode)1 StreamActionNode (org.ballerinalang.model.tree.clauses.StreamActionNode)1 BLangOutputRateLimit (org.wso2.ballerinalang.compiler.tree.clauses.BLangOutputRateLimit)1 BLangWithinClause (org.wso2.ballerinalang.compiler.tree.clauses.BLangWithinClause)1