TS: add support for bigints

This commit is contained in:
Asger F
2019-01-14 17:34:27 +00:00
parent 1c6deb65cd
commit 3ed9575529
20 changed files with 119 additions and 6 deletions

View File

@@ -560,12 +560,13 @@ case @typeexpr.kind of
| 32 = @importvartypeaccess
| 33 = @optionaltypeexpr
| 34 = @resttypeexpr
| 35 = @bigintliteraltypeexpr
;
@typeref = @typeaccess | @typedecl;
@typeidentifier = @typedecl | @localtypeaccess | @typelabel | @localvartypeaccess | @localnamespaceaccess;
@typeexpr_parent = @expr | @stmt | @property | @typeexpr;
@literaltypeexpr = @stringliteraltypeexpr | @numberliteraltypeexpr | @booleanliteraltypeexpr;
@literaltypeexpr = @stringliteraltypeexpr | @numberliteraltypeexpr | @booleanliteraltypeexpr | @bigintliteraltypeexpr;
@typeaccess = @localtypeaccess | @qualifiedtypeaccess | @importtypeaccess;
@vartypeaccess = @localvartypeaccess | @qualifiedvartypeaccess | @thisvartypeaccess | @importvartypeaccess;
@namespaceaccess = @localnamespaceaccess | @qualifiednamespaceaccess | @importnamespaceaccess;
@@ -612,6 +613,8 @@ case @type.kind of
| 21 = @numberliteraltype
| 22 = @stringliteraltype
| 23 = @unknowntype
| 24 = @biginttype
| 25 = @bigintliteraltype
;
@booleanliteraltype = @truetype | @falsetype;
@@ -678,8 +681,8 @@ type_property(
varchar(900) name: string ref,
int propertyType: @type ref);
@literaltype = @stringliteraltype | @numberliteraltype | @booleanliteraltype;
@type_with_literal_value = @stringliteraltype | @numberliteraltype;
@literaltype = @stringliteraltype | @numberliteraltype | @booleanliteraltype | @bigintliteraltype;
@type_with_literal_value = @stringliteraltype | @numberliteraltype | @bigintliteraltype;
type_literal_value(
unique int typ: @type_with_literal_value ref,
varchar(900) value: string ref);