-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: java and javascript since php changes (#1300)
* fix(java): add missing pattern container types * fix(javascript): match strings correctly
- Loading branch information
Showing
10 changed files
with
204 additions
and
15 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
internal/languages/java/.snapshots/TestPattern-catch_types_is_a_container_type
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
(*builder.Result)({ | ||
Query: (string) (len=328) "([(class_declaration . (_) . [(class_body [(method_declaration . [ (void_type )] @param1 . [ (identifier )] @param2 . [ (formal_parameters )] . [(block [(try_statement [ (block )] [(catch_clause . [(catch_formal_parameter . [(catch_type (_) @match)] . [ (identifier )] @param3 .)] . [ (block )] .)])] )] .)] )] .)] @root)", | ||
VariableNames: ([]string) (len=1) { | ||
(string) (len=1) "_" | ||
}, | ||
ParamToVariable: (map[string]string) { | ||
}, | ||
EqualParams: ([][]string) <nil>, | ||
ParamToContent: (map[string]map[string]string) (len=3) { | ||
(string) (len=6) "param1": (map[string]string) (len=1) { | ||
(string) (len=9) "void_type": (string) (len=4) "void" | ||
}, | ||
(string) (len=6) "param2": (map[string]string) (len=1) { | ||
(string) (len=10) "identifier": (string) (len=4) "main" | ||
}, | ||
(string) (len=6) "param3": (map[string]string) (len=1) { | ||
(string) (len=10) "identifier": (string) (len=1) "e" | ||
} | ||
}, | ||
RootVariable: (*language.PatternVariable)(<nil>) | ||
}) |
18 changes: 18 additions & 0 deletions
18
internal/languages/java/.snapshots/TestPattern-method_params_is_a_container_type
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(*builder.Result)({ | ||
Query: (string) (len=190) "([(class_declaration . (_) . [(class_body [(method_declaration . [ (void_type )] @param1 . [ (identifier )] @param2 . [(formal_parameters . (_) @match . )] . [ (block )] .)] )] .)] @root)", | ||
VariableNames: ([]string) (len=1) { | ||
(string) (len=1) "_" | ||
}, | ||
ParamToVariable: (map[string]string) { | ||
}, | ||
EqualParams: ([][]string) <nil>, | ||
ParamToContent: (map[string]map[string]string) (len=2) { | ||
(string) (len=6) "param1": (map[string]string) (len=1) { | ||
(string) (len=9) "void_type": (string) (len=4) "void" | ||
}, | ||
(string) (len=6) "param2": (map[string]string) (len=1) { | ||
(string) (len=10) "identifier": (string) (len=4) "main" | ||
} | ||
}, | ||
RootVariable: (*language.PatternVariable)(<nil>) | ||
}) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,4 +94,9 @@ children: | |
data: | ||
value: a | ||
isliteral: true | ||
- node: 5 | ||
content: a | ||
data: | ||
value: a | ||
isliteral: true | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ | |
|
||
x = "a" | ||
`${x} b` | ||
|
||
"hello\x20world\\" |
This file contains 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