From 9288811a7f5dd8e5d523d615b0ed95fccbbe60cb Mon Sep 17 00:00:00 2001 From: Simon Grondin Date: Sat, 30 Jul 2022 12:48:08 -0500 Subject: [PATCH] Fully recheck JS AST for expressions --- src/parsing/js_ast.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parsing/js_ast.ml b/src/parsing/js_ast.ml index bacf504..666f934 100644 --- a/src/parsing/js_ast.ml +++ b/src/parsing/js_ast.ml @@ -366,7 +366,8 @@ let extract strings stmts = | Statement.DeclareExportDeclaration.NamedType (_, alias) -> extract_type_alias alias | Statement.DeclareExportDeclaration.NamedOpaqueType (_, opaque) -> extract_opaque_type opaque | Statement.DeclareExportDeclaration.Interface (_, interface) -> extract_interface interface) - | _, Statement.DeclareFunction { id = _; annot = _; predicate; comments = _ } -> + | _, Statement.DeclareFunction { id = _; annot = _, ty; predicate; comments = _ } -> + extract_type ty; Option.iter predicate ~f:extract_predicate | _, Statement.DeclareInterface interface -> extract_interface interface | _, Statement.DeclareModule { id = _; body = _, st_block; kind = _; comments = _ } ->