File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ let locItemForPos ~full pos =
24
24
(" locItems:\n "
25
25
^ (locItems |> List. map locItemToString |> String. concat " \n " ));
26
26
match locItems with
27
- | _ :: _ :: _ :: l :: _ when full.file.uri |> Uri2. isInterface ->
27
+ | _ :: _ :: _ :: ({locType = Typed (" makeProps" , _, _)} as l) :: _
28
+ when full.file.uri |> Uri2. isInterface ->
28
29
(* heuristic for makeProps in interface files *)
29
30
Some l
30
31
| [
@@ -67,9 +68,6 @@ let locItemForPos ~full pos =
67
68
Props has the location range of arg:t
68
69
arg has the location range of arg
69
70
heuristic for: [Props, arg], give loc of `arg` *)
70
- (* Printf.eprintf "l1 %s\nl2 %s\n"
71
- (SharedTypes.locationToString _l1)
72
- (SharedTypes.locationToString l2); *)
73
71
Some li2
74
72
| [li1; li2; li3] when li1.loc = li2.loc && li2.loc = li3.loc ->
75
73
(* JSX with at most one child
You can’t perform that action at this time.
0 commit comments