Skip to content

Commit 8a965ff

Browse files
committed
refactor class queries and fixtures
1 parent 48c4fdb commit 8a965ff

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

data/fixtures/scopes/dart/className.scope

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ class MyClass {
33
}
44
---
55

6-
[Content] =
7-
[Domain] = 0:6-0:13
6+
[Content] = 0:6-0:13
87
>-------<
98
0| class MyClass {
109

@@ -20,4 +19,11 @@ class MyClass {
2019
>-<
2120
0| class MyClass {
2221

22+
[Domain] = 0:0-2:1
23+
>---------------
24+
0| class MyClass {
25+
1|
26+
2| }
27+
-<
28+
2329
[Insertion delimiter] = " "

queries/dart.scm

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,9 @@
2121
;;! ^^^^^^^^^^^^
2222
(
2323
[
24-
(class_definition
25-
name: (_) @className
26-
)
2724
(class_definition
2825

2926
name: (_) @className
3027
)
31-
] @class
28+
] @class @className.domain
3229
)

0 commit comments

Comments
 (0)