File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
test/query-tests/definitions Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,11 @@ private AstNode redirectOnce(AstNode node) {
183
183
result = cls .getIdentifier ( )
184
184
)
185
185
or
186
+ exists ( FunctionDeclStmt decl |
187
+ node = decl and
188
+ result = decl .getIdentifier ( )
189
+ )
190
+ or
186
191
exists ( MethodDeclaration member |
187
192
not member instanceof ConstructorDeclaration and
188
193
node = member .getBody ( ) and
Original file line number Diff line number Diff line change 1
1
| b.js:3:3:3:3 | x | b.js:2:7:2:7 | x | V |
2
- | b.js:7:1:7:1 | f | b.js:1:1:5:1 | functio ... ar x;\\n} | M |
3
- | b.js:8:1:8:1 | g | a.js:2:1 :2:15 | function g() {} | M |
2
+ | b.js:7:1:7:1 | f | b.js:1:10:1:10 | f | M |
3
+ | b.js:8:1:8:1 | g | a.js:2:10 :2:10 | g | M |
4
4
| client.ts:1:22:1:30 | "./tslib" | tslib.ts:1:1:10:0 | <toplevel> | I |
5
5
| client.ts:7:19:7:19 | C | tslib.ts:1:14:1:14 | C | T |
6
6
| client.ts:8:10:8:10 | C | client.ts:3:7:3:7 | C | T |
16
16
| client.ts:16:3:16:3 | z | client.ts:13:38:13:38 | z | V |
17
17
| client.ts:16:5:16:5 | m | tslib.ts:7:5:7:5 | m | M |
18
18
| d.js:1:17:1:21 | './c' | c.js:1:1:1:20 | <toplevel> | I |
19
- | d.js:10:1:10:1 | A | d.js:7:1:9:1 | functio ... = 42;\\n} | V |
19
+ | d.js:10:1:10:1 | A | d.js:7:10:7:10 | A | V |
20
20
| d.js:16:19:16:23 | Super | d.js:12:7:12:11 | Super | V |
21
21
| d.js:16:25:16:24 | args | d.js:16:25:16:24 | args | V |
22
22
| d.js:20:1:20:1 | o | d.js:3:9:5:1 | {\\n f: ... () {}\\n} | V |
23
23
| d.js:20:3:20:3 | f | d.js:4:3:4:18 | f: function() {} | M |
24
- | d.js:22:13:22:13 | A | d.js:7:1:9:1 | functio ... = 42;\\n} | M |
24
+ | d.js:22:13:22:13 | A | d.js:7:10:7:10 | A | M |
25
25
| d.js:23:1:23:1 | a | d.js:22:5:22:5 | a | V |
26
26
| d.js:23:3:23:3 | x | d.js:8:3:8:8 | this.x | M |
27
27
| d.js:24:1:24:1 | a | d.js:22:5:22:5 | a | V |
You can’t perform that action at this time.
0 commit comments