@artel/artc 0.6.25221 → 0.6.25223
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Cli.js +3 -3
- package/build/api/Api.js +10 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +281 -261
- package/build/{chunk-XMV7LOUY.js → chunk-AX3LQ2CF.js} +2 -2
- package/build/{chunk-X7TMUZ4C.js → chunk-DZNNWICP.js} +2738 -1794
- package/build/{chunk-5F65ZJE3.js → chunk-LG4Z4SWO.js} +1 -1
- package/build/types/analysis/Analyzer.d.ts +13 -10
- package/build/types/analysis/ControlFlowGraphBuilder.d.ts +12 -4
- package/build/types/analysis/LocalizationContext.d.ts +2 -2
- package/build/types/analysis/Lookup.d.ts +4 -4
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -6
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +1 -1
- package/build/types/analysis/Scope.d.ts +21 -44
- package/build/types/analysis/SemanticContext.d.ts +21 -1
- package/build/types/analysis/SemanticContextBuilder.d.ts +3 -0
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +20 -17
- package/build/types/analysis/TypeMemberLookup.d.ts +39 -11
- package/build/types/analysis/TypeNarrower.d.ts +48 -8
- package/build/types/emitter/IrBuilder.d.ts +3 -1
- package/build/types/emitter/IrToJs.d.ts +1 -0
- package/build/types/emitter/Transformer.d.ts +2 -0
- package/build/types/emitter/ir/Nodes.d.ts +86 -78
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/index.d.ts +3 -0
- package/build/types/parser/Scanner.d.ts +1 -2
- package/build/types/tree/KeywordKind.d.ts +41 -40
- package/build/types/tree/NodeKind.d.ts +63 -61
- package/build/types/tree/green/Nodes.d.ts +83 -56
- package/build/types/tree/green/SyntaxFactory.d.ts +12 -10
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -0
- package/build/types/tree/red/Nodes.d.ts +69 -41
- package/build/types/types/TypeMembers.d.ts +5 -0
- package/package.json +1 -1
@@ -18,7 +18,8 @@ export declare class IrBuilder {
|
|
18
18
|
build(): ir.PackageMemberDeclaration[];
|
19
19
|
private buildPackageMemberDeclarationList;
|
20
20
|
private buildPackageConstructorDeclaration;
|
21
|
-
private
|
21
|
+
private buildFunctionBlockOfFunction;
|
22
|
+
private buildFunctionBlockOfFunctionWithoutResult;
|
22
23
|
private buildStatementBlock;
|
23
24
|
private buildStatement;
|
24
25
|
private buildAssignmentStatement;
|
@@ -55,6 +56,7 @@ export declare class IrBuilder {
|
|
55
56
|
private buildTryStatement;
|
56
57
|
private buildEmptyStatement;
|
57
58
|
private buildErrorStatement;
|
59
|
+
private buildImportantStatement;
|
58
60
|
private buildExpressionStatement;
|
59
61
|
private buildForStatement;
|
60
62
|
private buildIfStatement;
|
@@ -95,6 +95,7 @@ export declare class IrToJs {
|
|
95
95
|
private convertContinueLoopStatement;
|
96
96
|
private convertEmptyStatement;
|
97
97
|
private convertErrorStatement;
|
98
|
+
private convertImportantStatement;
|
98
99
|
private convertExpressionStatement;
|
99
100
|
private convertForStatement;
|
100
101
|
private convertIfStatement;
|
@@ -23,6 +23,7 @@ export declare class Transformer {
|
|
23
23
|
transformTryStatementChildren(statement: ir.TryStatement): void;
|
24
24
|
transformEmptyStatementChildren(_statement: ir.EmptyStatement): void;
|
25
25
|
transformErrorStatementChildren(statement: ir.ErrorStatement): void;
|
26
|
+
transformImportantStatementChildren(statement: ir.ImportantStatement): void;
|
26
27
|
transformExpressionStatementChildren(statement: ir.ExpressionStatement): void;
|
27
28
|
transformForStatementChildren(statement: ir.ForStatement): void;
|
28
29
|
transformIfStatementChildren(statement: ir.IfStatement): void;
|
@@ -168,6 +169,7 @@ export interface TransformationConfig {
|
|
168
169
|
transformTryStatement?(statement: ir.TryStatement): StatementTransformationResult;
|
169
170
|
transformEmptyStatement?(statement: ir.EmptyStatement): StatementTransformationResult;
|
170
171
|
transformErrorStatement?(statement: ir.ErrorStatement): StatementTransformationResult;
|
172
|
+
transformImportantStatement?(statement: ir.ImportantStatement): StatementTransformationResult;
|
171
173
|
transformExpressionStatement?(statement: ir.ExpressionStatement): StatementTransformationResult;
|
172
174
|
transformForStatement?(statement: ir.ForStatement): StatementTransformationResult;
|
173
175
|
transformIfStatement?(statement: ir.IfStatement): StatementTransformationResult;
|
@@ -211,6 +211,13 @@ export declare class ErrorStatement {
|
|
211
211
|
constructor(expression: Expression | undefined, sourceLocation: SourceLocation | undefined);
|
212
212
|
clone(): ErrorStatement;
|
213
213
|
}
|
214
|
+
export declare class ImportantStatement {
|
215
|
+
expression: Expression;
|
216
|
+
sourceLocation: SourceLocation | undefined;
|
217
|
+
readonly kind = NodeKind.ImportantStatement;
|
218
|
+
constructor(expression: Expression, sourceLocation: SourceLocation | undefined);
|
219
|
+
clone(): ImportantStatement;
|
220
|
+
}
|
214
221
|
export declare class ExpressionStatement {
|
215
222
|
expression: Expression;
|
216
223
|
sourceLocation: SourceLocation | undefined;
|
@@ -913,84 +920,85 @@ export declare const enum NodeKind {
|
|
913
920
|
NoneLiteral = 16,
|
914
921
|
EmptyStatement = 17,
|
915
922
|
ErrorStatement = 18,
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
948
|
-
|
949
|
-
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
923
|
+
ImportantStatement = 19,
|
924
|
+
ExpressionStatement = 20,
|
925
|
+
FinallyClause = 21,
|
926
|
+
ForStatement = 22,
|
927
|
+
PackageMethodDeclaration = 23,
|
928
|
+
PackageTypeDeclaration = 24,
|
929
|
+
PackageVariableDeclaration = 25,
|
930
|
+
PackageVariableGetterDeclaration = 26,
|
931
|
+
PackageVariableSetterDeclaration = 27,
|
932
|
+
PackageVariantTypeDeclaration = 28,
|
933
|
+
IfStatement = 29,
|
934
|
+
IndexedAccessExpression = 30,
|
935
|
+
IntegerLiteral = 31,
|
936
|
+
IsExpression = 32,
|
937
|
+
NestedMethodDeclaration = 33,
|
938
|
+
NestedMethodDeclarationStatement = 34,
|
939
|
+
LocalVariableDeclaration = 35,
|
940
|
+
LocalVariableDeclarationStatement = 36,
|
941
|
+
NumericLiteral = 37,
|
942
|
+
CatchClause = 38,
|
943
|
+
MethodLiteral = 39,
|
944
|
+
PrefixUnaryExpression = 40,
|
945
|
+
MeasureLiteral = 41,
|
946
|
+
ReferenceExpression = 42,
|
947
|
+
LoopStatement = 43,
|
948
|
+
ReturnStatement = 44,
|
949
|
+
Package = 45,
|
950
|
+
TextLiteral = 46,
|
951
|
+
TextTemplateLiteral = 47,
|
952
|
+
TypeConstructorDeclaration = 48,
|
953
|
+
TypeDestructorDeclaration = 49,
|
954
|
+
TypeIndexedGetterDeclaration = 50,
|
955
|
+
TypeIndexedSetterDeclaration = 51,
|
956
|
+
TypeMethodDeclaration = 52,
|
957
|
+
TypeVariableDeclaration = 53,
|
958
|
+
TypeVariableGetterDeclaration = 54,
|
959
|
+
TypeVariableSetterDeclaration = 55,
|
960
|
+
SwitchStatement = 56,
|
961
|
+
TernaryExpression = 57,
|
962
|
+
ThisExpression = 58,
|
963
|
+
ValueParameterDeclaration = 59,
|
964
|
+
VariantDeclaration = 60,
|
965
|
+
WhileStatement = 61,
|
966
|
+
YieldStatement = 62,
|
967
|
+
ArrayLiteral = 63,
|
968
|
+
TypeAccessExpression = 64,
|
969
|
+
VariableAccessExpression = 65,
|
970
|
+
MethodAccessExpression = 66,
|
971
|
+
ImplicitVariantAccessExpression = 67,
|
972
|
+
VariantAccessExpression = 68,
|
973
|
+
TypeVariableAccessExpression = 69,
|
974
|
+
TypeMethodAccessExpression = 70,
|
975
|
+
ConstructorCallExpression = 71,
|
976
|
+
InlineJsExpression = 72,
|
977
|
+
AssignmentExpression = 73,
|
978
|
+
CommaExpression = 74,
|
979
|
+
BaseConstructorCallExpression = 75,
|
980
|
+
JsImportSpecifier = 76,
|
981
|
+
JsIndexedAccessExpression = 77,
|
982
|
+
EsModuleImportDirectiveStatement = 78,
|
983
|
+
CjsModuleImportDirectiveStatement = 79,
|
984
|
+
JsObjectLiteral = 80,
|
985
|
+
NamedJsObjectLiteralProperty = 81,
|
986
|
+
SpreadJsObjectLiteralProperty = 82,
|
987
|
+
JsPropertyAccessExpression = 83,
|
988
|
+
JsFunctionLiteral = 84,
|
989
|
+
JsTypeOfExpression = 85,
|
990
|
+
JsInstanceOfExpression = 86,
|
991
|
+
JsIdentifierExpression = 87,
|
992
|
+
DereferenceExpression = 88,
|
993
|
+
BaseExpression = 89,
|
994
|
+
OwnConstructorCallExpression = 90,
|
995
|
+
TypeDereferencedVariableGetterDeclaration = 91,
|
996
|
+
TypeDereferencedVariableSetterDeclaration = 92,
|
997
|
+
JsNamespaceDestructuringStatement = 93,
|
998
|
+
ComputedTypeVariableDeclaration = 94,
|
999
|
+
TextWithEntityName = 95,
|
1000
|
+
Arguments = 96,
|
1001
|
+
Decorator = 97
|
994
1002
|
}
|
995
1003
|
export declare const enum AssignmentOperatorKind {
|
996
1004
|
Equals = 0,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as ir from './Nodes.js';
|
2
|
-
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NoneLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedMethodDeclaration | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.NamedJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator;
|
2
|
+
export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NoneLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedMethodDeclaration | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.NamedJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator;
|
3
3
|
export type Declaration = ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedMethodDeclaration | ir.LocalVariableDeclaration | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeMethodDeclaration | ir.TypeVariableDeclaration | ir.TypeVariableGetterDeclaration | ir.TypeVariableSetterDeclaration | ir.ValueParameterDeclaration | ir.VariantDeclaration | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration;
|
4
|
-
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
|
4
|
+
export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedMethodDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
|
5
5
|
export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NoneLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.TypeMethodAccessExpression | ir.TypeVariableAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.MethodAccessExpression | ir.MethodLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
|
6
6
|
export type TypeMemberDeclaration = ir.TypeVariableDeclaration | ir.ComputedTypeVariableDeclaration | ir.TypeMethodDeclaration | ir.TypeConstructorDeclaration | ir.TypeDestructorDeclaration | ir.TypeIndexedGetterDeclaration | ir.TypeIndexedSetterDeclaration | ir.TypeDereferencedVariableGetterDeclaration | ir.TypeDereferencedVariableSetterDeclaration;
|
7
7
|
export type PackageMemberDeclaration = ir.PackageMethodDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration;
|
@@ -65,6 +65,9 @@ export declare function isPackageTypeEntity(entity: TypeEntity): entity is Packa
|
|
65
65
|
export type NamedTypeEntity = PackageMethodTypeEntity | PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | TypeParameterEntity;
|
66
66
|
export type TypeEntityWithMembers = MethodTypeEntity | StructuredTypeEntity | VariantTypeEntity | AliasTypeEntity;
|
67
67
|
export declare function isTypeEntityWithMembers(entity: TypeEntity): entity is TypeEntityWithMembers;
|
68
|
+
export type TypeOrExtensionEntity = TypeEntity | TypeExtensionEntity;
|
69
|
+
export type TypeWithMembersOrExtensionEntity = TypeEntityWithMembers | TypeExtensionEntity;
|
70
|
+
export declare function isTypeWithMembersOrExtensionEntity(entity: Entity): entity is TypeWithMembersOrExtensionEntity;
|
68
71
|
export declare function isTypeEntity(entity: Entity): entity is TypeEntity;
|
69
72
|
export declare function isNamedTypeEntity(entity: TypeEntity): entity is NamedTypeEntity;
|
70
73
|
export type PackageMemberEntity = PackageVariableEntity | PackageMethodEntity | PackageTypeEntity | TypeExtensionEntity;
|
@@ -23,9 +23,8 @@ export declare class Scanner {
|
|
23
23
|
constructor(text: string, options?: ScannerOptions);
|
24
24
|
getToken(): Token;
|
25
25
|
lookAhead(callback: () => boolean): boolean;
|
26
|
-
tryScan(callback: () =>
|
26
|
+
tryScan<T>(callback: () => T): T | undefined;
|
27
27
|
nextToken(): Token;
|
28
|
-
private tryScanOrLookAhead;
|
29
28
|
private isCloseBraceEndingTextTemplate;
|
30
29
|
private scanCharOrTextOrTextTemplateElement;
|
31
30
|
private isSingleCharOrEscapedChar;
|
@@ -18,44 +18,45 @@ export declare enum KeywordKind {
|
|
18
18
|
Type = 16,
|
19
19
|
Basic = 17,
|
20
20
|
Import = 18,
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
21
|
+
Important = 19,
|
22
|
+
Error = 20,
|
23
|
+
Finally = 21,
|
24
|
+
And = 22,
|
25
|
+
Or = 23,
|
26
|
+
Xor = 24,
|
27
|
+
While = 25,
|
28
|
+
Loop = 26,
|
29
|
+
RepeatWhile = 27,
|
30
|
+
Yield = 28,
|
31
|
+
When = 29,
|
32
|
+
Creation = 30,
|
33
|
+
Catch = 31,
|
34
|
+
BreakLoop = 32,
|
35
|
+
ContinueLoop = 33,
|
36
|
+
For = 34,
|
37
|
+
Const = 35,
|
38
|
+
Hidden = 36,
|
39
|
+
Abstract = 37,
|
40
|
+
Redefinable = 38,
|
41
|
+
Redefined = 39,
|
42
|
+
Async = 40,
|
43
|
+
Static = 41,
|
44
|
+
As = 42,
|
45
|
+
Not = 43,
|
46
|
+
Switch = 44,
|
47
|
+
Case = 45,
|
48
|
+
Dispose = 46,
|
49
|
+
Destruction = 47,
|
50
|
+
InHierarchy = 48,
|
51
|
+
InFile = 49,
|
52
|
+
InPackage = 50,
|
53
|
+
InType = 51,
|
54
|
+
Yes = 52,
|
55
|
+
No = 53,
|
56
|
+
Reference = 54,
|
57
|
+
Translations = 55,
|
58
|
+
Base = 56,
|
59
|
+
None = 57,
|
60
|
+
Get = 58,
|
61
|
+
Set = 59
|
61
62
|
}
|
@@ -93,65 +93,67 @@ export declare enum NodeKind {
|
|
93
93
|
AssignmentStatement = 91,
|
94
94
|
StatementList = 92,
|
95
95
|
StatementBlock = 93,
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
96
|
+
FunctionBlock = 94,
|
97
|
+
BreakLoopStatement = 95,
|
98
|
+
ContinueLoopStatement = 96,
|
99
|
+
DisposeStatement = 97,
|
100
|
+
RunStatement = 98,
|
101
|
+
TryStatement = 99,
|
102
|
+
CatchClause = 100,
|
103
|
+
ErrorVariableDeclaration = 101,
|
104
|
+
FinallyClause = 102,
|
105
|
+
EmptyStatement = 103,
|
106
|
+
ErrorStatement = 104,
|
107
|
+
ImportantStatement = 105,
|
108
|
+
ExpressionStatement = 106,
|
109
|
+
EnumerationVariableList = 107,
|
110
|
+
ForStatement = 108,
|
111
|
+
IfStatement = 109,
|
112
|
+
ElseIfClauseList = 110,
|
113
|
+
ElseIfClause = 111,
|
114
|
+
ElseClause = 112,
|
115
|
+
InvalidStatement = 113,
|
116
|
+
NestedMethodDeclarationStatement = 114,
|
117
|
+
LocalVariableDeclarationStatement = 115,
|
118
|
+
LoopStatement = 116,
|
119
|
+
ReturnStatement = 117,
|
120
|
+
CaseClauseList = 118,
|
121
|
+
SwitchStatement = 119,
|
122
|
+
MatchExpressionList = 120,
|
123
|
+
CaseClause = 121,
|
124
|
+
WhileStatement = 122,
|
125
|
+
YieldStatement = 123,
|
126
|
+
TranslationParameterList = 124,
|
127
|
+
TranslationParameterClause = 125,
|
128
|
+
ConstructorTranslation = 126,
|
129
|
+
IndexerTranslationParameterClause = 127,
|
130
|
+
IndexerTranslation = 128,
|
131
|
+
TranslationTypeParameterList = 129,
|
132
|
+
TranslationTypeParameterClause = 130,
|
133
|
+
PackageMethodTranslation = 131,
|
134
|
+
TypeMethodTranslation = 132,
|
135
|
+
MethodTypeTranslation = 133,
|
136
|
+
PackageImportTranslation = 134,
|
137
|
+
QualifiedName = 135,
|
138
|
+
PackageVariableTranslation = 136,
|
139
|
+
TypeVariableOrVariantTranslation = 137,
|
140
|
+
TypeMemberTranslationList = 138,
|
141
|
+
TypeTranslation = 139,
|
142
|
+
TextLiteralTranslation = 140,
|
143
|
+
TextTemplateLiteralTranslation = 141,
|
144
|
+
VariantDeclaration = 142,
|
145
|
+
TypeParameterDeclaration = 143,
|
146
|
+
ParameterDeclaration = 144,
|
147
|
+
Argument = 145,
|
148
|
+
TagList = 146,
|
149
|
+
Tag = 147,
|
150
|
+
ModifierList = 148,
|
151
|
+
Modifier = 149,
|
152
|
+
ParameterClause = 150,
|
153
|
+
ParameterList = 151,
|
154
|
+
TypeArgumentClause = 152,
|
155
|
+
TypeArgumentList = 153,
|
156
|
+
TypeParameterClause = 154,
|
157
|
+
TypeParameterList = 155,
|
158
|
+
TypeAnnotation = 156
|
157
159
|
}
|