Skip to content

Commit 955876c

Browse files
committed
Remove debugging of switched to clean up the output.
1 parent cb54388 commit 955876c

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

analysis/src/CompletionFrontEnd.ml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -645,15 +645,6 @@ let completionWithParser ~debug ~path ~posCursor ~currentFile ~text =
645645
iterator.expr iterator modBody;
646646
scope := oldScope;
647647
processed := true
648-
| Pexp_match (_, cases) -> (
649-
Printf.printf "XXX Pexp_match with %d cases not handled\n"
650-
(List.length cases);
651-
match cases with
652-
| {pc_lhs; pc_rhs} :: _ ->
653-
Printf.printf "XXX first case pattern:%s expression:%s\n"
654-
(Loc.toString pc_lhs.ppat_loc)
655-
(Loc.toString pc_rhs.pexp_loc)
656-
| _ -> ())
657648
| _ -> ());
658649
if not !processed then Ast_iterator.default_iterator.expr iterator expr
659650
in

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -956,8 +956,6 @@ Completable: Cnone
956956

957957
Complete tests/src/Completion.res 243:8
958958
posCursor:[243:8] posNoWhite:[243:7] Found expr:[241:8->246:1]
959-
XXX Pexp_match with 1 cases not handled
960-
XXX first case pattern:[242:2->242:10] expression:[242:14->245:8]
961959
posCursor:[243:8] posNoWhite:[243:7] Found expr:[242:14->245:8]
962960
posCursor:[243:8] posNoWhite:[243:7] Found expr:[242:14->245:1]
963961
Pexp_apply ...[243:3->243:4] (...[242:14->242:15], ...[243:5->245:1])
@@ -1336,8 +1334,6 @@ Completable: Cpath Type[Res]
13361334

13371335
Complete tests/src/Completion.res 343:57
13381336
posCursor:[343:57] posNoWhite:[343:56] Found expr:[343:10->346:23]
1339-
XXX Pexp_match with 1 cases not handled
1340-
XXX first case pattern:[343:29->343:49] expression:[343:53->346:23]
13411337
posCursor:[343:57] posNoWhite:[343:56] Found expr:[343:53->346:23]
13421338
posCursor:[343:57] posNoWhite:[343:56] Found expr:[343:53->343:57]
13431339
Pexp_ident this:[343:53->343:57]
@@ -1390,8 +1386,6 @@ posCursor:[355:23] posNoWhite:[355:22] Found expr:[355:12->355:23]
13901386
Complete tests/src/Completion.res 362:8
13911387
posCursor:[362:8] posNoWhite:[362:7] Found expr:[360:8->365:3]
13921388
posCursor:[362:8] posNoWhite:[362:7] Found expr:[361:2->365:3]
1393-
XXX Pexp_match with 1 cases not handled
1394-
XXX first case pattern:[362:7->364:5] expression:[364:9->364:10]
13951389
posCursor:[362:8] posNoWhite:[362:7] Found pattern:[362:7->364:5]
13961390
posCursor:[362:8] posNoWhite:[362:7] Found pattern:[362:7->362:8]
13971391
XXX Ppat_construct T:[362:7->362:8]
@@ -1400,17 +1394,13 @@ XXX Ppat_construct T:[362:7->362:8]
14001394
Complete tests/src/Completion.res 367:30
14011395
posCursor:[367:30] posNoWhite:[367:29] Found expr:[367:11->376:3]
14021396
posCursor:[367:30] posNoWhite:[367:29] Found expr:[367:16->376:3]
1403-
XXX Pexp_match with 1 cases not handled
1404-
XXX first case pattern:[367:29->367:30] expression:[370:0->376:3]
14051397
posCursor:[367:30] posNoWhite:[367:29] Found pattern:[367:29->367:30]
14061398
XXX Ppat_construct T:[367:29->367:30]
14071399
[]
14081400

14091401
Complete tests/src/Completion.res 372:8
14101402
posCursor:[372:8] posNoWhite:[372:7] Found expr:[370:8->376:3]
14111403
posCursor:[372:8] posNoWhite:[372:7] Found expr:[371:2->376:3]
1412-
XXX Pexp_match with 2 cases not handled
1413-
XXX first case pattern:[372:7->374:5] expression:[374:18->374:19]
14141404
posCursor:[372:8] posNoWhite:[372:7] Found pattern:[372:7->374:5]
14151405
posCursor:[372:8] posNoWhite:[372:7] Found pattern:[372:7->372:8]
14161406
XXX Ppat_construct T:[372:7->372:8]

0 commit comments

Comments
 (0)