Skip to content

Commit 159bb3a

Browse files
authored
Merge pull request #178 from rostilos/1.5.7-rc
feat: Update function and class definitions to use specific expressio…
2 parents 0db1928 + 17df745 commit 159bb3a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

java-ecosystem/libs/ast-parser/src/main/resources/queries/javascript/scopes.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
(arrow_function) @function.def
1212

13-
(function) @function.def
13+
(function_expression) @function.def
1414

1515
(generator_function_declaration
1616
name: (identifier) @name) @function.def
@@ -19,7 +19,7 @@
1919
(class_declaration
2020
name: (identifier) @name) @class.def
2121

22-
(class) @class.def
22+
(class_expression) @class.def
2323

2424
; ── Control-flow blocks ──────────────────────────────────────────────
2525
(if_statement) @block.def

java-ecosystem/libs/ast-parser/src/main/resources/queries/tsx/scopes.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
(arrow_function) @function.def
1212

13-
(function) @function.def
13+
(function_expression) @function.def
1414

1515
; ── Classes & Interfaces ─────────────────────────────────────────────
1616
(class_declaration

java-ecosystem/libs/ast-parser/src/main/resources/queries/typescript/scopes.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
(arrow_function) @function.def
1212

13-
(function) @function.def
13+
(function_expression) @function.def
1414

1515
(generator_function_declaration
1616
name: (identifier) @name) @function.def

0 commit comments

Comments
 (0)