@artel/artc 0.6.25268 → 0.6.25269
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 +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +1 -1
- package/build/{chunk-ZWWFRARE.js → chunk-A24SR6QN.js} +2 -2
- package/build/{chunk-SXWZFJ3Z.js → chunk-A5H2QLXZ.js} +978 -1072
- package/build/{chunk-65DE73QR.js → chunk-REZSITUH.js} +1 -1
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/ErrorBoundary.d.ts +3 -3
- package/build/types/emitter/IrFactory.d.ts +38 -25
- package/build/types/emitter/ir/Nodes.d.ts +67 -50
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { Analyzer } from '../analysis/Analyzer.js';
|
|
|
2
2
|
import * as analyzerEntities from '../entities/index.js';
|
|
3
3
|
import { Type, TypeMemberEntity, TypeOrExtensionEntity } from './Entities.js';
|
|
4
4
|
import { EntityMap } from './EntityMap.js';
|
|
5
|
-
import
|
|
5
|
+
import * as ir from './ir/index.js';
|
|
6
6
|
export declare class EmitterContext {
|
|
7
7
|
readonly analyzer: Analyzer;
|
|
8
8
|
readonly entityMap: EntityMap;
|
|
@@ -29,7 +29,7 @@ export declare class EmitterContext {
|
|
|
29
29
|
declare class TypeUtils {
|
|
30
30
|
private readonly ectx;
|
|
31
31
|
constructor(ectx: EmitterContext);
|
|
32
|
-
ofExpression(expression: Expression): Type;
|
|
32
|
+
ofExpression(expression: ir.Expression): Type;
|
|
33
33
|
private getTypeOfComputedAccess;
|
|
34
34
|
}
|
|
35
35
|
declare class StandardTypes {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DebugStack } from './DebugStack.js';
|
|
2
|
-
import
|
|
2
|
+
import * as ir from './ir/index.js';
|
|
3
3
|
export declare function errorBoundary<T>(fn: () => T): T | undefined;
|
|
4
4
|
export declare class EmitterError extends Error {
|
|
5
5
|
message: string;
|
|
6
|
-
node?: Node | undefined;
|
|
6
|
+
node?: ir.Node | undefined;
|
|
7
7
|
debugStack?: DebugStack | undefined;
|
|
8
8
|
originalError?: Error | undefined;
|
|
9
|
-
constructor(message: string, node?: Node | undefined, debugStack?: DebugStack | undefined, originalError?: Error | undefined);
|
|
9
|
+
constructor(message: string, node?: ir.Node | undefined, debugStack?: DebugStack | undefined, originalError?: Error | undefined);
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AccessKind } from '../common/index.js';
|
|
1
|
+
import { AccessKind, PackageLocale } from '../common/index.js';
|
|
2
2
|
import { EmitterContext } from './EmitterContext.js';
|
|
3
|
-
import { FunctionEntity, NamedEntity, PackageEntity, Type, TypeOrExtensionEntity, VariableEntity } from './Entities.js';
|
|
3
|
+
import { ComputedNameInfo, FunctionEntity, FunctionEntityKind, NamedEntity, PackageEntity, Type, TypeOrExtensionEntity, VariableEntity } from './Entities.js';
|
|
4
4
|
import * as ir from './ir/index.js';
|
|
5
5
|
export declare function pkg(entity: PackageEntity, leadingStatements: readonly ir.Statement[], declarations: readonly ir.PackageMemberDeclaration[], translations: readonly ir.TextTranslationDeclaration[], trailingStatements: readonly ir.Statement[], defaultExportExpression: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.Package;
|
|
6
6
|
export declare function packageFunctionDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isGenerator: boolean, sourceLocation?: ir.SourceLocation): ir.PackageFunctionDeclaration;
|
|
@@ -31,6 +31,9 @@ export declare function targetParameter(entity: VariableEntity, type: Type): ir.
|
|
|
31
31
|
export declare function unorderedArguments(values: readonly ir.Argument[], targetParameters: readonly VariableEntity[], sourceLocation?: ir.SourceLocation): ir.UnorderedArguments;
|
|
32
32
|
export declare function orderedArguments(values: readonly ir.Expression[], isLastArgumentSpreading: boolean, sourceLocation?: ir.SourceLocation): ir.OrderedArguments;
|
|
33
33
|
export declare function callExpression(expression: ir.Expression, isOptionalAccess: boolean, args: readonly ir.Expression[] | ir.Arguments, isAsyncFunctionCall: boolean, returnType: Type, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
34
|
+
export declare function functionCallExpression(func: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
35
|
+
export declare function instanceMethodCallExpression(expression: ir.Expression, method: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
36
|
+
export declare function staticMethodCallExpression(method: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
34
37
|
export declare function charLiteral(value: string, sourceLocation?: ir.SourceLocation): ir.CharLiteral;
|
|
35
38
|
export declare function commaExpression(expressions: readonly ir.Expression[], sourceLocation?: ir.SourceLocation): ir.CommaExpression;
|
|
36
39
|
export declare function continueLoopStatement(label: string, sourceLocation?: ir.SourceLocation): ir.ContinueLoopStatement;
|
|
@@ -43,6 +46,7 @@ export declare function expressionStatement(expression: ir.Expression, sourceLoc
|
|
|
43
46
|
export declare function finallyClause(body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.FinallyClause;
|
|
44
47
|
export declare function forStatement(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: ir.Expression, body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.ForStatement;
|
|
45
48
|
export declare function ifStatement(condition: ir.Expression, thenStatement: ir.BlockStatement, elseStatement: ir.BlockStatement | undefined, sourceLocation?: ir.SourceLocation): ir.IfStatement;
|
|
49
|
+
export declare function indexedAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, args: ir.Arguments, access: ir.ComputedAccess, sourceLocation?: ir.SourceLocation): ir.IndexedAccessExpression;
|
|
46
50
|
export declare function indexedGetAccessExpression(expression: ir.Expression, getter: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.IndexedAccessExpression;
|
|
47
51
|
export declare function indexedSetAccessExpression(expression: ir.Expression, setter: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.IndexedAccessExpression;
|
|
48
52
|
export declare function inlineJsExpression(code: string, type: Type, sourceLocation?: ir.SourceLocation): ir.InlineJsExpression;
|
|
@@ -82,39 +86,48 @@ export declare function runStatement(body: ir.BlockStatement, sourceLocation?: i
|
|
|
82
86
|
export declare function tryStatement(body: ir.BlockStatement, catchClause: ir.CatchClause | undefined, finallyClause: ir.FinallyClause | undefined, sourceLocation?: ir.SourceLocation): ir.TryStatement;
|
|
83
87
|
export declare function switchStatement(matchExpression: ir.Expression, caseClauses: readonly ir.CaseClause[], defaultClauseBody: ir.BlockStatement | undefined, sourceLocation?: ir.SourceLocation): ir.SwitchStatement;
|
|
84
88
|
export declare function caseClause(expressions: readonly ir.Expression[], body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.CaseClause;
|
|
85
|
-
export declare function ternaryExpression(condition: ir.Expression, firstExpression: ir.Expression, secondExpression: ir.Expression,
|
|
89
|
+
export declare function ternaryExpression(condition: ir.Expression, firstExpression: ir.Expression, secondExpression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.TernaryExpression;
|
|
86
90
|
export declare function textLiteral(value: string, sourceLocation?: ir.SourceLocation): ir.TextLiteral;
|
|
87
91
|
export declare function localizableTextLiteral(value: string, code: number | undefined, sourceLocation?: ir.SourceLocation): ir.LocalizableTextLiteral;
|
|
88
92
|
export declare function textWithEntityName(entity: NamedEntity, sourceLocation?: ir.SourceLocation): ir.TextWithEntityName;
|
|
89
|
-
export declare function textTemplateLiteral(textFragments: readonly string[], expressions: readonly ir.Expression[], sourceLocation?: ir.SourceLocation
|
|
90
|
-
export declare function localizableTextTemplateLiteral(textFragments: readonly string[], expressions: readonly ir.Expression[], code: number | undefined, sourceLocation?: ir.SourceLocation
|
|
93
|
+
export declare function textTemplateLiteral(textFragments: readonly string[], expressions: readonly ir.Expression[], sourceLocation?: ir.SourceLocation): ir.TextTemplateLiteral;
|
|
94
|
+
export declare function localizableTextTemplateLiteral(textFragments: readonly string[], expressions: readonly ir.Expression[], code: number | undefined, sourceLocation?: ir.SourceLocation): ir.LocalizableTextTemplateLiteral;
|
|
91
95
|
export declare function thisExpression(type: Type, sourceLocation?: ir.SourceLocation): ir.ThisExpression;
|
|
92
96
|
export declare function typeAccessExpression(entity: TypeOrExtensionEntity, sourceLocation?: ir.SourceLocation): ir.TypeAccessExpression;
|
|
93
|
-
export declare function constructorDeclaration(
|
|
94
|
-
export declare function dereferencedVariableGetterDeclaration(entity: FunctionEntity,
|
|
95
|
-
export declare function dereferencedVariableSetterDeclaration(entity: FunctionEntity,
|
|
96
|
-
export declare function destructorDeclaration(
|
|
97
|
-
export declare function indexedElementGetterDeclaration(entity: FunctionEntity,
|
|
98
|
-
export declare function indexedElementSetterDeclaration(entity: FunctionEntity,
|
|
99
|
-
export declare function methodAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, method: ir.AccessedFunction, isCallee: boolean,
|
|
100
|
-
export declare function methodDeclaration(
|
|
101
|
-
export declare function fieldAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, field: ir.AccessedVariable, accessKind: AccessKind,
|
|
102
|
-
export declare function
|
|
103
|
-
export declare function
|
|
104
|
-
export declare function
|
|
105
|
-
export declare function
|
|
97
|
+
export declare function constructorDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.ConstructorDeclaration;
|
|
98
|
+
export declare function dereferencedVariableGetterDeclaration(entity: FunctionEntity, body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.DereferencedVariableGetterDeclaration;
|
|
99
|
+
export declare function dereferencedVariableSetterDeclaration(entity: FunctionEntity, body: ir.BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: ir.SourceLocation): ir.DereferencedVariableSetterDeclaration;
|
|
100
|
+
export declare function destructorDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.DestructorDeclaration;
|
|
101
|
+
export declare function indexedElementGetterDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.IndexedElementGetterDeclaration;
|
|
102
|
+
export declare function indexedElementSetterDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: ir.SourceLocation): ir.IndexedElementSetterDeclaration;
|
|
103
|
+
export declare function methodAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, method: FunctionEntity | ir.AccessedFunction, isCallee: boolean, sourceLocation?: ir.SourceLocation): ir.MethodAccessExpression;
|
|
104
|
+
export declare function methodDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isGenerator: boolean, sourceLocation?: ir.SourceLocation): ir.MethodDeclaration;
|
|
105
|
+
export declare function fieldAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, field: VariableEntity | ir.AccessedVariable, accessKind: AccessKind, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
106
|
+
export declare function instanceFieldGetAccess(expression: ir.Expression, field: VariableEntity | ir.AccessedVariable, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
107
|
+
export declare function staticFieldGetAccess(field: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
108
|
+
export declare function instanceFieldSetAccess(expression: ir.Expression, field: VariableEntity | ir.AccessedVariable, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
109
|
+
export declare function staticFieldSetAccess(field: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
110
|
+
export declare function fieldDeclaration(entity: VariableEntity, initializer: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.FieldDeclaration;
|
|
111
|
+
export declare function computedFieldDeclaration(entity: VariableEntity, getter: ir.FieldGetterDeclaration, setter: ir.FieldSetterDeclaration | undefined, sourceLocation?: ir.SourceLocation): ir.ComputedFieldDeclaration;
|
|
112
|
+
export declare function fieldGetterDeclaration(entity: FunctionEntity, body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.FieldGetterDeclaration;
|
|
113
|
+
export declare function fieldSetterDeclaration(entity: FunctionEntity, body: ir.BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: ir.SourceLocation): ir.FieldSetterDeclaration;
|
|
106
114
|
export declare function parameterDeclaration(entity: VariableEntity, defaultValue: ir.Expression | undefined, isRest: boolean, sourceLocation?: ir.SourceLocation): ir.ParameterDeclaration;
|
|
107
115
|
export declare function whileStatement(label: string | undefined, condition: ir.Expression, body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.WhileStatement;
|
|
108
116
|
export declare function yieldStatement(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.YieldStatement;
|
|
109
117
|
export declare function textTranslationDeclaration(key: string | number, sourceTextTemplate: ir.TranslationTextTemplate | undefined, translatedTextOrFunctionBlock: ir.TextLiteral | ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.TextTranslationDeclaration;
|
|
110
118
|
export declare function translationTextTemplate(fragments: readonly string[], parameters: readonly VariableEntity[], sourceLocation?: ir.SourceLocation): ir.TranslationTextTemplate;
|
|
111
|
-
export declare function instanceMethodCallExpression(expression: ir.Expression, method: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
112
|
-
export declare function staticMethodCallExpression(method: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
113
119
|
export declare function constructorCallExpression(ectx: EmitterContext, constructor: FunctionEntity, args: readonly ir.Expression[] | ir.Arguments, sourceLocation?: ir.SourceLocation): ir.ConstructorCallExpression;
|
|
114
|
-
export declare function
|
|
120
|
+
export declare function constructorCallExpressionWithResultType(constructor: FunctionEntity, args: readonly ir.Expression[] | ir.Arguments, type: Type, sourceLocation?: ir.SourceLocation): ir.ConstructorCallExpression;
|
|
121
|
+
export declare function variableAccessExpressions(variable: VariableEntity | ir.AccessedVariable, accessKind: AccessKind, sourceLocation?: ir.SourceLocation): ir.VariableAccessExpression;
|
|
115
122
|
export declare function variableGetAccess(variable: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.VariableAccessExpression;
|
|
116
|
-
export declare function instanceFieldGetAccess(expression: ir.Expression, variable: VariableEntity | ir.AccessedVariable, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
117
|
-
export declare function staticFieldGetAccess(variable: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
118
123
|
export declare function variableSetAccess(variable: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.VariableAccessExpression;
|
|
119
|
-
export declare function
|
|
120
|
-
export declare function
|
|
124
|
+
export declare function accessedVariable(entity: VariableEntity, type: Type): ir.AccessedVariable;
|
|
125
|
+
export declare function accessedFunction(entity: FunctionEntity, returnType: Type): ir.AccessedFunction;
|
|
126
|
+
export declare function localVariableEntity(name: string, type: Type, containingPackage: PackageEntity, isConst: boolean): VariableEntity;
|
|
127
|
+
export declare function parameterEntity(name: string, type: Type, containingPackage: PackageEntity, isVariadic: boolean): VariableEntity;
|
|
128
|
+
export declare function fieldEntity(name: string, type: Type, containingType: TypeOrExtensionEntity, overriddenMembers: readonly VariableEntity[], isBasic: boolean, isAbstract: boolean, isStatic: boolean, isConst: boolean, computedNameInfo: ComputedNameInfo | undefined): VariableEntity;
|
|
129
|
+
export declare function packageVariableEntity(name: string, type: Type, containingPackage: PackageEntity, isConst: boolean): VariableEntity;
|
|
130
|
+
export declare function typeMemberFunctionEntity(functionEntityKind: FunctionEntityKind, name: string, parameters: readonly VariableEntity[], returnType: Type, containingType: TypeOrExtensionEntity, isAsync: boolean, overriddenMembers: readonly FunctionEntity[], isBasic: boolean, isAbstract: boolean, isStatic: boolean, hasComputedName: ComputedNameInfo | undefined): FunctionEntity;
|
|
131
|
+
export declare function fieldAccessorEntity(name: string, parameters: readonly VariableEntity[], returnType: Type, containingPackage: PackageEntity, overriddenMembers: readonly FunctionEntity[], isBasic: boolean, isAbstract: boolean, isStatic: boolean): FunctionEntity;
|
|
132
|
+
export declare function packageFunctionEntity(name: string, parameters: readonly VariableEntity[], returnType: Type, containingPackage: PackageEntity, isAsync: boolean, isPackageConstructor: boolean, isPackageEntryPoint: boolean): FunctionEntity;
|
|
133
|
+
export declare function packageEntity(name: string, locale: PackageLocale, isPackageWithMainFunction: boolean, isMainPackage: boolean): PackageEntity;
|
|
@@ -255,14 +255,14 @@ export declare class CommaExpression {
|
|
|
255
255
|
}
|
|
256
256
|
export declare class ConstructorCallExpression {
|
|
257
257
|
entity: FunctionEntity;
|
|
258
|
-
containingTypeOfConstructor: TypeOrExtensionEntity;
|
|
259
258
|
typeAccess: TypeAccessExpression;
|
|
260
259
|
args: Arguments;
|
|
261
260
|
returnType: Type;
|
|
262
261
|
sourceLocation?: SourceLocation | undefined;
|
|
263
|
-
options: ConstructorCallExpressionEmitOptions;
|
|
264
262
|
readonly kind = NodeKind.ConstructorCallExpression;
|
|
265
|
-
|
|
263
|
+
options: ConstructorCallExpressionEmitOptions;
|
|
264
|
+
constructor(entity: FunctionEntity, typeAccess: TypeAccessExpression, args: Arguments, returnType: Type, sourceLocation?: SourceLocation | undefined);
|
|
265
|
+
withOptions(options: ConstructorCallExpressionEmitOptions): this;
|
|
266
266
|
clone(): ConstructorCallExpression;
|
|
267
267
|
}
|
|
268
268
|
export declare class ContinueLoopStatement {
|
|
@@ -682,10 +682,9 @@ export declare class TernaryExpression {
|
|
|
682
682
|
condition: Expression;
|
|
683
683
|
firstExpression: Expression;
|
|
684
684
|
secondExpression: Expression;
|
|
685
|
-
type: Type;
|
|
686
685
|
sourceLocation?: SourceLocation | undefined;
|
|
687
686
|
readonly kind = NodeKind.TernaryExpression;
|
|
688
|
-
constructor(condition: Expression, firstExpression: Expression, secondExpression: Expression,
|
|
687
|
+
constructor(condition: Expression, firstExpression: Expression, secondExpression: Expression, sourceLocation?: SourceLocation | undefined);
|
|
689
688
|
clone(): TernaryExpression;
|
|
690
689
|
}
|
|
691
690
|
export declare class TextLiteral {
|
|
@@ -719,9 +718,10 @@ export declare class TextTemplateLiteral {
|
|
|
719
718
|
textFragments: readonly string[];
|
|
720
719
|
expressions: readonly Expression[];
|
|
721
720
|
sourceLocation?: SourceLocation | undefined;
|
|
722
|
-
options: TextTemplateEmitOptions;
|
|
723
721
|
readonly kind = NodeKind.TextTemplateLiteral;
|
|
724
|
-
|
|
722
|
+
options: TextTemplateEmitOptions;
|
|
723
|
+
constructor(textFragments: readonly string[], expressions: readonly Expression[], sourceLocation?: SourceLocation | undefined);
|
|
724
|
+
withOptions(options: TextTemplateEmitOptions): this;
|
|
725
725
|
clone(): TextTemplateLiteral;
|
|
726
726
|
}
|
|
727
727
|
export declare class LocalizableTextTemplateLiteral {
|
|
@@ -729,9 +729,10 @@ export declare class LocalizableTextTemplateLiteral {
|
|
|
729
729
|
expressions: readonly Expression[];
|
|
730
730
|
code: number | undefined;
|
|
731
731
|
sourceLocation?: SourceLocation | undefined;
|
|
732
|
-
options: TextTemplateEmitOptions;
|
|
733
732
|
readonly kind = NodeKind.LocalizableTextTemplateLiteral;
|
|
734
|
-
|
|
733
|
+
options: TextTemplateEmitOptions;
|
|
734
|
+
constructor(textFragments: readonly string[], expressions: readonly Expression[], code: number | undefined, sourceLocation?: SourceLocation | undefined);
|
|
735
|
+
withOptions(options: TextTemplateEmitOptions): this;
|
|
735
736
|
clone(): LocalizableTextTemplateLiteral;
|
|
736
737
|
}
|
|
737
738
|
export declare class ThisExpression {
|
|
@@ -749,67 +750,73 @@ export declare class TypeAccessExpression {
|
|
|
749
750
|
clone(): TypeAccessExpression;
|
|
750
751
|
}
|
|
751
752
|
export declare class ConstructorDeclaration {
|
|
752
|
-
|
|
753
|
+
entity: FunctionEntity;
|
|
753
754
|
parameters: readonly ParameterDeclaration[];
|
|
754
755
|
body: BlockStatement;
|
|
755
|
-
entity: FunctionEntity;
|
|
756
756
|
sourceLocation?: SourceLocation | undefined;
|
|
757
757
|
readonly kind = NodeKind.ConstructorDeclaration;
|
|
758
|
-
|
|
758
|
+
decorators: readonly Decorator[];
|
|
759
|
+
constructor(entity: FunctionEntity, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
|
|
760
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
759
761
|
clone(): ConstructorDeclaration;
|
|
760
762
|
}
|
|
761
763
|
export declare class DereferencedVariableGetterDeclaration {
|
|
762
764
|
entity: FunctionEntity;
|
|
763
|
-
decorators: readonly Decorator[];
|
|
764
765
|
modifiers: Modifiers;
|
|
765
766
|
body: BlockStatement;
|
|
766
767
|
sourceLocation?: SourceLocation | undefined;
|
|
767
768
|
readonly kind = NodeKind.DereferencedVariableGetterDeclaration;
|
|
768
|
-
|
|
769
|
+
decorators: readonly Decorator[];
|
|
770
|
+
constructor(entity: FunctionEntity, modifiers: Modifiers, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
|
|
771
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
769
772
|
clone(): DereferencedVariableGetterDeclaration;
|
|
770
773
|
}
|
|
771
774
|
export declare class DereferencedVariableSetterDeclaration {
|
|
772
775
|
entity: FunctionEntity;
|
|
773
|
-
decorators: readonly Decorator[];
|
|
774
776
|
modifiers: Modifiers;
|
|
775
777
|
body: BlockStatement;
|
|
776
778
|
valueLocalVariableEntity: VariableEntity;
|
|
777
779
|
sourceLocation?: SourceLocation | undefined;
|
|
778
780
|
readonly kind = NodeKind.DereferencedVariableSetterDeclaration;
|
|
779
|
-
|
|
781
|
+
decorators: readonly Decorator[];
|
|
782
|
+
constructor(entity: FunctionEntity, modifiers: Modifiers, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
|
|
783
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
780
784
|
clone(): DereferencedVariableSetterDeclaration;
|
|
781
785
|
}
|
|
782
786
|
export declare class DestructorDeclaration {
|
|
783
|
-
|
|
787
|
+
entity: FunctionEntity;
|
|
784
788
|
parameters: readonly ParameterDeclaration[];
|
|
785
789
|
body: BlockStatement;
|
|
786
|
-
entity: FunctionEntity;
|
|
787
790
|
sourceLocation?: SourceLocation | undefined;
|
|
788
791
|
readonly kind = NodeKind.DestructorDeclaration;
|
|
789
|
-
|
|
792
|
+
decorators: readonly Decorator[];
|
|
793
|
+
constructor(entity: FunctionEntity, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
|
|
794
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
790
795
|
clone(): DestructorDeclaration;
|
|
791
796
|
}
|
|
792
797
|
export declare class IndexedElementGetterDeclaration {
|
|
793
798
|
entity: FunctionEntity;
|
|
794
|
-
decorators: readonly Decorator[];
|
|
795
799
|
modifiers: Modifiers;
|
|
796
800
|
parameters: readonly ParameterDeclaration[];
|
|
797
801
|
body: BlockStatement;
|
|
798
802
|
sourceLocation?: SourceLocation | undefined;
|
|
799
803
|
readonly kind = NodeKind.IndexedElementGetterDeclaration;
|
|
800
|
-
|
|
804
|
+
decorators: readonly Decorator[];
|
|
805
|
+
constructor(entity: FunctionEntity, modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, sourceLocation?: SourceLocation | undefined);
|
|
806
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
801
807
|
clone(): IndexedElementGetterDeclaration;
|
|
802
808
|
}
|
|
803
809
|
export declare class IndexedElementSetterDeclaration {
|
|
804
810
|
entity: FunctionEntity;
|
|
805
|
-
decorators: readonly Decorator[];
|
|
806
811
|
modifiers: Modifiers;
|
|
807
812
|
parameters: readonly ParameterDeclaration[];
|
|
808
813
|
body: BlockStatement;
|
|
809
814
|
valueLocalVariableEntity: VariableEntity;
|
|
810
815
|
sourceLocation?: SourceLocation | undefined;
|
|
811
816
|
readonly kind = NodeKind.IndexedElementSetterDeclaration;
|
|
812
|
-
|
|
817
|
+
decorators: readonly Decorator[];
|
|
818
|
+
constructor(entity: FunctionEntity, modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
|
|
819
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
813
820
|
clone(): IndexedElementSetterDeclaration;
|
|
814
821
|
}
|
|
815
822
|
export declare class MethodAccessExpression {
|
|
@@ -817,25 +824,30 @@ export declare class MethodAccessExpression {
|
|
|
817
824
|
isOptionalAccess: boolean;
|
|
818
825
|
method: AccessedFunction;
|
|
819
826
|
isCallee: boolean;
|
|
820
|
-
ifComputedThenKey: Expression | undefined;
|
|
821
827
|
sourceLocation?: SourceLocation | undefined;
|
|
822
|
-
options: FunctionAccessExpressionEmitOptions;
|
|
823
828
|
readonly kind = NodeKind.MethodAccessExpression;
|
|
824
|
-
|
|
829
|
+
ifComputedThenKey: Expression | undefined;
|
|
830
|
+
options: FunctionAccessExpressionEmitOptions;
|
|
831
|
+
constructor(expression: Expression, isOptionalAccess: boolean, method: AccessedFunction, isCallee: boolean, sourceLocation?: SourceLocation | undefined);
|
|
832
|
+
withIfComputedThenKey(key: Expression | undefined): this;
|
|
833
|
+
withOptions(options: FunctionAccessExpressionEmitOptions): this;
|
|
825
834
|
clone(): MethodAccessExpression;
|
|
826
835
|
}
|
|
827
836
|
export declare class MethodDeclaration {
|
|
828
|
-
|
|
837
|
+
entity: FunctionEntity;
|
|
829
838
|
modifiers: Modifiers;
|
|
830
839
|
parameters: readonly ParameterDeclaration[];
|
|
831
840
|
body: BlockStatement;
|
|
832
|
-
entity: FunctionEntity;
|
|
833
841
|
isGenerator: boolean;
|
|
834
|
-
ifComputedThenKey: Expression | undefined;
|
|
835
842
|
sourceLocation?: SourceLocation | undefined;
|
|
836
|
-
options: MethodDeclarationEmitOptions;
|
|
837
843
|
readonly kind = NodeKind.MethodDeclaration;
|
|
838
|
-
|
|
844
|
+
decorators: readonly Decorator[];
|
|
845
|
+
ifComputedThenKey: Expression | undefined;
|
|
846
|
+
options: MethodDeclarationEmitOptions;
|
|
847
|
+
constructor(entity: FunctionEntity, modifiers: Modifiers, parameters: readonly ParameterDeclaration[], body: BlockStatement, isGenerator: boolean, sourceLocation?: SourceLocation | undefined);
|
|
848
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
849
|
+
withIfComputedThenKey(key: Expression | undefined): this;
|
|
850
|
+
withOptions(options: MethodDeclarationEmitOptions): this;
|
|
839
851
|
clone(): MethodDeclaration;
|
|
840
852
|
}
|
|
841
853
|
export declare class FieldAccessExpression {
|
|
@@ -843,25 +855,28 @@ export declare class FieldAccessExpression {
|
|
|
843
855
|
isOptionalAccess: boolean;
|
|
844
856
|
field: AccessedVariable;
|
|
845
857
|
accessKind: AccessKind;
|
|
846
|
-
ifComputedThenKey: Expression | undefined;
|
|
847
858
|
sourceLocation?: SourceLocation | undefined;
|
|
848
|
-
options: FieldAccessExpressionEmitOptions;
|
|
849
859
|
readonly kind = NodeKind.FieldAccessExpression;
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
860
|
+
ifComputedThenKey: Expression | undefined;
|
|
861
|
+
options: FieldAccessExpressionEmitOptions;
|
|
862
|
+
constructor(expression: Expression, isOptionalAccess: boolean, field: AccessedVariable, accessKind: AccessKind, sourceLocation?: SourceLocation | undefined);
|
|
863
|
+
withIfComputedThenKey(key: Expression | undefined): this;
|
|
864
|
+
withOptions(options: FieldAccessExpressionEmitOptions): this;
|
|
853
865
|
clone(): FieldAccessExpression;
|
|
854
866
|
}
|
|
855
867
|
export declare class FieldDeclaration {
|
|
856
|
-
|
|
868
|
+
entity: VariableEntity;
|
|
857
869
|
modifiers: Modifiers;
|
|
858
870
|
initializer: Expression | undefined;
|
|
859
|
-
entity: VariableEntity;
|
|
860
|
-
ifComputedThenKey: Expression | undefined;
|
|
861
871
|
sourceLocation?: SourceLocation | undefined;
|
|
862
|
-
options: FieldDeclarationEmitOptions;
|
|
863
872
|
readonly kind = NodeKind.FieldDeclaration;
|
|
864
|
-
|
|
873
|
+
decorators: readonly Decorator[];
|
|
874
|
+
ifComputedThenKey: Expression | undefined;
|
|
875
|
+
options: FieldDeclarationEmitOptions;
|
|
876
|
+
constructor(entity: VariableEntity, modifiers: Modifiers, initializer: Expression | undefined, sourceLocation?: SourceLocation | undefined);
|
|
877
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
878
|
+
withIfComputedThenKey(key: Expression | undefined): this;
|
|
879
|
+
withOptions(options: FieldDeclarationEmitOptions): this;
|
|
865
880
|
clone(): FieldDeclaration;
|
|
866
881
|
}
|
|
867
882
|
export declare class ComputedFieldDeclaration {
|
|
@@ -869,30 +884,34 @@ export declare class ComputedFieldDeclaration {
|
|
|
869
884
|
modifiers: Modifiers;
|
|
870
885
|
getter: FieldGetterDeclaration;
|
|
871
886
|
setter: FieldSetterDeclaration | undefined;
|
|
872
|
-
ifComputedThenKey: Expression | undefined;
|
|
873
887
|
sourceLocation?: SourceLocation | undefined;
|
|
874
|
-
options: FieldDeclarationEmitOptions;
|
|
875
888
|
readonly kind = NodeKind.ComputedFieldDeclaration;
|
|
876
|
-
|
|
889
|
+
ifComputedThenKey: Expression | undefined;
|
|
890
|
+
options: FieldDeclarationEmitOptions;
|
|
891
|
+
constructor(entity: VariableEntity, modifiers: Modifiers, getter: FieldGetterDeclaration, setter: FieldSetterDeclaration | undefined, sourceLocation?: SourceLocation | undefined);
|
|
892
|
+
withIfComputedThenKey(key: Expression | undefined): this;
|
|
893
|
+
withOptions(options: FieldDeclarationEmitOptions): this;
|
|
877
894
|
clone(): ComputedFieldDeclaration;
|
|
878
895
|
}
|
|
879
896
|
export declare class FieldGetterDeclaration {
|
|
880
897
|
entity: FunctionEntity;
|
|
881
|
-
decorators: readonly Decorator[];
|
|
882
898
|
body: BlockStatement;
|
|
883
899
|
sourceLocation?: SourceLocation | undefined;
|
|
884
900
|
readonly kind = NodeKind.FieldGetterDeclaration;
|
|
885
|
-
|
|
901
|
+
decorators: readonly Decorator[];
|
|
902
|
+
constructor(entity: FunctionEntity, body: BlockStatement, sourceLocation?: SourceLocation | undefined);
|
|
903
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
886
904
|
clone(): FieldGetterDeclaration;
|
|
887
905
|
}
|
|
888
906
|
export declare class FieldSetterDeclaration {
|
|
889
907
|
entity: FunctionEntity;
|
|
890
|
-
decorators: readonly Decorator[];
|
|
891
908
|
body: BlockStatement;
|
|
892
909
|
valueLocalVariableEntity: VariableEntity;
|
|
893
910
|
sourceLocation?: SourceLocation | undefined;
|
|
894
911
|
readonly kind = NodeKind.FieldSetterDeclaration;
|
|
895
|
-
|
|
912
|
+
decorators: readonly Decorator[];
|
|
913
|
+
constructor(entity: FunctionEntity, body: BlockStatement, valueLocalVariableEntity: VariableEntity, sourceLocation?: SourceLocation | undefined);
|
|
914
|
+
withDecorators(decorators: readonly Decorator[]): this;
|
|
896
915
|
clone(): FieldSetterDeclaration;
|
|
897
916
|
}
|
|
898
917
|
export declare class ParameterDeclaration {
|
|
@@ -917,8 +936,6 @@ export declare class VariableAccessExpression {
|
|
|
917
936
|
sourceLocation?: SourceLocation | undefined;
|
|
918
937
|
readonly kind = NodeKind.VariableAccessExpression;
|
|
919
938
|
constructor(variable: AccessedVariable, accessKind: AccessKind, sourceLocation?: SourceLocation | undefined);
|
|
920
|
-
static get(variable: AccessedVariable | VariableEntity): VariableAccessExpression;
|
|
921
|
-
static set(variable: AccessedVariable | VariableEntity): VariableAccessExpression;
|
|
922
939
|
clone(): VariableAccessExpression;
|
|
923
940
|
}
|
|
924
941
|
export declare class WhileStatement {
|