Skip to content

Commit

Permalink
feat: improve Visitors
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Reichel <[email protected]>
  • Loading branch information
manticore-projects committed Jul 7, 2024
1 parent 13572a8 commit 8a662af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,6 @@ default void visit(ContainedBy containedBy) {

<S> T visit(ParenthesedSelect select, S context);

default void visit(ParenthesedSelect select) {
this.visit(select, null);
}

<S> T visit(Column column, S context);

default void visit(Column column) {
Expand Down Expand Up @@ -596,10 +592,6 @@ default void visit(GeometryDistance geometryDistance) {

<S> T visit(Select select, S context);

default void visit(Select select) {
this.visit(select, null);
}

<S> T visit(TranscodingFunction transcodingFunction, S context);

default void visit(TranscodingFunction transcodingFunction) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ public <S> T visit(PlainSelect plainSelect, S context) {

@Override
public <S> T visit(SetOperationList setOpList, S context) {
for (Select select : setOpList.getSelects()) {
select.accept(this, context);
}
return null;
}

@Override
public <S> T visit(WithItem withItem, S context) {
return null;
return withItem.getSelect().accept(this, context);
}

@Override
Expand All @@ -39,7 +42,7 @@ public <S> T visit(Values aThis, S context) {

@Override
public <S> T visit(LateralSubSelect lateralSubSelect, S context) {
return null;
return lateralSubSelect.getSelect().accept(this, context);
}

@Override
Expand Down

0 comments on commit 8a662af

Please sign in to comment.