Skip to content

Commit

Permalink
Fully recheck JS AST for expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
SGrondin committed Jul 30, 2022
1 parent 915cb76 commit 9288811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parsing/js_ast.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = _ } ->
Expand Down

0 comments on commit 9288811

Please sign in to comment.