File tree Expand file tree Collapse file tree 2 files changed +0
-31
lines changed
Expand file tree Collapse file tree 2 files changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -392,12 +392,6 @@ let with_in_formal_parameters in_formal_parameters env =
392392 else
393393 { env with in_formal_parameters }
394394
395- let with_in_function in_function env =
396- if in_function = env.in_function then
397- env
398- else
399- { env with in_function }
400-
401395let with_in_match_expression in_match_expression env =
402396 if in_match_expression = env.in_match_expression then
403397 env
@@ -587,19 +581,6 @@ let is_contextually_reserved str_val =
587581 true
588582 | _ -> false
589583
590- (* * Words that are sometimes reserved, and sometimes allowed as identifiers
591- (namely "await" and "yield")
592-
593- https://tc39.es/ecma262/#sec-keywords-and-reserved-words *)
594- let token_is_contextually_reserved t =
595- let open Token in
596- match t with
597- | T_IDENTIFIER { raw; _ } -> is_contextually_reserved raw
598- | T_AWAIT
599- | T_YIELD ->
600- true
601- | _ -> false
602-
603584(* * Words that are always reserved (mostly keywords)
604585
605586 https://tc39.es/ecma262/#sec-keywords-and-reserved-words *)
@@ -1034,10 +1015,6 @@ module Peek = struct
10341015 error) *)
10351016 let is_identifier env = ith_is_identifier ~i: 0 env
10361017
1037- let is_identifier_name env = ith_is_identifier_name ~i: 0 env
1038-
1039- let is_type_identifier env = ith_is_type_identifier ~i: 0 env
1040-
10411018 let is_function env =
10421019 token env = T_FUNCTION
10431020 || token env = T_ASYNC
Original file line number Diff line number Diff line change @@ -153,8 +153,6 @@ val with_strict : bool -> env -> env
153153
154154val with_in_formal_parameters : bool -> env -> env
155155
156- val with_in_function : bool -> env -> env
157-
158156val with_in_match_expression : bool -> env -> env
159157
160158val with_in_match_statement : bool -> env -> env
@@ -201,8 +199,6 @@ val is_contextually_reserved : string -> bool
201199
202200val is_reserved : string -> bool
203201
204- val token_is_contextually_reserved : Token .t -> bool
205-
206202val token_is_reserved : Token .t -> bool
207203
208204val token_is_reserved_type : Token .t -> bool
@@ -238,10 +234,6 @@ module Peek : sig
238234
239235 val is_identifier : env -> bool
240236
241- val is_type_identifier : env -> bool
242-
243- val is_identifier_name : env -> bool
244-
245237 val is_function : env -> bool
246238
247239 val is_hook : env -> bool
You can’t perform that action at this time.
0 commit comments