use of org.ballerinalang.model.tree.clauses.HavingNode 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.HavingNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method endHavingClauseNode.
public void endHavingClauseNode(DiagnosticPos pos, Set<Whitespace> ws) {
HavingNode havingNode = this.havingClauseStack.peek();
((BLangHaving) havingNode).pos = pos;
havingNode.addWS(ws);
havingNode.setExpression(this.exprNodeStack.pop());
}
use of org.ballerinalang.model.tree.clauses.HavingNode in project ballerina by ballerina-lang.
the class BLangPackageBuilder method startHavingClauseNode.
public void startHavingClauseNode(DiagnosticPos pos, Set<Whitespace> ws) {
HavingNode havingNode = TreeBuilder.createHavingNode();
((BLangHaving) havingNode).pos = pos;
havingNode.addWS(ws);
this.havingClauseStack.push(havingNode);
}
Aggregations