Skip to content

Commit c2913c6

Browse files
committed
Add debug info.
1 parent 5d7285e commit c2913c6

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

analysis/tests/src/Hover.res

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ module TypeSustitutionRecords = {
161161
type bar = {age: int}
162162
type foobar = foo<bar>
163163

164+
// ^db+
165+
164166
let x1: foo<bar> = {content: {age: 42}, zzz: ""}
165167
// ^hov
166168
let x2: foobar = {content: {age: 42}, zzz: ""}

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

+18-2
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,25 @@ Hover src/Hover.res 142:9
104104
Hover src/Hover.res 146:6
105105
{"contents": "```rescript\nint\n```\n\n doc comment 2 "}
106106

107-
Hover src/Hover.res 163:23
107+
108+
Hover src/Hover.res 165:23
109+
Ident!! Dep
110+
Ident!! JsLogger
111+
Ident!! A
112+
Ident!! B
113+
Ident!! Comp
114+
locItems:
115+
165:22-165:29 Typed content foo<'a> (LocalReference Field(content))
116+
[ref] Local defn Field(content)
108117
{"contents": "```rescript\nfoo<'a>\n```\n\n```rescript\ntype foo<'a> = {content: 'a, zzz: string}\n```"}
109118

110-
Hover src/Hover.res 165:22
119+
Hover src/Hover.res 167:22
120+
Ident!! Dep
121+
Ident!! JsLogger
122+
Ident!! A
123+
Ident!! B
124+
Ident!! Comp
125+
locItems:
126+
167:20-167:27 Typed content foo<'a> NotFound
111127
{"contents": "```rescript\nfoo<'a>\n```\n\n```rescript\ntype foo<'a> = {content: 'a, zzz: string}\n```"}
112128

0 commit comments

Comments
 (0)