File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
test/library-tests/definitions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,10 @@ private class PositionalFormatArgumentUse extends Use instanceof PositionalForma
135
135
override string getUseType ( ) { result = "format argument" }
136
136
}
137
137
138
- private class PathUse extends Use instanceof PathSegment {
138
+ private class PathUse extends Use instanceof NameRef {
139
139
private Path path ;
140
140
141
- PathUse ( ) { this = path .getSegment ( ) }
141
+ PathUse ( ) { this = path .getSegment ( ) . getIdentifier ( ) }
142
142
143
143
private CallExpr getCall ( ) { result .getFunction ( ) .( PathExpr ) .getPath ( ) = path }
144
144
Original file line number Diff line number Diff line change 3
3
| main.rs:10:36:10:39 | Self | main.rs:7:9:7:21 | struct S | path |
4
4
| main.rs:11:17:11:17 | S | main.rs:7:9:7:21 | struct S | path |
5
5
| main.rs:16:22:16:22 | T | main.rs:16:19:16:19 | T | path |
6
- | main.rs:18:13:18:17 | S2::<...> | main.rs:16:5:16:24 | struct S2 | path |
6
+ | main.rs:18:13:18:14 | S2 | main.rs:16:5:16:24 | struct S2 | path |
7
7
| main.rs:18:16:18:16 | T | main.rs:18:10:18:10 | T | path |
8
8
| main.rs:19:23:19:23 | T | main.rs:18:10:18:10 | T | path |
9
9
| main.rs:19:29:19:32 | Self | main.rs:16:5:16:24 | struct S2 | path |
34
34
| main.rs:38:5:38:5 | s | main.rs:37:9:37:9 | s | local variable |
35
35
| main.rs:38:7:38:12 | method | main.rs:10:13:12:13 | fn method | method |
36
36
| main.rs:39:5:39:6 | M1 | main.rs:5:1:23:1 | mod M1 | path |
37
- | main.rs:39:9:39:15 | S2::<...> | main.rs:16:5:16:24 | struct S2 | path |
37
+ | main.rs:39:9:39:10 | S2 | main.rs:16:5:16:24 | struct S2 | path |
38
38
| main.rs:39:14:39:14 | S | main.rs:1:1:1:9 | struct S | path |
39
39
| main.rs:39:18:39:20 | new | main.rs:19:9:21:9 | fn new | path |
40
40
| main.rs:39:22:39:22 | S | main.rs:1:1:1:9 | struct S | path |
You can’t perform that action at this time.
0 commit comments