зеркало из https://github.com/github/stack-graphs.git
Merge pull request #442 from NinoScript/update-tree-sitter-java
Update `tree-sitter-java` from `0.20.0` to `0.20.2`
This commit is contained in:
Коммит
a66702fa75
|
@ -40,7 +40,7 @@ cli = ["anyhow", "clap", "tree-sitter-stack-graphs/cli"]
|
|||
[dependencies]
|
||||
anyhow = { version = "1.0", optional = true }
|
||||
clap = { version = "4", features = ["derive"], optional = true }
|
||||
tree-sitter-java = { version = "=0.20.0" }
|
||||
tree-sitter-java = { version = "=0.20.2" }
|
||||
tree-sitter-stack-graphs = { version = "0.8", path = "../../tree-sitter-stack-graphs" }
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -1078,6 +1078,10 @@ attribute node_symbol = node => symbol = (source-text node), source_n
|
|||
edge @child.lexical_scope -> @expr.lexical_scope
|
||||
}
|
||||
|
||||
(condition (_) @child) @expr {
|
||||
edge @child.lexical_scope -> @expr.lexical_scope
|
||||
}
|
||||
|
||||
;; =============
|
||||
;; Expressions
|
||||
;; =============
|
||||
|
@ -1107,6 +1111,7 @@ attribute node_symbol = node => symbol = (source-text node), source_n
|
|||
(this)
|
||||
; (identifier)
|
||||
(parenthesized_expression)
|
||||
(condition)
|
||||
(object_creation_expression)
|
||||
(field_access)
|
||||
(array_access)
|
||||
|
|
Загрузка…
Ссылка в новой задаче