Skip to content

Commit 228374c

Browse files
committed
Tweak test: nested.
1 parent 779c890 commit 228374c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

analysis/tests/src/Parser.res

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,14 @@ let add = (~hello as x, ~world) => x + world
7272
let _ = add(~hello=3)
7373

7474
let _ = <div scale="abc"> <div /> </div>
75+
76+
module SomeComponent = {
77+
module Nested = {
78+
@react.component
79+
let make = (~children) => {
80+
<> {children} </>
81+
}
82+
}
83+
}
84+
85+
let _ = <SomeComponent.Nested> <div /> </SomeComponent.Nested>

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Parse tests/src/Parser.res
2-
structure items:20 diagnostics:0
2+
structure items:22 diagnostics:0
33
Lident: M (0,7) Namespace
44
Lident: C (1,9) Namespace
55
Lident: Component (1,13) Namespace
@@ -78,4 +78,14 @@ Lident: add (71,8) Variable
7878
Lident: div (73,9) JsxTag
7979
Lident: div (73,36) JsxTag
8080
Lident: div (73,27) JsxTag
81+
Lident: SomeComponent (75,7) Namespace
82+
Lident: Nested (76,9) Namespace
83+
Lident: children (79,10) Variable
84+
Variable: children (78,16)->(78,25)
85+
Variable: make (78,8)->(78,12)
86+
Ldot: SomeComponent (84,9) Namespace
87+
Lident: Nested (84,23) Namespace
88+
Ldot: Nested (84,41) Namespace
89+
Lident: SomeComponent (84,48) Namespace
90+
Lident: div (84,32) JsxTag
8191

0 commit comments

Comments
 (0)