File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -292,8 +292,7 @@ let parse whole_reference_location s :
292
292
| `TModuleType ->
293
293
`ModuleType
294
294
(signature next_token tokens, ModuleTypeName. make_std identifier)
295
- | `TPathComponent ->
296
- `Module_path (path [ identifier ] next_token tokens)
295
+ | `TPathComponent -> assert false
297
296
| _ ->
298
297
expected ~expect_paths: true [ " module" ; " module-type" ] location
299
298
|> Error. raise_exception)
@@ -396,7 +395,7 @@ let parse whole_reference_location s :
396
395
| `TClassType ->
397
396
`ClassType
398
397
(signature next_token tokens, ClassTypeName. make_std identifier)
399
- | `TPathComponent -> `Page_path (path [ identifier ] next_token tokens)
398
+ | `TPathComponent -> assert false
400
399
| _ ->
401
400
expected ~expect_paths: true
402
401
[ " module" ; " module-type" ; " type" ; " class" ; " class-type" ]
@@ -500,7 +499,7 @@ let parse whole_reference_location s :
500
499
in
501
500
(* Prefixed pages are not differentiated. *)
502
501
`Page_path (path [ identifier ] next_token tokens)
503
- | `TPathComponent -> `Page_path (path [ identifier ] next_token tokens) )
502
+ | `TPathComponent -> assert false )
504
503
in
505
504
506
505
let old_kind, s, location =
You can’t perform that action at this time.
0 commit comments