use of org.ballerinalang.model.tree.clauses.GroupByNode in project ballerina by ballerina-lang.
the class SemanticAnalyzer method visit.
public void visit(BLangSelectClause selectClause) {
GroupByNode groupByNode = selectClause.getGroupBy();
if (groupByNode != null) {
((BLangGroupBy) groupByNode).accept(this);
}
HavingNode havingNode = selectClause.getHaving();
if (havingNode != null) {
((BLangHaving) havingNode).accept(this);
}
List<? extends SelectExpressionNode> selectExpressionsList = selectClause.getSelectExpressions();
if (selectExpressionsList != null) {
for (SelectExpressionNode selectExpressionNode : selectExpressionsList) {
((BLangSelectExpression) selectExpressionNode).accept(this);
}
}
}
use of org.ballerinalang.model.tree.clauses.GroupByNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method endGroupByClauseNode.
public void endGroupByClauseNode(DiagnosticPos pos, Set<Whitespace> ws) {
GroupByNode groupByNode = this.groupByClauseStack.peek();
((BLangGroupBy) groupByNode).pos = pos;
groupByNode.addWS(ws);
this.exprNodeListStack.pop().forEach(groupByNode::addVariableReference);
}
use of org.ballerinalang.model.tree.clauses.GroupByNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method startGroupByClauseNode.
public void startGroupByClauseNode(DiagnosticPos pos, Set<Whitespace> ws) {
GroupByNode groupByNode = TreeBuilder.createGroupByNode();
((BLangGroupBy) groupByNode).pos = pos;
groupByNode.addWS(ws);
this.groupByClauseStack.push(groupByNode);
}
Aggregations