[typescript][semantic] add library modifier. Fixes #91090

This commit is contained in:
Martin Aeschlimann
2020-03-27 14:35:17 +01:00
parent e68ccf21bf
commit 40077f5ea9
6 changed files with 20 additions and 8 deletions

View File

@@ -151,6 +151,7 @@ tokenModifiers[TokenModifier.declaration] = 'declaration';
tokenModifiers[TokenModifier.readonly] = 'readonly';
tokenModifiers[TokenModifier.static] = 'static';
tokenModifiers[TokenModifier.local] = 'local';
tokenModifiers[TokenModifier.defaultLibrary] = 'defaultLibrary';
// make sure token types and modifiers are complete
if (tokenTypes.filter(t => !!t).length !== TokenType._) {