Skip to content

Commit af851ed

Browse files
committed
Add test for references with labels.
1 parent eda5087 commit af851ed

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

analysis/tests/src/References.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ let a = x
66
let b = a
77

88
let c = x
9+
10+
let foo = (~x) => x + 1
11+
// ^ref

analysis/tests/src/expected/References.res.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ References tests/src/References.res 0:4
66
{"uri": "References.res", "range": {"start": {"line": 0, "character": 4}, "end": {"line": 0, "character": 5}}}
77
]
88

9+
References tests/src/References.res 9:18
10+
[
11+
{"uri": "References.res", "range": {"start": {"line": 9, "character": 18}, "end": {"line": 9, "character": 19}}},
12+
{"uri": "References.res", "range": {"start": {"line": 9, "character": 11}, "end": {"line": 9, "character": 13}}}
13+
]
14+

0 commit comments

Comments
 (0)