-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v1] Add AST factory methods; some fixes to AST classes #1622
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,12 @@ | |
*/ | ||
@Builder(builderClassName = "Builder") | ||
public class GraphQuantifier extends AstNode { | ||
@NotNull | ||
public final Long lower; | ||
Comment on lines
-17
to
-18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (self-review) type could just be primitive |
||
public final long lower; | ||
|
||
@Nullable | ||
public final Long upper; | ||
|
||
public GraphQuantifier(@NotNull Long lower, @Nullable Long upper) { | ||
public GraphQuantifier(long lower, @Nullable Long upper) { | ||
this.lower = lower; | ||
this.upper = upper; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,8 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) { | |
*/ | ||
@Builder(builderClassName = "Builder") | ||
public static class AnyShortest extends GraphSelector { | ||
public AnyShortest() {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (self-review) some missing constructors in the graph/ directory. |
||
|
||
@Override | ||
@NotNull | ||
public Collection<AstNode> children() { | ||
|
@@ -53,6 +55,8 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) { | |
*/ | ||
@Builder(builderClassName = "Builder") | ||
public static class AllShortest extends GraphSelector { | ||
public AllShortest() {} | ||
|
||
@Override | ||
@NotNull | ||
public Collection<AstNode> children() { | ||
|
@@ -70,6 +74,8 @@ public <R, C> R accept(@NotNull AstVisitor<R, C> visitor, C ctx) { | |
*/ | ||
@Builder(builderClassName = "Builder") | ||
public static class Any extends GraphSelector { | ||
public Any() {} | ||
|
||
@Override | ||
@NotNull | ||
public Collection<AstNode> children() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(self-review) I forgot to change naming of this visitor function after the class was renamed.