Skip to content

Commit fd4fe29

Browse files
committed
Clean up now unused occurrences of Function$.
1 parent ce19feb commit fd4fe29

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

analysis/src/CompletionFrontEnd.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ let completionWithParser1 ~currentFile ~debug ~offset ~path ~posCursor
10931093
(* Ignore list expressions, used in JSX, unit, and more *) ()
10941094
| Pexp_construct (lid, eOpt) -> (
10951095
let lidPath = flattenLidCheckDot lid in
1096-
if debug && lid.txt <> Lident "Function$" then
1096+
if debug then
10971097
Printf.printf "Pexp_construct %s:%s %s\n"
10981098
(lidPath |> String.concat "\n")
10991099
(Loc.toString lid.loc)

analysis/src/Xform.ml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,7 @@ module AddTypeAnnotation = struct
303303
in
304304
let rec processFunction ~argNum (e : Parsetree.expression) =
305305
match e.pexp_desc with
306-
| Pexp_fun (argLabel, _, pat, e, _)
307-
| Pexp_construct
308-
( {txt = Lident "Function$"},
309-
Some {pexp_desc = Pexp_fun (argLabel, _, pat, e, _)} ) ->
306+
| Pexp_fun (argLabel, _, pat, e, _) ->
310307
let isUnlabeledOnlyArg =
311308
argNum = 1 && argLabel = Nolabel
312309
&&

0 commit comments

Comments
 (0)