This repository was archived by the owner on Sep 9, 2025. It is now read-only.
fix(grammar): The TSG grammar for Java does not handle the static_initializer node#475
Closed
drestrepom wants to merge 1 commit intogithub:mainfrom
Closed
fix(grammar): The TSG grammar for Java does not handle the static_initializer node#475drestrepom wants to merge 1 commit intogithub:mainfrom
drestrepom wants to merge 1 commit intogithub:mainfrom
Conversation
drestrepom
commented
Jan 30, 2025
- Add the static_initializer node for the Java grammar, this node may contain multiple statements, such as initializing variables or executing functions
…tializer node - Add the static_initializer node for the Java grammar, this node may contain multiple statements, such as initializing variables or executing functions
Author
|
Here, a demonstration of what happens when that node is not handled test/decl/static_initializer.java: failed to build stack graph
0: Error executing statement edge @class_body.defs -> @declaration.defs at (225, 3)
src/stack-graphs.tsg:225:3:
225 | edge @class_body.defs -> @declaration.defs
| ^
in stanza
src/stack-graphs.tsg:224:1:
224 | (class_body (_)@declaration)@class_body {
| ^
matching (class_body) node
test/decl/static_initializer.java:1:17:
1 | class TestClass {
| ^
1: Evaluating edge sink
2: Undefined scoped variable [syntax node static_initializer (2, 3)].defs
Error: Failed to build graph for test/decl/static_initializer.java
error: test failed, to rerun pass `--test test`This is an example of using this node in a concurred repository |
Contributor
|
The github/stack-graphs repository is no longer being maintained. As per #502, I'm closing all issues and pull requests before archiving the repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.