Module Declaration_parser.Declaration

Parameters

Signature

val async : Parser_env.env -> bool * Loc.t Flow_ast.Comment.t list
val generator : Parser_env.env -> bool * Loc.t Flow_ast.Comment.t list
val variance : Parser_env.env -> parse_readonly:bool -> bool -> bool -> Loc.t Flow_ast.Variance.t option
val function_params : await:bool -> yield:bool -> Parser_env.env -> (Loc.t, Loc.t) Js_parser.Comment_attachment.Ast.Function.Params.t
val function_body : Parser_env.env -> async:bool -> generator:bool -> expression:bool -> simple_params:bool -> (Loc.t, Loc.t) Flow_ast.Function.body * bool
val check_unique_formal_parameters : Parser_env.env -> (Loc.t, Loc.t) Js_parser.Comment_attachment.Ast.Function.Params.t -> unit
val check_unique_component_formal_parameters : Parser_env.env -> (Loc.t, Loc.t) Js_parser.Comment_attachment.Ast.Statement.ComponentDeclaration.Params.t -> unit
val strict_function_post_check : Parser_env.env -> contains_use_strict:bool -> (Loc.t, Loc.t) Flow_ast.Identifier.t option -> (Loc.t, Loc.t) Js_parser.Comment_attachment.Ast.Function.Params.t -> unit
val strict_component_post_check : Parser_env.env -> contains_use_strict:bool -> (Loc.t, Loc.t) Flow_ast.Identifier.t -> (Loc.t, Loc.t) Js_parser.Comment_attachment.Ast.Statement.ComponentDeclaration.Params.t -> unit
val enum_declaration : ?leading:Loc.t Flow_ast.Comment.t list -> Parser_env.env -> (Loc.t, Loc.t) Flow_ast.Statement.t