@artel/artc 0.6.25221 → 0.6.25222
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 +4 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +284 -238
- package/build/{chunk-XMV7LOUY.js → chunk-MBMOAUK7.js} +2 -2
- package/build/{chunk-X7TMUZ4C.js → chunk-ODWG5ZXF.js} +1606 -1261
- package/build/{chunk-5F65ZJE3.js → chunk-UZK7JCND.js} +1 -1
- package/build/types/analysis/Analyzer.d.ts +7 -4
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -6
- package/build/types/analysis/SemanticContext.d.ts +7 -0
- package/build/types/analysis/SemanticContextBuilder.d.ts +2 -0
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +19 -17
- package/build/types/analysis/TypeNarrower.d.ts +11 -6
- 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/tree/KeywordKind.d.ts +41 -40
- package/build/types/tree/NodeKind.d.ts +63 -61
- package/build/types/tree/green/Nodes.d.ts +84 -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/package.json +1 -1
@@ -92,7 +92,7 @@ export declare class Analyzer {
|
|
92
92
|
private readonly _extendedTypes;
|
93
93
|
private readonly _analyzedTranslationPackages;
|
94
94
|
private readonly _linkedMultiPlatformPackagesByPlatform;
|
95
|
-
private readonly
|
95
|
+
private readonly _functionBlockWithYieldStatementCheckResults;
|
96
96
|
private readonly _namedDeclarationsUsageCountResults;
|
97
97
|
private readonly _controlFlowGraphs;
|
98
98
|
get tsInterop(): TsInteropContext;
|
@@ -108,7 +108,7 @@ export declare class Analyzer {
|
|
108
108
|
} | undefined;
|
109
109
|
isTypeAssignableTo(source: types.Type, target: types.Type): boolean;
|
110
110
|
getTypeAssignabilityFlags(source: types.Type, target: types.Type): TypeAssignabilityFlags;
|
111
|
-
|
111
|
+
checkBlockInvokesAsyncMethods(node: tree.StatementBlock | tree.FunctionBlock): boolean;
|
112
112
|
getSyntacticAccessKind(node: tree.Expression): SyntacticAccessKind;
|
113
113
|
getTypeMemberEntityContainer(node: tree.TypeMemberDeclaration): e.TypeMemberEntityContainer;
|
114
114
|
getTargetTypeOfExpression(node: tree.Expression, hint?: TargetTypeHint): types.Type | undefined;
|
@@ -184,7 +184,7 @@ export declare class Analyzer {
|
|
184
184
|
checkExpressionDenotesPackageNameSegment(expression: tree.Expression): {
|
185
185
|
packageTreeNode: PackageNameTreeNode;
|
186
186
|
} | undefined;
|
187
|
-
|
187
|
+
checkFunctionBlockWithYieldStatement(node: tree.FunctionBlock): boolean;
|
188
188
|
enumerateAspects(type: types.Type): Iterable<types.StructuredType>;
|
189
189
|
checkTypeIsBasedOnAspect(type: types.Type, aspectEntity: e.StructuredTypeEntity): boolean;
|
190
190
|
resolvePrefixUnaryExpressionUserDefinableOperator(node: tree.PrefixUnaryExpression): WithDiagnostics<FoundAnonymousDeclaration<types.Operator>>;
|
@@ -250,6 +250,7 @@ export declare class Analyzer {
|
|
250
250
|
createPackageMemberHiding(node: tree.PackageMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
251
251
|
createTypeMemberHiding(node: tree.TypeMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
252
252
|
getDeclarationsUsageCount(sourceFile: tree.SourceFile, cancellationToken: CancellationToken | undefined): Promise<DeclarationsUsageCountResult>;
|
253
|
+
isFunctionResultNone(node: tree.FunctionBlock): boolean;
|
253
254
|
isExpressionImplicitlyReturnedFromSubprogram(node: tree.ExpressionStatement): boolean;
|
254
255
|
createBackingPackageVariables(declaredMembers: readonly (e.NamedPackageMemberEntity | e.PackageAliasEntity)[], pkg: e.PackageEntity): e.PackageVariableEntity[];
|
255
256
|
createBackingTypeVariables(declaredMembers: readonly NamedTypeMemberEntity[], type: e.TypeEntity): e.TypeVariableEntity[];
|
@@ -461,6 +462,7 @@ declare class Scope {
|
|
461
462
|
private readonly _nestedMethodDeclarationTypeParametersScopes;
|
462
463
|
private readonly _nestedMethodDeclarationValueParametersScopes;
|
463
464
|
private readonly _methodLiteralScopes;
|
465
|
+
private readonly _functionBlockScopes;
|
464
466
|
private readonly _statementBlockScopes;
|
465
467
|
private readonly _forEachStatementScopes;
|
466
468
|
private readonly _catchClauseScopes;
|
@@ -487,6 +489,7 @@ declare class Scope {
|
|
487
489
|
ofNestedMethodDeclarationTypeParameters(node: tree.NestedMethodDeclaration): scope.IScope;
|
488
490
|
ofNestedMethodDeclarationValueParameters(node: tree.NestedMethodDeclaration): scope.IScope;
|
489
491
|
ofMethodLiteral(node: tree.MethodLiteral): scope.IScope;
|
492
|
+
ofFunctionBlock(node: tree.FunctionBlock): scope.IScope;
|
490
493
|
ofStatementBlock(node: tree.StatementBlock): scope.IScope;
|
491
494
|
ofForStatement(node: tree.ForStatement): scope.IScope;
|
492
495
|
ofCatchClause(node: tree.CatchClause): scope.IScope;
|
@@ -604,7 +607,7 @@ declare class OwningPlainObjectModificationCheck {
|
|
604
607
|
private _analyzer;
|
605
608
|
private readonly _owningPlainObjectModificationCheckResult;
|
606
609
|
constructor(_analyzer: Analyzer);
|
607
|
-
ofDeclarationBody(node: tree.
|
610
|
+
ofDeclarationBody(node: tree.FunctionBlock): boolean;
|
608
611
|
private checkMethodBodyModifiesPlainObject;
|
609
612
|
private checkReceiverModifiesPlainObjectRecursively;
|
610
613
|
private nodeBelongsToPlainObjectDeclaration;
|
@@ -29,9 +29,4 @@ export type PackageVariableAccessorDeclaration = tree.PackageVariableGetterDecla
|
|
29
29
|
export type TypeVariableAccessorDeclaration = tree.TypeVariableGetterDeclaration | tree.TypeVariableSetterDeclaration;
|
30
30
|
export type TypeIndexedAccessorDeclaration = tree.TypeIndexedGetterDeclaration | tree.TypeIndexedSetterDeclaration;
|
31
31
|
export type TypeDereferencedVariableAccessorDeclaration = tree.TypeDereferencedVariableGetterDeclaration | tree.TypeDereferencedVariableSetterDeclaration;
|
32
|
-
type
|
33
|
-
type SubprogramDeclarationInternal<T extends Declaration = Declaration> = T extends {
|
34
|
-
block: tree.StatementBlock | undefined;
|
35
|
-
} ? T : never;
|
36
|
-
export type SubprogramDeclaration = SubprogramDeclarationInternal | tree.MethodLiteral | tree.MethodBlockLiteral;
|
37
|
-
export {};
|
32
|
+
export type SubprogramDeclaration = tree.FunctionBlockParent | tree.MethodLiteral | tree.MethodBlockLiteral;
|
@@ -320,6 +320,13 @@ export declare class StatementBlockSemanticContext extends SemanticContextWithPa
|
|
320
320
|
isInTryStatement(): TryStatementClausesInfo | undefined;
|
321
321
|
isInFinallyClause(): boolean;
|
322
322
|
}
|
323
|
+
export declare class FunctionBlockSemanticContext extends SemanticContextWithParent {
|
324
|
+
private readonly _analyzer;
|
325
|
+
private readonly _node;
|
326
|
+
private readonly _scopeChain;
|
327
|
+
constructor(analyzer: Analyzer, node: tree.FunctionBlock, parentContext: SemanticContext);
|
328
|
+
getScopeChain(): ScopeChain;
|
329
|
+
}
|
323
330
|
export type RegularOrBlockMethodLiteral = tree.MethodLiteral | tree.MethodBlockLiteral;
|
324
331
|
export declare class MethodLiteralSemanticContext extends SemanticContextWithParent {
|
325
332
|
private readonly _analyzer;
|
@@ -34,6 +34,7 @@ export declare class SemanticContextBuilder {
|
|
34
34
|
ofRegularOrBlockMethodLiteral(node: RegularOrBlockMethodLiteral): SemanticContext;
|
35
35
|
ofForStatement(node: tree.ForStatement): SemanticContext;
|
36
36
|
ofStatementBlock(node: tree.StatementBlock): SemanticContext;
|
37
|
+
ofFunctionBlock(node: tree.FunctionBlock): SemanticContext;
|
37
38
|
ofTypeConstructorDeclaration(node: tree.TypeConstructorDeclaration): SemanticContext;
|
38
39
|
ofTypeDestructorDeclaration(node: tree.TypeDestructorDeclaration): SemanticContext;
|
39
40
|
ofTypeIndexedGetterDeclaration(node: tree.TypeIndexedGetterDeclaration, hint: 'body' | 'parameters'): SemanticContext;
|
@@ -53,4 +54,5 @@ export declare class SemanticContextBuilder {
|
|
53
54
|
private ofChildOfTypeExtensionDeclaration;
|
54
55
|
private isOffsetBetweenNodes;
|
55
56
|
private isOffsetInsideStatementBlock;
|
57
|
+
private isOffsetInsideFunctionBlock;
|
56
58
|
}
|
@@ -2,22 +2,24 @@ import * as tree from '../tree/index.js';
|
|
2
2
|
import { Analyzer } from './Analyzer.js';
|
3
3
|
import { IScope } from './Scope.js';
|
4
4
|
export declare class StatementBlockScopeBuilder {
|
5
|
-
static
|
6
|
-
static
|
7
|
-
static
|
8
|
-
static
|
9
|
-
static
|
10
|
-
static
|
11
|
-
static
|
12
|
-
static
|
13
|
-
static
|
14
|
-
static
|
15
|
-
static
|
16
|
-
static
|
17
|
-
static
|
18
|
-
static
|
19
|
-
static
|
20
|
-
static
|
21
|
-
static
|
5
|
+
static buildFunctionBlockScope(analyzer: Analyzer, node: tree.FunctionBlock): IScope;
|
6
|
+
static buildStatementBlockScope(analyzer: Analyzer, node: tree.StatementBlock): IScope;
|
7
|
+
static buildGenericScopeForFunctionBlock(analyzer: Analyzer, node: tree.FunctionBlock): IScope;
|
8
|
+
static buildGenericScopeForStatementBlock(analyzer: Analyzer, node: tree.StatementBlock): IScope;
|
9
|
+
static buildScopeForMethodBlockLiteral(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.MethodBlockLiteral): IScope;
|
10
|
+
static buildScopeForPackageMethodDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.PackageMethodDeclaration): IScope;
|
11
|
+
static buildScopeForTypeVariableGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeVariableGetterDeclaration): IScope;
|
12
|
+
static buildScopeForTypeVariableSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeVariableSetterDeclaration): IScope;
|
13
|
+
static buildScopeForPackageVariableGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.PackageVariableGetterDeclaration): IScope;
|
14
|
+
static buildScopeForPackageVariableSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.PackageVariableSetterDeclaration): IScope;
|
15
|
+
static buildScopeForTypeIndexedGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeIndexedGetterDeclaration): IScope;
|
16
|
+
static buildScopeForTypeIndexedSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeIndexedSetterDeclaration): IScope;
|
17
|
+
static buildScopeForTypeDereferencedVariableGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeDereferencedVariableGetterDeclaration): IScope;
|
18
|
+
static buildScopeForTypeDereferencedVariableSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeDereferencedVariableSetterDeclaration): IScope;
|
19
|
+
static buildScopeForNestedMethodDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.NestedMethodDeclaration): IScope;
|
20
|
+
static buildScopeForMethodLiteral(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.MethodLiteral): IScope;
|
21
|
+
static buildScopeForTypeConstructorDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeConstructorDeclaration): IScope;
|
22
|
+
static buildScopeForTypeMethodDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.TypeMethodDeclaration): IScope;
|
23
|
+
static buildScopeForOperatorDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.OperatorDeclaration): IScope;
|
22
24
|
private static getLocalNamedDeclarations;
|
23
25
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LocalVariableEntity,
|
1
|
+
import { LocalVariableEntity, ParameterVariableEntity } from '../entities/VariableEntity.js';
|
2
2
|
import * as types from '../types/index.js';
|
3
3
|
import { Analyzer } from './Analyzer.js';
|
4
4
|
import { ControlFlowNode, NarrowableReferenceExpression } from './ControlFlowGraphBuilder.js';
|
@@ -25,13 +25,14 @@ export declare class TypeNarrower {
|
|
25
25
|
private getReferenceAtNode;
|
26
26
|
private getReferenceAtLocalVariableDeclaration;
|
27
27
|
}
|
28
|
-
export type NarrowableReference = NarrowableReference.
|
28
|
+
export type NarrowableReference = NarrowableReference.LocalVariable | NarrowableReference.InstanceTypeVariable | NarrowableReference.StaticTypeVariable | NarrowableReference.Object;
|
29
29
|
export declare namespace NarrowableReference {
|
30
|
-
export class
|
31
|
-
readonly entity: LocalVariableEntity | ParameterVariableEntity
|
32
|
-
readonly kind = "local-
|
33
|
-
constructor(entity: LocalVariableEntity | ParameterVariableEntity
|
30
|
+
export class LocalVariable implements INarrowableReference {
|
31
|
+
readonly entity: LocalVariableEntity | ParameterVariableEntity;
|
32
|
+
readonly kind = "local-variable";
|
33
|
+
constructor(entity: LocalVariableEntity | ParameterVariableEntity);
|
34
34
|
equals(other: NarrowableReference): boolean;
|
35
|
+
contains(_other: NarrowableReference): boolean;
|
35
36
|
}
|
36
37
|
export class InstanceTypeVariable implements INarrowableReference {
|
37
38
|
readonly variable: types.Variable;
|
@@ -39,19 +40,23 @@ export declare namespace NarrowableReference {
|
|
39
40
|
readonly kind = "instance-type-variable";
|
40
41
|
constructor(variable: types.Variable, receiver: NarrowableReference);
|
41
42
|
equals(other: NarrowableReference): boolean;
|
43
|
+
contains(other: NarrowableReference): boolean;
|
42
44
|
}
|
43
45
|
export class StaticTypeVariable implements INarrowableReference {
|
44
46
|
readonly variable: types.Variable;
|
45
47
|
readonly kind = "static-type-variable";
|
46
48
|
constructor(variable: types.Variable);
|
47
49
|
equals(other: NarrowableReference): boolean;
|
50
|
+
contains(_other: NarrowableReference): boolean;
|
48
51
|
}
|
49
52
|
export class Object implements INarrowableReference {
|
50
53
|
readonly kind = "object";
|
51
54
|
equals(other: NarrowableReference): boolean;
|
55
|
+
contains(_other: NarrowableReference): boolean;
|
52
56
|
}
|
53
57
|
interface INarrowableReference {
|
54
58
|
equals(other: NarrowableReference): boolean;
|
59
|
+
contains(other: NarrowableReference): boolean;
|
55
60
|
}
|
56
61
|
export {};
|
57
62
|
}
|
@@ -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;
|
@@ -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
|
}
|