@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.
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-X7TMUZ4C.js";
13
+ } from "./chunk-ODWG5ZXF.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {
@@ -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 _bodyUsesYieldStatementCheckResults;
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
- checkStatementBlockInvokesAsyncMethods(node: tree.StatementBlock): boolean;
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
- checkMethodBodyUsesYieldStatement(node: tree.StatementBlock): boolean;
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.StatementBlock): boolean;
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 Declaration = tree.PackageMemberDeclaration | tree.TypeMemberDeclaration | tree.LocalVariableDeclaration | tree.EnumerationVariableDeclaration | tree.ErrorVariableDeclaration | tree.NestedMethodDeclaration | TypeDeclaration;
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 build(analyzer: Analyzer, node: tree.StatementBlock): IScope;
6
- static buildGenericScope(analyzer: Analyzer, node: tree.StatementBlock): IScope;
7
- static buildScopeForMethodBlockLiteral(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.MethodBlockLiteral): IScope;
8
- static buildScopeForPackageMethodDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.PackageMethodDeclaration): IScope;
9
- static buildScopeForTypeVariableGetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeVariableGetterDeclaration): IScope;
10
- static buildScopeForTypeVariableSetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeVariableSetterDeclaration): IScope;
11
- static buildScopeForPackageVariableGetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.PackageVariableGetterDeclaration): IScope;
12
- static buildScopeForPackageVariableSetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.PackageVariableSetterDeclaration): IScope;
13
- static buildScopeForTypeIndexedGetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeIndexedGetterDeclaration): IScope;
14
- static buildScopeForTypeIndexedSetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeIndexedSetterDeclaration): IScope;
15
- static buildScopeForTypeDereferencedVariableGetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeDereferencedVariableGetterDeclaration): IScope;
16
- static buildScopeForTypeDereferencedVariableSetterDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeDereferencedVariableSetterDeclaration): IScope;
17
- static buildScopeForNestedMethodDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.NestedMethodDeclaration): IScope;
18
- static buildScopeForMethodLiteral(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.MethodLiteral): IScope;
19
- static buildScopeForTypeConstructorDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeConstructorDeclaration): IScope;
20
- static buildScopeForTypeMethodDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.TypeMethodDeclaration): IScope;
21
- static buildScopeForOperatorDeclaration(analyzer: Analyzer, node: tree.StatementBlock, parent: tree.OperatorDeclaration): IScope;
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, PackageVariableEntity, ParameterVariableEntity } from '../entities/VariableEntity.js';
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.LocalOrPackageVariable | NarrowableReference.InstanceTypeVariable | NarrowableReference.StaticTypeVariable | NarrowableReference.Object;
28
+ export type NarrowableReference = NarrowableReference.LocalVariable | NarrowableReference.InstanceTypeVariable | NarrowableReference.StaticTypeVariable | NarrowableReference.Object;
29
29
  export declare namespace NarrowableReference {
30
- export class LocalOrPackageVariable implements INarrowableReference {
31
- readonly entity: LocalVariableEntity | ParameterVariableEntity | PackageVariableEntity;
32
- readonly kind = "local-or-package-variable";
33
- constructor(entity: LocalVariableEntity | ParameterVariableEntity | PackageVariableEntity);
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 buildBodyOfSubprogramWithResult;
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
- ExpressionStatement = 19,
917
- FinallyClause = 20,
918
- ForStatement = 21,
919
- PackageMethodDeclaration = 22,
920
- PackageTypeDeclaration = 23,
921
- PackageVariableDeclaration = 24,
922
- PackageVariableGetterDeclaration = 25,
923
- PackageVariableSetterDeclaration = 26,
924
- PackageVariantTypeDeclaration = 27,
925
- IfStatement = 28,
926
- IndexedAccessExpression = 29,
927
- IntegerLiteral = 30,
928
- IsExpression = 31,
929
- NestedMethodDeclaration = 32,
930
- NestedMethodDeclarationStatement = 33,
931
- LocalVariableDeclaration = 34,
932
- LocalVariableDeclarationStatement = 35,
933
- NumericLiteral = 36,
934
- CatchClause = 37,
935
- MethodLiteral = 38,
936
- PrefixUnaryExpression = 39,
937
- MeasureLiteral = 40,
938
- ReferenceExpression = 41,
939
- LoopStatement = 42,
940
- ReturnStatement = 43,
941
- Package = 44,
942
- TextLiteral = 45,
943
- TextTemplateLiteral = 46,
944
- TypeConstructorDeclaration = 47,
945
- TypeDestructorDeclaration = 48,
946
- TypeIndexedGetterDeclaration = 49,
947
- TypeIndexedSetterDeclaration = 50,
948
- TypeMethodDeclaration = 51,
949
- TypeVariableDeclaration = 52,
950
- TypeVariableGetterDeclaration = 53,
951
- TypeVariableSetterDeclaration = 54,
952
- SwitchStatement = 55,
953
- TernaryExpression = 56,
954
- ThisExpression = 57,
955
- ValueParameterDeclaration = 58,
956
- VariantDeclaration = 59,
957
- WhileStatement = 60,
958
- YieldStatement = 61,
959
- ArrayLiteral = 62,
960
- TypeAccessExpression = 63,
961
- VariableAccessExpression = 64,
962
- MethodAccessExpression = 65,
963
- ImplicitVariantAccessExpression = 66,
964
- VariantAccessExpression = 67,
965
- TypeVariableAccessExpression = 68,
966
- TypeMethodAccessExpression = 69,
967
- ConstructorCallExpression = 70,
968
- InlineJsExpression = 71,
969
- AssignmentExpression = 72,
970
- CommaExpression = 73,
971
- BaseConstructorCallExpression = 74,
972
- JsImportSpecifier = 75,
973
- JsIndexedAccessExpression = 76,
974
- EsModuleImportDirectiveStatement = 77,
975
- CjsModuleImportDirectiveStatement = 78,
976
- JsObjectLiteral = 79,
977
- NamedJsObjectLiteralProperty = 80,
978
- SpreadJsObjectLiteralProperty = 81,
979
- JsPropertyAccessExpression = 82,
980
- JsFunctionLiteral = 83,
981
- JsTypeOfExpression = 84,
982
- JsInstanceOfExpression = 85,
983
- JsIdentifierExpression = 86,
984
- DereferenceExpression = 87,
985
- BaseExpression = 88,
986
- OwnConstructorCallExpression = 89,
987
- TypeDereferencedVariableGetterDeclaration = 90,
988
- TypeDereferencedVariableSetterDeclaration = 91,
989
- JsNamespaceDestructuringStatement = 92,
990
- ComputedTypeVariableDeclaration = 93,
991
- TextWithEntityName = 94,
992
- Arguments = 95,
993
- Decorator = 96
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
- Error = 19,
22
- Finally = 20,
23
- And = 21,
24
- Or = 22,
25
- Xor = 23,
26
- While = 24,
27
- Loop = 25,
28
- RepeatWhile = 26,
29
- Yield = 27,
30
- When = 28,
31
- Creation = 29,
32
- Catch = 30,
33
- BreakLoop = 31,
34
- ContinueLoop = 32,
35
- For = 33,
36
- Const = 34,
37
- Hidden = 35,
38
- Abstract = 36,
39
- Redefinable = 37,
40
- Redefined = 38,
41
- Async = 39,
42
- Static = 40,
43
- As = 41,
44
- Not = 42,
45
- Switch = 43,
46
- Case = 44,
47
- Dispose = 45,
48
- Destruction = 46,
49
- InHierarchy = 47,
50
- InFile = 48,
51
- InPackage = 49,
52
- InType = 50,
53
- Yes = 51,
54
- No = 52,
55
- Reference = 53,
56
- Translations = 54,
57
- Base = 55,
58
- None = 56,
59
- Get = 57,
60
- Set = 58
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
  }