Skip to content

Commit d2aad5c

Browse files
committed
Tests for jump to definition for interfaces and implementations.
1 parent f82b3d9 commit d2aad5c

File tree

6 files changed

+16
-0
lines changed

6 files changed

+16
-0
lines changed

analysis/tests/src/Cross.res

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ let _ = RenameWithInterface.x
2828

2929
let typeDef = {TypeDefinition.item: "foobar"}
3030
// ^typ
31+
32+
let _ = DefinitionWithInterface.y
33+
// ^def
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
let y = 4
2+
// ^def
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
let y: int
2+
// ^def

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,6 @@ Rename tests/src/Cross.res 24:28 xPrime
8484
TypeDefinition tests/src/Cross.res 28:5
8585
{"uri": "TypeDefinition.res", "range": {"start": {"line": 2, "character": 0}, "end": {"line": 2, "character": 28}}}
8686

87+
Definition tests/src/Cross.res 31:32
88+
{"uri": "DefinitionWithInterface.resi", "range": {"start": {"line": 0, "character": 4}, "end": {"line": 0, "character": 5}}}
89+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Definition tests/src/DefinitionWithInterface.res 0:4
2+
{"uri": "DefinitionWithInterface.resi", "range": {"start": {"line": 0, "character": 4}, "end": {"line": 0, "character": 5}}}
3+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Definition tests/src/DefinitionWithInterface.resi 0:4
2+
{"uri": "DefinitionWithInterface.res", "range": {"start": {"line": 0, "character": 4}, "end": {"line": 0, "character": 5}}}
3+

0 commit comments

Comments
 (0)