@artel/artc 0.6.25267 → 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 +9 -4
- package/build/{chunk-QPMUNY52.js → chunk-A24SR6QN.js} +2 -2
- package/build/{chunk-PONDNA47.js → chunk-A5H2QLXZ.js} +14321 -14577
- package/build/{chunk-PWOY5UD5.js → chunk-REZSITUH.js} +1 -1
- package/build/types/analysis/TagMeaning.d.ts +2 -1
- package/build/types/analysis/Tags.d.ts +6 -2
- package/build/types/analysis/Utils.d.ts +3 -2
- package/build/types/emitter/Emitter.d.ts +0 -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 +51 -36
- package/build/types/emitter/IrToJs.d.ts +0 -1
- package/build/types/emitter/Transformer.d.ts +0 -2
- package/build/types/emitter/ir/Nodes.d.ts +109 -95
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -28,13 +28,14 @@ export declare class ResolutionResult {
|
|
|
28
28
|
export type Meaning = Meaning_tagType | Meaning_tagFunction | Meaning_unresolved;
|
|
29
29
|
declare class Meaning_tagType {
|
|
30
30
|
readonly type: types.Type;
|
|
31
|
+
readonly typeEntity: NamedTypeEntity | undefined;
|
|
31
32
|
readonly candidates: readonly types.Constructor[];
|
|
32
33
|
readonly suitableConstructors: readonly types.Constructor[];
|
|
33
34
|
readonly singleNotSuitableSubstitutedCandidate: types.Constructor | undefined;
|
|
34
35
|
readonly kind = "tag-type";
|
|
35
36
|
get singleSuitableConstructor(): types.Constructor | undefined;
|
|
36
37
|
get singleConstructor(): types.Constructor | undefined;
|
|
37
|
-
constructor(type: types.Type, candidates: readonly types.Constructor[], suitableConstructors: readonly types.Constructor[], singleNotSuitableSubstitutedCandidate: types.Constructor | undefined);
|
|
38
|
+
constructor(type: types.Type, typeEntity: NamedTypeEntity | undefined, candidates: readonly types.Constructor[], suitableConstructors: readonly types.Constructor[], singleNotSuitableSubstitutedCandidate: types.Constructor | undefined);
|
|
38
39
|
}
|
|
39
40
|
declare class Meaning_tagFunction {
|
|
40
41
|
readonly candidates: readonly NotSubstitutedAccessedFunction[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ParameterEntity } from '../entities/index.js';
|
|
1
|
+
import { FunctionEntity, ParameterEntity, TypeEntity } from '../entities/index.js';
|
|
2
2
|
import * as types from '../types/index.js';
|
|
3
3
|
import { AccessedFunction } from './AccessedFunction.js';
|
|
4
4
|
export type Tag = TagType | TagFunction;
|
|
@@ -6,17 +6,21 @@ declare abstract class TagBase {
|
|
|
6
6
|
readonly argumentByParameter: ReadonlyMap<ParameterEntity, TagArgument>;
|
|
7
7
|
private readonly argumentByNameKey_;
|
|
8
8
|
get argumentByNameKey(): ReadonlyMap<string, TagArgument>;
|
|
9
|
+
abstract get typeOrFunctionEntity(): TypeEntity | FunctionEntity;
|
|
9
10
|
constructor(argumentByParameter: ReadonlyMap<ParameterEntity, TagArgument>);
|
|
10
11
|
}
|
|
11
12
|
export declare class TagType extends TagBase {
|
|
12
13
|
readonly kind = "type";
|
|
13
14
|
readonly type: types.Type;
|
|
15
|
+
readonly typeEntity: TypeEntity;
|
|
14
16
|
readonly constructor_: types.Constructor;
|
|
15
|
-
|
|
17
|
+
get typeOrFunctionEntity(): TypeEntity | FunctionEntity;
|
|
18
|
+
constructor(type: types.Type, typeEntity: TypeEntity, constructor_: types.Constructor, argumentByParameter: ReadonlyMap<ParameterEntity, TagArgument>);
|
|
16
19
|
}
|
|
17
20
|
export declare class TagFunction extends TagBase {
|
|
18
21
|
readonly kind = "function";
|
|
19
22
|
readonly func: AccessedFunction;
|
|
23
|
+
get typeOrFunctionEntity(): TypeEntity | FunctionEntity;
|
|
20
24
|
constructor(func: AccessedFunction, argumentByParameter: ReadonlyMap<ParameterEntity, TagArgument>);
|
|
21
25
|
}
|
|
22
26
|
export type TagArgument = TagArgument_string | TagArgument_numeric | TagArgument_boolean | TagArgument_invalid;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Entity, FunctionEntity,
|
|
1
|
+
import { Entity, FunctionEntity, TypeEntity, TypeParameterEntity, VariableEntity } from '../entities/index.js';
|
|
2
2
|
import * as tree from '../tree/index.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
4
|
import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
|
@@ -11,8 +11,9 @@ export declare function getParentGenericSpecializationExpression(expression: tre
|
|
|
11
11
|
export declare function getGenericSpecializationExpressionOfCallee(callee: tree.Expression): tree.GenericSpecializationExpression | undefined;
|
|
12
12
|
export declare function unaliasType(type: types.Type): types.Type;
|
|
13
13
|
export declare function unaliasType(type: types.Type | undefined): types.Type | undefined;
|
|
14
|
-
export declare function findTag(tagTypeEntity:
|
|
14
|
+
export declare function findTag(tagTypeEntity: TypeEntity, tags: readonly Tag[]): TagType | undefined;
|
|
15
15
|
export declare function findTag(tagFunctionEntity: FunctionEntity, tags: readonly Tag[]): TagFunction | undefined;
|
|
16
|
+
export declare function findTag(tagEntity: TypeEntity | FunctionEntity, tags: readonly Tag[]): TagType | TagFunction | undefined;
|
|
16
17
|
export declare function getRequiredTypeParameterCount(typeParameters: readonly TypeParameterEntity[]): number;
|
|
17
18
|
export declare function flattenPackageMemberDeclarationList(list: tree.PackageMemberDeclarationList): Iterable<Exclude<tree.PackageMemberDeclaration, tree.PackageMemberGroupDeclaration>>;
|
|
18
19
|
export declare function flattenTypeMemberDeclarationList(list: tree.TypeMemberDeclarationList): Iterable<Exclude<tree.TypeMemberDeclaration, tree.TypeMemberGroupDeclaration>>;
|
|
@@ -18,7 +18,6 @@ export declare class Emitter {
|
|
|
18
18
|
private enumerateEmittingSourcePackages;
|
|
19
19
|
private createPackageWithMainFunction;
|
|
20
20
|
private createMainFunction;
|
|
21
|
-
private createMainFunctionCall;
|
|
22
21
|
private createUniqueNamesForPackageMembers;
|
|
23
22
|
private setOutputUris;
|
|
24
23
|
private addImports;
|
|
@@ -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,24 +31,27 @@ 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;
|
|
37
40
|
export declare function dereferenceExpression(expression: ir.Expression, isOptionalAccess: boolean, access: ir.ComputedAccess, sourceLocation?: ir.SourceLocation): ir.DereferenceExpression;
|
|
38
41
|
export declare function disposeStatement(expression: ir.Expression, destructorEntity: FunctionEntity, sourceLocation?: ir.SourceLocation): ir.DisposeStatement;
|
|
39
42
|
export declare function emptyStatement(sourceLocation?: ir.SourceLocation): ir.EmptyStatement;
|
|
40
|
-
export declare function errorStatement(expression: ir.Expression, sourceLocation?: ir.SourceLocation
|
|
43
|
+
export declare function errorStatement(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.ErrorStatement;
|
|
41
44
|
export declare function importantStatement(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.ImportantStatement;
|
|
42
45
|
export declare function expressionStatement(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.ExpressionStatement;
|
|
43
46
|
export declare function finallyClause(body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.FinallyClause;
|
|
44
|
-
export declare function forStatement(label: string | undefined, elementVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: ir.Expression, body: ir.BlockStatement,
|
|
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;
|
|
49
53
|
export declare function integerLiteral(value: number, sourceLocation?: ir.SourceLocation): ir.IntegerLiteral;
|
|
50
54
|
export declare function isExpression(expression: ir.Expression, type: Type, sourceLocation?: ir.SourceLocation): ir.IsExpression;
|
|
51
|
-
export declare function jsFunctionLiteral(parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: ir.SourceLocation): ir.JsFunctionLiteral;
|
|
52
55
|
export declare function jsIdentifierExpression(identifier: string, sourceLocation?: ir.SourceLocation): ir.JsIdentifierExpression;
|
|
53
56
|
export declare function esModuleImportDirectiveStatement(defaultImport: string | undefined, importSpecifiers: readonly ir.JsImportSpecifier[], path: string, sourceLocation?: ir.SourceLocation): ir.EsModuleImportDirectiveStatement;
|
|
54
57
|
export declare function cjsModuleImportDirectiveStatement(defaultImport: string, importSpecifiers: readonly ir.JsImportSpecifier[], path: string, sourceLocation?: ir.SourceLocation): ir.CjsModuleImportDirectiveStatement;
|
|
@@ -62,57 +65,69 @@ export declare function functionJsObjectLiteralProperty(key: ir.JsObjectLiteralP
|
|
|
62
65
|
export declare function spreadJsObjectLiteralProperty(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.SpreadJsObjectLiteralProperty;
|
|
63
66
|
export declare function jsPropertyAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, name: string, type: Type, sourceLocation?: ir.SourceLocation): ir.JsPropertyAccessExpression;
|
|
64
67
|
export declare function jsTypeOfExpression(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.JsTypeOfExpression;
|
|
65
|
-
export declare function localVariableDeclaration(entity: VariableEntity, initializer: ir.Expression | undefined, sourceLocation?: ir.SourceLocation
|
|
66
|
-
export declare function localVariableDeclarationStatement(
|
|
68
|
+
export declare function localVariableDeclaration(entity: VariableEntity, initializer: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.LocalVariableDeclaration;
|
|
69
|
+
export declare function localVariableDeclarationStatement(entity: VariableEntity, initializer: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.LocalVariableDeclarationStatement;
|
|
70
|
+
export declare function localVariableDeclarationStatementFromDeclaration(declaration: ir.LocalVariableDeclaration, sourceLocation?: ir.SourceLocation): ir.LocalVariableDeclarationStatement;
|
|
67
71
|
export declare function loopStatement(label: string | undefined, body: ir.BlockStatement, condition: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.LoopStatement;
|
|
68
72
|
export declare function measureLiteral(sourceLocation?: ir.SourceLocation): ir.MeasureLiteral;
|
|
69
|
-
export declare function functionAccessExpression(func: ir.AccessedFunction, isCallee: boolean, sourceLocation?: ir.SourceLocation
|
|
70
|
-
export declare function functionLiteral(parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: ir.SourceLocation
|
|
71
|
-
export declare function nestedFunctionDeclaration(parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement,
|
|
72
|
-
export declare function nestedFunctionDeclarationStatement(
|
|
73
|
+
export declare function functionAccessExpression(func: ir.AccessedFunction, isCallee: boolean, sourceLocation?: ir.SourceLocation): ir.FunctionAccessExpression;
|
|
74
|
+
export declare function functionLiteral(parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, returnType: Type, sourceLocation?: ir.SourceLocation): ir.FunctionLiteral;
|
|
75
|
+
export declare function nestedFunctionDeclaration(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: ir.SourceLocation): ir.NestedFunctionDeclaration;
|
|
76
|
+
export declare function nestedFunctionDeclarationStatement(entity: FunctionEntity, parameters: readonly ir.ParameterDeclaration[], body: ir.BlockStatement, isAsync: boolean, isGenerator: boolean, sourceLocation?: ir.SourceLocation): ir.NestedFunctionDeclarationStatement;
|
|
77
|
+
export declare function nestedFunctionDeclarationStatementWithDeclaration(declaration: ir.NestedFunctionDeclaration, sourceLocation?: ir.SourceLocation): ir.NestedFunctionDeclarationStatement;
|
|
73
78
|
export declare function nullLiteral(sourceLocation?: ir.SourceLocation): ir.NullLiteral;
|
|
74
79
|
export declare function numericLiteral(value: number, sourceLocation?: ir.SourceLocation): ir.NumericLiteral;
|
|
75
80
|
export declare function catchClause(errorVariableEntity: VariableEntity | undefined, body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.CatchClause;
|
|
76
|
-
export declare function ownConstructorCallExpression(entity: FunctionEntity,
|
|
77
|
-
export declare function prefixUnaryExpression(operatorKind: ir.PrefixUnaryExpressionOperatorKind, expression: ir.Expression,
|
|
81
|
+
export declare function ownConstructorCallExpression(entity: FunctionEntity, args: ir.Arguments, sourceLocation?: ir.SourceLocation): ir.OwnConstructorCallExpression;
|
|
82
|
+
export declare function prefixUnaryExpression(operatorKind: ir.PrefixUnaryExpressionOperatorKind, expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.PrefixUnaryExpression;
|
|
78
83
|
export declare function referenceExpression(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.ReferenceExpression;
|
|
79
84
|
export declare function returnStatement(expression: ir.Expression | undefined, sourceLocation?: ir.SourceLocation): ir.ReturnStatement;
|
|
80
85
|
export declare function runStatement(body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.RunStatement;
|
|
81
86
|
export declare function tryStatement(body: ir.BlockStatement, catchClause: ir.CatchClause | undefined, finallyClause: ir.FinallyClause | undefined, sourceLocation?: ir.SourceLocation): ir.TryStatement;
|
|
82
87
|
export declare function switchStatement(matchExpression: ir.Expression, caseClauses: readonly ir.CaseClause[], defaultClauseBody: ir.BlockStatement | undefined, sourceLocation?: ir.SourceLocation): ir.SwitchStatement;
|
|
83
|
-
export declare function caseClause(expressions: readonly ir.Expression[], body: ir.BlockStatement): ir.CaseClause;
|
|
84
|
-
export declare function ternaryExpression(condition: ir.Expression, firstExpression: ir.Expression, secondExpression: ir.Expression,
|
|
88
|
+
export declare function caseClause(expressions: readonly ir.Expression[], body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.CaseClause;
|
|
89
|
+
export declare function ternaryExpression(condition: ir.Expression, firstExpression: ir.Expression, secondExpression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.TernaryExpression;
|
|
85
90
|
export declare function textLiteral(value: string, sourceLocation?: ir.SourceLocation): ir.TextLiteral;
|
|
86
91
|
export declare function localizableTextLiteral(value: string, code: number | undefined, sourceLocation?: ir.SourceLocation): ir.LocalizableTextLiteral;
|
|
87
92
|
export declare function textWithEntityName(entity: NamedEntity, sourceLocation?: ir.SourceLocation): ir.TextWithEntityName;
|
|
88
|
-
export declare function textTemplateLiteral(textFragments: readonly string[], expressions: readonly ir.Expression[], sourceLocation?: ir.SourceLocation
|
|
89
|
-
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;
|
|
90
95
|
export declare function thisExpression(type: Type, sourceLocation?: ir.SourceLocation): ir.ThisExpression;
|
|
91
96
|
export declare function typeAccessExpression(entity: TypeOrExtensionEntity, sourceLocation?: ir.SourceLocation): ir.TypeAccessExpression;
|
|
92
|
-
export declare function constructorDeclaration(
|
|
93
|
-
export declare function dereferencedVariableGetterDeclaration(entity: FunctionEntity,
|
|
94
|
-
export declare function dereferencedVariableSetterDeclaration(entity: FunctionEntity,
|
|
95
|
-
export declare function destructorDeclaration(
|
|
96
|
-
export declare function indexedElementGetterDeclaration(entity: FunctionEntity,
|
|
97
|
-
export declare function indexedElementSetterDeclaration(entity: FunctionEntity,
|
|
98
|
-
export declare function methodAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, method: ir.AccessedFunction, isCallee: boolean,
|
|
99
|
-
export declare function methodDeclaration(
|
|
100
|
-
export declare function fieldAccessExpression(expression: ir.Expression, isOptionalAccess: boolean, field: ir.AccessedVariable, accessKind: AccessKind,
|
|
101
|
-
export declare function
|
|
102
|
-
export declare function
|
|
103
|
-
export declare function
|
|
104
|
-
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;
|
|
105
114
|
export declare function parameterDeclaration(entity: VariableEntity, defaultValue: ir.Expression | undefined, isRest: boolean, sourceLocation?: ir.SourceLocation): ir.ParameterDeclaration;
|
|
106
115
|
export declare function whileStatement(label: string | undefined, condition: ir.Expression, body: ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.WhileStatement;
|
|
107
116
|
export declare function yieldStatement(expression: ir.Expression, sourceLocation?: ir.SourceLocation): ir.YieldStatement;
|
|
108
117
|
export declare function textTranslationDeclaration(key: string | number, sourceTextTemplate: ir.TranslationTextTemplate | undefined, translatedTextOrFunctionBlock: ir.TextLiteral | ir.BlockStatement, sourceLocation?: ir.SourceLocation): ir.TextTranslationDeclaration;
|
|
109
118
|
export declare function translationTextTemplate(fragments: readonly string[], parameters: readonly VariableEntity[], sourceLocation?: ir.SourceLocation): ir.TranslationTextTemplate;
|
|
110
|
-
export declare function instanceMethodCallExpression(expression: ir.Expression, method: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
111
|
-
export declare function staticMethodCallExpression(method: FunctionEntity | ir.AccessedFunction, args: readonly ir.Expression[] | ir.Arguments, sourceLocation?: ir.SourceLocation): ir.CallExpression;
|
|
112
119
|
export declare function constructorCallExpression(ectx: EmitterContext, constructor: FunctionEntity, args: readonly ir.Expression[] | ir.Arguments, sourceLocation?: ir.SourceLocation): ir.ConstructorCallExpression;
|
|
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;
|
|
113
122
|
export declare function variableGetAccess(variable: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.VariableAccessExpression;
|
|
114
|
-
export declare function instanceFieldGetAccess(expression: ir.Expression, variable: VariableEntity | ir.AccessedVariable, isOptionalAccess: boolean, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
115
|
-
export declare function staticFieldGetAccess(variable: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.FieldAccessExpression;
|
|
116
123
|
export declare function variableSetAccess(variable: VariableEntity | ir.AccessedVariable, sourceLocation?: ir.SourceLocation): ir.VariableAccessExpression;
|
|
117
|
-
export declare function
|
|
118
|
-
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;
|
|
@@ -59,7 +59,6 @@ export declare class IrToJs {
|
|
|
59
59
|
private convertIntegerLiteral;
|
|
60
60
|
private convertNumericLiteral;
|
|
61
61
|
private convertFunctionLiteral;
|
|
62
|
-
private convertJsFunctionLiteral;
|
|
63
62
|
private convertJsTypeOfExpression;
|
|
64
63
|
private convertJsInstanceOfExpression;
|
|
65
64
|
private convertJsIdentifierExpression;
|
|
@@ -107,7 +107,6 @@ export declare class Transformer {
|
|
|
107
107
|
transformJsIndexedAccessExpressionChildren(expression: ir.JsIndexedAccessExpression): void;
|
|
108
108
|
transformJsObjectLiteralChildren(expression: ir.JsObjectLiteral): void;
|
|
109
109
|
transformJsPropertyAccessExpressionChildren(expression: ir.JsPropertyAccessExpression): void;
|
|
110
|
-
transformJsFunctionLiteralChildren(expression: ir.JsFunctionLiteral): void;
|
|
111
110
|
transformJsTypeOfExpressionChildren(expression: ir.JsTypeOfExpression): void;
|
|
112
111
|
transformJsInstanceOfExpressionChildren(expression: ir.JsInstanceOfExpression): void;
|
|
113
112
|
transformJsIdentifierExpressionChildren(_expression: ir.JsIdentifierExpression): void;
|
|
@@ -159,7 +158,6 @@ export interface TransformationConfig {
|
|
|
159
158
|
transformJsIndexedAccessExpression?(expression: ir.JsIndexedAccessExpression): ExpressionTransformationResult;
|
|
160
159
|
transformJsObjectLiteral?(expression: ir.JsObjectLiteral): ExpressionTransformationResult;
|
|
161
160
|
transformJsPropertyAccessExpression?(expression: ir.JsPropertyAccessExpression): ExpressionTransformationResult;
|
|
162
|
-
transformJsFunctionLiteral?(expression: ir.JsFunctionLiteral): ExpressionTransformationResult;
|
|
163
161
|
transformJsTypeOfExpression?(expression: ir.JsTypeOfExpression): ExpressionTransformationResult;
|
|
164
162
|
transformJsInstanceOfExpression?(expression: ir.JsInstanceOfExpression): ExpressionTransformationResult;
|
|
165
163
|
transformJsIdentifierExpression?(expression: ir.JsIdentifierExpression): ExpressionTransformationResult;
|