Skip to content

Commit a7b961d

Browse files
committed
Include new types
1 parent d94923a commit a7b961d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/typing/gc_js.ml

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ let rec gc cx state = function
6767
(** def types **)
6868

6969
| AbstractT (_, t) -> gc cx state t
70+
| AbstractsT (_, _) -> ()
7071
| AnnotT t -> gc cx state t
7172
| DefT (_, AnyFunT) -> ()
7273
| DefT (_, AnyObjT) -> ()
@@ -79,6 +80,7 @@ let rec gc cx state = function
7980
| BoundT typeparam -> gc_typeparam cx state typeparam
8081
| ChoiceKitT _ -> ()
8182
| DefT (_, ClassT t) -> gc cx state t
83+
| DefT (_, NonabstractClassT t) -> gc cx state t
8284
| CustomFunT _ -> ()
8385
| DefT (_, NumT _)
8486
| DefT (_, StrT _)
@@ -199,6 +201,7 @@ and gc_use cx state = function
199201
| AssertBinaryInRHST _ -> ()
200202
| AssertForInRHST _ -> ()
201203
| AssertImportIsValueT _ -> ()
204+
| AssertNonabstractT _ -> ()
202205
| AssertRestParamT _ -> ()
203206
| BecomeT (_, t) -> gc cx state t
204207
| BindT(_, funcalltype, _) -> gc_funcalltype cx state funcalltype
@@ -233,6 +236,7 @@ and gc_use cx state = function
233236
| ExportTypeT (_, _, _, t, t_out) ->
234237
gc cx state t;
235238
gc cx state t_out
239+
| GatherAbstractsT (_, i, _, t) -> gc_insttype cx state i; gc cx state t
236240
| GetElemT(_, i, t) -> gc cx state i; gc cx state t
237241
| GetKeysT (_, t) -> gc cx state t
238242
| GetPropT(_, _, t) -> gc cx state t

0 commit comments

Comments
 (0)