-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[Go target] Fix for #3926: Add accessors for tree navigation to interfaces in generated parser #3927
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
[Go target] Fix for #3926: Add accessors for tree navigation to interfaces in generated parser #3927
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,14 +11,23 @@ | |
|
|
||
| public abstract class ContextGetterDecl extends Decl { | ||
| public ContextGetterDecl(OutputModelFactory factory, String name) { | ||
| this(factory, name, false); | ||
| } | ||
|
|
||
| public ContextGetterDecl(OutputModelFactory factory, String name, boolean signature) { | ||
| super(factory, name); | ||
| this.signature = signature; | ||
| } | ||
|
|
||
| /** Not used for output; just used to distinguish between decl types | ||
| * to avoid dups. | ||
| */ | ||
| public String getArgType() { return ""; }; // assume no args | ||
|
|
||
| private boolean signature = false; | ||
|
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. If I understand correctly, it should be marked with |
||
| public boolean getSignature() { return signature; } | ||
|
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. No need to use getter method if 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. Good call: #3947 |
||
| abstract ContextGetterDecl getSignatureDecl(); | ||
|
|
||
| @Override | ||
| public int hashCode() { | ||
| int hash = MurmurHash.initialize(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.