File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -683,6 +683,13 @@ let completionWithParser ~debug ~path ~posCursor ~currentFile ~text =
683
683
Printf. printf " posCursor:[%s] posNoWhite:[%s] Found pattern:%s\n "
684
684
(Pos. toString posCursor) (Pos. toString posNoWhite)
685
685
(Loc. toString pat.ppat_loc);
686
+ (match pat.ppat_desc with
687
+ | Ppat_construct (lid , _ ) ->
688
+ if debug then
689
+ Printf. printf " XXX Ppat_construct %s:%s\n "
690
+ (flattenLidCheckDot lid |> String. concat " ." )
691
+ (Loc. toString lid.loc)
692
+ | _ -> () );
686
693
Ast_iterator. default_iterator.pat iterator pat)
687
694
in
688
695
let module_expr (iterator : Ast_iterator.iterator )
Original file line number Diff line number Diff line change @@ -1394,6 +1394,7 @@ XXX Pexp_match with 1 cases not handled
1394
1394
XXX first case pattern:[362:7->364:5] expression:[364:9->364:10]
1395
1395
posCursor:[362:8] posNoWhite:[362:7] Found pattern:[362:7->364:5]
1396
1396
posCursor:[362:8] posNoWhite:[362:7] Found pattern:[362:7->362:8]
1397
+ XXX Ppat_construct T:[362:7->362:8]
1397
1398
[]
1398
1399
1399
1400
Complete tests/src/Completion.res 367:30
@@ -1402,6 +1403,7 @@ posCursor:[367:30] posNoWhite:[367:29] Found expr:[367:16->376:3]
1402
1403
XXX Pexp_match with 1 cases not handled
1403
1404
XXX first case pattern:[367:29->367:30] expression:[370:0->376:3]
1404
1405
posCursor:[367:30] posNoWhite:[367:29] Found pattern:[367:29->367:30]
1406
+ XXX Ppat_construct T:[367:29->367:30]
1405
1407
[]
1406
1408
1407
1409
Complete tests/src/Completion.res 372:8
@@ -1411,5 +1413,6 @@ XXX Pexp_match with 2 cases not handled
1411
1413
XXX first case pattern:[372:7->374:5] expression:[374:18->374:19]
1412
1414
posCursor:[372:8] posNoWhite:[372:7] Found pattern:[372:7->374:5]
1413
1415
posCursor:[372:8] posNoWhite:[372:7] Found pattern:[372:7->372:8]
1416
+ XXX Ppat_construct T:[372:7->372:8]
1414
1417
[]
1415
1418
You can’t perform that action at this time.
0 commit comments