use of org.ballerinalang.model.tree.clauses.StreamActionNode in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangStreamingQueryStatement streamingQueryStatement) {
StreamingInput streamingInput = streamingQueryStatement.getStreamingInput();
if (streamingInput != null) {
((BLangStreamingInput) streamingInput).accept(this);
JoinStreamingInput joinStreamingInput = streamingQueryStatement.getJoiningInput();
if (joinStreamingInput != null) {
((BLangJoinStreamingInput) joinStreamingInput).accept(this);
}
}
SelectClauseNode selectClauseNode = streamingQueryStatement.getSelectClause();
if (selectClauseNode != null) {
((BLangSelectClause) selectClauseNode).accept(this);
}
OrderByNode orderByNode = streamingQueryStatement.getOrderbyClause();
if (orderByNode != null) {
((BLangOrderBy) orderByNode).accept(this);
}
StreamActionNode streamActionNode = streamingQueryStatement.getStreamingAction();
if (streamActionNode != null) {
((BLangStreamAction) streamActionNode).accept(this);
}
BLangPatternClause patternClause = (BLangPatternClause) streamingQueryStatement.getPatternClause();
if (patternClause != null) {
patternClause.accept(this);
}
}
use of org.ballerinalang.model.tree.clauses.StreamActionNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method startStreamActionNode.
public void startStreamActionNode(DiagnosticPos pos, Set<Whitespace> ws, PackageID packageID) {
StreamActionNode streamActionNode = TreeBuilder.createStreamActionNode();
((BLangStreamAction) streamActionNode).pos = pos;
streamActionNode.addWS(ws);
this.streamActionNodeStack.push(streamActionNode);
this.startLambdaFunctionDef(packageID);
}
use of org.ballerinalang.model.tree.clauses.StreamActionNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method endStreamActionNode.
public void endStreamActionNode(DiagnosticPos pos, Set<Whitespace> ws) {
StreamActionNode streamActionNode = this.streamActionNodeStack.peek();
((BLangStreamAction) streamActionNode).pos = pos;
streamActionNode.addWS(ws);
this.addLambdaFunctionDef(pos, ws, true, false, false);
streamActionNode.setInvokableBody((BLangLambdaFunction) this.exprNodeStack.peek());
}
Aggregations