TS: Support assertion types

This commit is contained in:
Asger F
2019-10-30 14:51:00 +00:00
parent 4e7b987fa3
commit b81931e402
12 changed files with 113 additions and 15 deletions

View File

@@ -637,6 +637,8 @@ case @type.kind of
@unionorintersectiontype = @uniontype | @intersectiontype;
@typevariabletype = @canonicaltypevariabletype | @lexicaltypevariabletype;
hasAssertsKeyword(int node: @predicatetypeexpr ref);
@typed_ast_node = @expr | @typeexpr | @function;
ast_node_type(
unique int node: @typed_ast_node ref,