@artel/artc 0.6.25224 → 0.6.25225
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 +81 -79
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +995 -1001
- package/build/{chunk-24QZJOMF.js → chunk-TFTCV5R5.js} +5434 -5343
- package/build/{chunk-62KHK23H.js → chunk-UB6LHKS5.js} +3 -3
- package/build/{chunk-Y6DODJCG.js → chunk-Z6TZA6SN.js} +3 -3
- package/build/types/analysis/AccessedFunction.d.ts +53 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +15 -15
- package/build/types/analysis/Analyzer.d.ts +133 -124
- package/build/types/analysis/CallExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/DiagnosticCollector.d.ts +16 -16
- package/build/types/analysis/EntityLocalizationHelper.d.ts +6 -6
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +10 -10
- package/build/types/analysis/LocalizationContext.d.ts +2 -2
- package/build/types/analysis/{PropertyAccessExpressionMeaning.d.ts → MemberAccessExpressionMeaning.d.ts} +20 -20
- package/build/types/analysis/NodeTypeUtils.d.ts +13 -13
- package/build/types/analysis/OperationOverloadResolver.d.ts +1 -1
- package/build/types/analysis/Scope.d.ts +15 -15
- package/build/types/analysis/SemanticContext.d.ts +29 -29
- package/build/types/analysis/SemanticContextBuilder.d.ts +22 -22
- package/build/types/analysis/SourceFileMembers.d.ts +2 -2
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +12 -12
- package/build/types/analysis/{SubstitutedMethod.d.ts → SubstitutedFunction.d.ts} +14 -14
- package/build/types/analysis/TagMeaning.d.ts +19 -19
- package/build/types/analysis/Tags.d.ts +6 -6
- package/build/types/analysis/Utils.d.ts +3 -3
- package/build/types/analysis/WellKnownDeclarations.d.ts +4 -4
- package/build/types/analysis/control-flow/NarrowableExpression.d.ts +1 -1
- package/build/types/api/Api.d.ts +3 -3
- package/build/types/diagnostic/DiagnosticCode.d.ts +130 -131
- package/build/types/emitter/EmitPhaseName.d.ts +8 -8
- package/build/types/emitter/Emitter.d.ts +4 -4
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/Entities.d.ts +26 -25
- package/build/types/emitter/EntityMap.d.ts +8 -8
- package/build/types/emitter/IrBuilder.d.ts +18 -18
- package/build/types/emitter/IrToJs.d.ts +9 -9
- package/build/types/emitter/Transformer.d.ts +37 -37
- package/build/types/emitter/ir/AccessedEntities.d.ts +5 -5
- package/build/types/emitter/ir/ComputedAccess.d.ts +5 -5
- package/build/types/emitter/ir/EmitOptions.d.ts +41 -27
- package/build/types/emitter/ir/Nodes.d.ts +140 -139
- package/build/types/emitter/ir/types.d.ts +8 -8
- package/build/types/entities/ConstructorEntity.d.ts +9 -9
- package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
- package/build/types/entities/DestructorEntity.d.ts +4 -4
- package/build/types/entities/{MethodEntity.d.ts → FunctionEntity.d.ts} +36 -36
- package/build/types/entities/{MethodTypeEntity.d.ts → FunctionTypeEntity.d.ts} +23 -23
- package/build/types/entities/GetterEntity.d.ts +9 -9
- package/build/types/entities/IndexerEntity.d.ts +4 -4
- package/build/types/entities/SetterEntity.d.ts +9 -9
- package/build/types/entities/TypeEntity.d.ts +3 -3
- package/build/types/entities/TypeEntityMembers.d.ts +3 -3
- package/build/types/entities/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/VariableEntity.d.ts +32 -32
- package/build/types/entities/index.d.ts +14 -14
- package/build/types/services/CompletionService.d.ts +8 -8
- package/build/types/services/DisplayService.d.ts +62 -62
- package/build/types/services/HoverService.d.ts +1 -1
- package/build/types/services/NodeSemanticInfo.d.ts +17 -17
- package/build/types/services/SemanticTokensService.d.ts +6 -6
- package/build/types/services/SourceFileItemsService.d.ts +11 -11
- package/build/types/services/TypeDefinitionService.d.ts +2 -2
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +10 -10
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -1
- package/build/types/services/source-generation/EntityToSyntax.d.ts +9 -9
- package/build/types/tree/NodeKind.d.ts +146 -148
- package/build/types/tree/green/Nodes.d.ts +119 -139
- package/build/types/tree/green/SyntaxFactory.d.ts +19 -19
- package/build/types/tree/green/SyntaxToCode.d.ts +20 -22
- package/build/types/tree/red/Nodes.d.ts +165 -189
- package/build/types/ts-interop/Entities.d.ts +28 -28
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -1
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
- package/build/types/types/{MethodType.d.ts → FunctionType.d.ts} +6 -6
- package/build/types/types/StandardTypes.d.ts +2 -2
- package/build/types/types/Type.d.ts +2 -2
- package/build/types/types/TypeFactory.d.ts +6 -7
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/analysis/AccessedMethod.d.ts +0 -53
@@ -1,5 +1,5 @@
|
|
1
1
|
import { SearchName } from '../common/index.js';
|
2
|
-
import { PackageAliasEntity,
|
2
|
+
import { PackageAliasEntity, PackageFunctionEntity, PackageTypeEntity, PackageVariableEntity, TypeExtensionEntity } from '../entities/index.js';
|
3
3
|
export declare class SourceFileMembers {
|
4
4
|
private readonly _namedMembers;
|
5
5
|
private readonly _typeExtensions;
|
@@ -12,4 +12,4 @@ export declare class SourceFileMembers {
|
|
12
12
|
getPackageAliasesByName(name: SearchName): readonly PackageAliasEntity[];
|
13
13
|
getTypeExtensions(): readonly TypeExtensionEntity[];
|
14
14
|
}
|
15
|
-
export type NamedSourceFileMemberEntity = PackageTypeEntity | PackageVariableEntity |
|
15
|
+
export type NamedSourceFileMemberEntity = PackageTypeEntity | PackageVariableEntity | PackageFunctionEntity | PackageAliasEntity;
|
@@ -6,20 +6,20 @@ export declare class StatementBlockScopeBuilder {
|
|
6
6
|
static buildStatementBlockScope(analyzer: Analyzer, node: tree.StatementBlock): IScope;
|
7
7
|
static buildGenericScopeForFunctionBlock(analyzer: Analyzer, node: tree.FunctionBlock): IScope;
|
8
8
|
static buildGenericScopeForStatementBlock(analyzer: Analyzer, node: tree.StatementBlock): IScope;
|
9
|
-
static
|
10
|
-
static
|
11
|
-
static
|
12
|
-
static
|
9
|
+
static buildScopeForFunctionBlockLiteral(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.FunctionBlockLiteral): IScope;
|
10
|
+
static buildScopeForPackageFunctionDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.PackageFunctionDeclaration): IScope;
|
11
|
+
static buildScopeForFieldGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.FieldGetterDeclaration): IScope;
|
12
|
+
static buildScopeForFieldSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.FieldSetterDeclaration): IScope;
|
13
13
|
static buildScopeForPackageVariableGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.PackageVariableGetterDeclaration): IScope;
|
14
14
|
static buildScopeForPackageVariableSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.PackageVariableSetterDeclaration): IScope;
|
15
|
-
static
|
16
|
-
static
|
17
|
-
static
|
18
|
-
static
|
19
|
-
static
|
20
|
-
static
|
21
|
-
static
|
22
|
-
static
|
15
|
+
static buildScopeForIndexedElementGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.IndexedElementGetterDeclaration): IScope;
|
16
|
+
static buildScopeForIndexedElementSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.IndexedElementSetterDeclaration): IScope;
|
17
|
+
static buildScopeForDereferencedVariableGetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.DereferencedVariableGetterDeclaration): IScope;
|
18
|
+
static buildScopeForDereferencedVariableSetterDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.DereferencedVariableSetterDeclaration): IScope;
|
19
|
+
static buildScopeForNestedFunctionDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.NestedFunctionDeclaration): IScope;
|
20
|
+
static buildScopeForFunctionLiteral(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.FunctionLiteral): IScope;
|
21
|
+
static buildScopeForConstructorDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.ConstructorDeclaration): IScope;
|
22
|
+
static buildScopeForMethodDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.MethodDeclaration): IScope;
|
23
23
|
static buildScopeForOperatorDeclaration(analyzer: Analyzer, node: tree.FunctionBlock, parent: tree.OperatorDeclaration): IScope;
|
24
24
|
private static getLocalNamedDeclarationsOfFunctionBlock;
|
25
25
|
private static getLocalNamedDeclarations;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { Name } from '../common/index.js';
|
2
|
-
import {
|
2
|
+
import { FunctionEntity, ParameterVariableEntity } from '../entities/index.js';
|
3
3
|
import * as types from '../types/index.js';
|
4
|
-
export type
|
5
|
-
export declare class
|
6
|
-
readonly entity:
|
7
|
-
readonly entitySignatureType: types.
|
4
|
+
export type SubstitutedFunction = SubstitutedFunction_entity | SubstitutedFunction_typeMember;
|
5
|
+
export declare class SubstitutedFunction_entity implements ISubstitutedFunction {
|
6
|
+
readonly entity: FunctionEntity;
|
7
|
+
readonly entitySignatureType: types.FunctionType;
|
8
8
|
readonly substitutions: types.Substitutions;
|
9
9
|
readonly kind = "entity";
|
10
10
|
private readonly _signatureType;
|
11
|
-
constructor(entity:
|
12
|
-
getEntity():
|
11
|
+
constructor(entity: FunctionEntity, entitySignatureType: types.FunctionType, substitutions: types.Substitutions);
|
12
|
+
getEntity(): FunctionEntity;
|
13
13
|
getName(): Name;
|
14
|
-
getSignatureType(): types.
|
14
|
+
getSignatureType(): types.FunctionType;
|
15
15
|
getSubstitutions(): types.Substitutions;
|
16
16
|
getValueParameters(): readonly {
|
17
17
|
entity: ParameterVariableEntity;
|
@@ -19,15 +19,15 @@ export declare class SubstitutedMethod_entity implements ISubstitutedMethod {
|
|
19
19
|
}[];
|
20
20
|
isAsync(): boolean;
|
21
21
|
}
|
22
|
-
export declare class
|
22
|
+
export declare class SubstitutedFunction_typeMember implements ISubstitutedFunction {
|
23
23
|
readonly method: types.Method;
|
24
24
|
readonly substitutions: types.Substitutions;
|
25
25
|
readonly kind = "type-member";
|
26
26
|
private readonly _signatureType;
|
27
27
|
constructor(method: types.Method, substitutions: types.Substitutions);
|
28
|
-
getEntity():
|
28
|
+
getEntity(): FunctionEntity;
|
29
29
|
getName(): Name;
|
30
|
-
getSignatureType(): types.
|
30
|
+
getSignatureType(): types.FunctionType;
|
31
31
|
getSubstitutions(): types.Substitutions;
|
32
32
|
getValueParameters(): readonly {
|
33
33
|
entity: ParameterVariableEntity;
|
@@ -35,10 +35,10 @@ export declare class SubstitutedMethod_typeMember implements ISubstitutedMethod
|
|
35
35
|
}[];
|
36
36
|
isAsync(): boolean;
|
37
37
|
}
|
38
|
-
interface
|
39
|
-
getEntity():
|
38
|
+
interface ISubstitutedFunction {
|
39
|
+
getEntity(): FunctionEntity;
|
40
40
|
getName(): Name;
|
41
|
-
getSignatureType(): types.
|
41
|
+
getSignatureType(): types.FunctionType;
|
42
42
|
getSubstitutions(): types.Substitutions;
|
43
43
|
getValueParameters(): readonly {
|
44
44
|
entity: ParameterVariableEntity;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
|
-
import {
|
2
|
+
import { FunctionEntity, NamedTypeEntity, PackageAliasEntity } from '../entities/index.js';
|
3
3
|
import { Tag } from '../tree/index.js';
|
4
4
|
import * as types from '../types/index.js';
|
5
|
-
import {
|
5
|
+
import { AccessedFunction } from './AccessedFunction.js';
|
6
6
|
import { FoundAnonymousDeclaration, FoundNamedDeclaration } from './FoundDeclaration.js';
|
7
7
|
import { PackageNameTreeNode } from './ImportedPackageNameTree.js';
|
8
8
|
import { Analyzer } from './index.js';
|
@@ -19,9 +19,9 @@ export declare class Resolver {
|
|
19
19
|
private resolveNameInPackage;
|
20
20
|
private resolveTypeOverload;
|
21
21
|
private resolveTagType;
|
22
|
-
private
|
23
|
-
private
|
24
|
-
private
|
22
|
+
private resolveTagFunction;
|
23
|
+
private createAccessedFunction;
|
24
|
+
private resolveFunctionOverload;
|
25
25
|
}
|
26
26
|
export declare class ResolutionResult {
|
27
27
|
readonly meaning: Meaning;
|
@@ -30,7 +30,7 @@ export declare class ResolutionResult {
|
|
30
30
|
readonly ambiguousDeclarations?: readonly WithLocalization<EntityOrPackageNameTreeNode>[] | undefined;
|
31
31
|
constructor(meaning: Meaning, resolvedQualifiers: readonly ResolvedQualifier[], diagnostic?: Diagnostic | undefined, ambiguousDeclarations?: readonly WithLocalization<EntityOrPackageNameTreeNode>[] | undefined);
|
32
32
|
}
|
33
|
-
export type Meaning = Meaning_tagType |
|
33
|
+
export type Meaning = Meaning_tagType | Meaning_tagFunction | Meaning_unresolved;
|
34
34
|
declare class Meaning_tagType {
|
35
35
|
readonly type: types.Type;
|
36
36
|
readonly candidates: readonly FoundAnonymousDeclaration<types.Constructor>[];
|
@@ -39,17 +39,17 @@ declare class Meaning_tagType {
|
|
39
39
|
get singleSuitableConstructor(): FoundAnonymousDeclaration<types.Constructor> | undefined;
|
40
40
|
constructor(type: types.Type, candidates: readonly FoundAnonymousDeclaration<types.Constructor>[], suitableConstructors: readonly FoundAnonymousDeclaration<types.Constructor>[]);
|
41
41
|
}
|
42
|
-
declare class
|
43
|
-
readonly candidates: readonly FoundNamedDeclaration<
|
44
|
-
readonly
|
45
|
-
readonly kind = "tag-
|
46
|
-
get
|
47
|
-
constructor(candidates: readonly FoundNamedDeclaration<
|
42
|
+
declare class Meaning_tagFunction {
|
43
|
+
readonly candidates: readonly FoundNamedDeclaration<AccessedFunction>[];
|
44
|
+
readonly suitableFunctions: readonly FoundNamedDeclaration<AccessedFunction>[];
|
45
|
+
readonly kind = "tag-function";
|
46
|
+
get singleSuitableFunction(): FoundNamedDeclaration<AccessedFunction> | undefined;
|
47
|
+
constructor(candidates: readonly FoundNamedDeclaration<AccessedFunction>[], suitableFunctions: readonly FoundNamedDeclaration<AccessedFunction>[]);
|
48
48
|
}
|
49
49
|
declare class Meaning_unresolved {
|
50
50
|
readonly kind = "unresolved";
|
51
51
|
}
|
52
|
-
export type ResolvedQualifier = ResolvedQualifier_packageNameSegment | ResolvedQualifier_packageAlias | ResolvedQualifier_type |
|
52
|
+
export type ResolvedQualifier = ResolvedQualifier_packageNameSegment | ResolvedQualifier_packageAlias | ResolvedQualifier_type | ResolvedQualifier_function;
|
53
53
|
export declare class ResolvedQualifier_packageNameSegment {
|
54
54
|
readonly packageTreeNode: PackageNameTreeNode;
|
55
55
|
readonly kind = "package-name-segment";
|
@@ -67,11 +67,11 @@ export declare class ResolvedQualifier_type {
|
|
67
67
|
get singleSuitableType(): FoundNamedDeclaration<NamedTypeEntity> | undefined;
|
68
68
|
constructor(candidates: readonly FoundNamedDeclaration<NamedTypeEntity>[], suitableTypes: readonly FoundNamedDeclaration<NamedTypeEntity>[]);
|
69
69
|
}
|
70
|
-
export declare class
|
71
|
-
readonly candidates: readonly FoundNamedDeclaration<
|
72
|
-
readonly
|
73
|
-
readonly kind = "
|
74
|
-
get
|
75
|
-
constructor(candidates: readonly FoundNamedDeclaration<
|
70
|
+
export declare class ResolvedQualifier_function {
|
71
|
+
readonly candidates: readonly FoundNamedDeclaration<FunctionEntity>[];
|
72
|
+
readonly suitableFunctions: readonly FoundNamedDeclaration<FunctionEntity>[];
|
73
|
+
readonly kind = "function";
|
74
|
+
get singleSuitableFunction(): FoundNamedDeclaration<FunctionEntity> | undefined;
|
75
|
+
constructor(candidates: readonly FoundNamedDeclaration<FunctionEntity>[], suitableFunctions: readonly FoundNamedDeclaration<FunctionEntity>[]);
|
76
76
|
}
|
77
77
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ParameterVariableEntity } from '../entities/index.js';
|
2
2
|
import * as types from '../types/index.js';
|
3
|
-
import {
|
4
|
-
export type Tag = TagType |
|
3
|
+
import { AccessedFunction } from './AccessedFunction.js';
|
4
|
+
export type Tag = TagType | TagFunction;
|
5
5
|
declare abstract class TagBase {
|
6
6
|
readonly argumentByParameter: ReadonlyMap<ParameterVariableEntity, TagArgument>;
|
7
7
|
private readonly _argumentByName;
|
@@ -14,10 +14,10 @@ export declare class TagType extends TagBase {
|
|
14
14
|
readonly constructor_: types.Constructor;
|
15
15
|
constructor(type: types.Type, constructor_: types.Constructor, argumentByParameter: ReadonlyMap<ParameterVariableEntity, TagArgument>);
|
16
16
|
}
|
17
|
-
export declare class
|
18
|
-
readonly kind = "
|
19
|
-
readonly
|
20
|
-
constructor(
|
17
|
+
export declare class TagFunction extends TagBase {
|
18
|
+
readonly kind = "function";
|
19
|
+
readonly func: AccessedFunction;
|
20
|
+
constructor(func: AccessedFunction, argumentByParameter: ReadonlyMap<ParameterVariableEntity, TagArgument>);
|
21
21
|
}
|
22
22
|
export type TagArgument = TagArgument_string | TagArgument_numeric | TagArgument_boolean | TagArgument_invalid;
|
23
23
|
export declare class TagArgument_string {
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { Entity,
|
1
|
+
import { Entity, FunctionEntity, PackageEntity, StructuredTypeEntity, 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';
|
5
|
-
import { Tag,
|
5
|
+
import { Tag, TagFunction, TagType } from './Tags.js';
|
6
6
|
type TextToken = tree.Token<tree.TokenKind.TextLiteral> | tree.Token<tree.TokenKind.TextTemplateHead> | tree.Token<tree.TokenKind.TextTemplatePart> | tree.Token<tree.TokenKind.TextTemplateTail>;
|
7
7
|
export declare function getUnescapedTextFromTextToken(token: TextToken): string;
|
8
8
|
export declare function unwrapParenthesizedExpressions(expression: tree.Expression): tree.Expression;
|
@@ -11,7 +11,7 @@ export declare function unaliasType(type: types.Type): types.Type;
|
|
11
11
|
export declare function unaliasType(type: types.Type | undefined): types.Type | undefined;
|
12
12
|
export declare function getPackageContainingEntity(entity: Entity): PackageEntity;
|
13
13
|
export declare function findTag(tagTypeEntity: StructuredTypeEntity, tags: readonly Tag[]): TagType | undefined;
|
14
|
-
export declare function findTag(
|
14
|
+
export declare function findTag(tagFunctionEntity: FunctionEntity, tags: readonly Tag[]): TagFunction | undefined;
|
15
15
|
export declare function getRequiredTypeParameterCount(typeParameters: readonly TypeParameterEntity[]): number;
|
16
16
|
export declare function flattenPackageMemberDeclarationList(list: tree.PackageMemberDeclarationList): Iterable<Exclude<tree.PackageMemberDeclaration, tree.PackageMemberGroupDeclaration>>;
|
17
17
|
export declare function flattenTypeMemberDeclarationList(list: tree.TypeMemberDeclarationList): Iterable<Exclude<tree.TypeMemberDeclaration, tree.TypeMemberGroupDeclaration>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
|
-
import { AliasTypeEntity, StructuredTypeEntity,
|
2
|
+
import { AliasTypeEntity, StructuredTypeEntity, MethodEntity } from '../entities/index.js';
|
3
3
|
export declare class WellKnownDeclarationsLoadError extends Error {
|
4
4
|
readonly diagnostic: Diagnostic;
|
5
5
|
constructor(diagnostic: Diagnostic);
|
@@ -16,7 +16,7 @@ export declare class WellKnownDeclarations {
|
|
16
16
|
none: StructuredTypeEntity;
|
17
17
|
enumerable: StructuredTypeEntity;
|
18
18
|
enumerator: StructuredTypeEntity;
|
19
|
-
enumeratorMethod:
|
19
|
+
enumeratorMethod: MethodEntity;
|
20
20
|
array: StructuredTypeEntity;
|
21
21
|
readonlyArray: StructuredTypeEntity;
|
22
22
|
map: StructuredTypeEntity;
|
@@ -27,11 +27,11 @@ export declare class WellKnownDeclarations {
|
|
27
27
|
reference: StructuredTypeEntity;
|
28
28
|
task: StructuredTypeEntity;
|
29
29
|
error: StructuredTypeEntity;
|
30
|
-
|
30
|
+
func: StructuredTypeEntity;
|
31
31
|
parameterArray: AliasTypeEntity;
|
32
32
|
defaultImport: StructuredTypeEntity;
|
33
33
|
realName: StructuredTypeEntity;
|
34
34
|
builtIntoPlatform: StructuredTypeEntity;
|
35
|
-
|
35
|
+
fieldProxy: StructuredTypeEntity;
|
36
36
|
javaScriptDecorator: StructuredTypeEntity;
|
37
37
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as tree from '../../tree/index.js';
|
2
2
|
export declare function isNarrowableExpression(node: tree.Node): node is tree.Expression;
|
3
|
-
export type NarrowableReferenceExpression = tree.IdentifierExpression | tree.
|
3
|
+
export type NarrowableReferenceExpression = tree.IdentifierExpression | tree.MemberAccessExpression | tree.ObjectExpression;
|
4
4
|
export declare function isNarrowableReferenceExpression(node: tree.Node): node is NarrowableReferenceExpression;
|
5
5
|
export declare function unwrapExpressionForNarrowableReferenceCheck(node: tree.Expression): tree.Expression;
|
package/build/types/api/Api.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from '../analysis/
|
1
|
+
export * from '../analysis/AccessedFunction.js';
|
2
2
|
export * from '../analysis/AnalyzedTranslationPackage.js';
|
3
3
|
export * from '../analysis/Analyzer.js';
|
4
4
|
export type { Meaning as AutotypeCallExpressionMeaning } from '../analysis/AutotypeCallExpressionMeaning.js';
|
@@ -19,12 +19,12 @@ export * from '../analysis/Lookup.js';
|
|
19
19
|
export * from '../analysis/NodeTypeUtils.js';
|
20
20
|
export type { Meaning as ObjectExpressionMeaning } from '../analysis/ObjectExpressionMeaning.js';
|
21
21
|
export * from '../analysis/PackageMemberLookup.js';
|
22
|
-
export type { Meaning as
|
22
|
+
export type { Meaning as MemberAccessExpressionMeaning, ResolutionResult as MemberAccessExpressionResolutionResult } from '../analysis/MemberAccessExpressionMeaning.js';
|
23
23
|
export type { IScope, NamedDeclaration, TypeOrContainerWithTypes } from '../analysis/Scope.js';
|
24
24
|
export * from '../analysis/SemanticContext.js';
|
25
25
|
export * from '../analysis/SourceFileMembers.js';
|
26
26
|
export * from '../analysis/SourcePackageDependencyGraph.js';
|
27
|
-
export * from '../analysis/
|
27
|
+
export * from '../analysis/SubstitutedFunction.js';
|
28
28
|
export type { Meaning as TagMeaning } from '../analysis/TagMeaning.js';
|
29
29
|
export * from '../analysis/Tags.js';
|
30
30
|
export * from '../analysis/TargetTypeHint.js';
|
@@ -1,133 +1,132 @@
|
|
1
1
|
export declare enum DiagnosticCode {
|
2
|
-
UnterminatedToken =
|
3
|
-
UnterminatedMultiLineComment =
|
4
|
-
UnterminatedNumber =
|
5
|
-
UnterminatedTextOrTextTemplate =
|
6
|
-
UnterminatedQuotedIdentifier =
|
7
|
-
IdentifierExpected =
|
8
|
-
TypeNameExpected =
|
9
|
-
PackageNameExpected =
|
10
|
-
TypeMemberDeclarationExpected =
|
11
|
-
|
12
|
-
EnumerationVariableDeclarationExpected =
|
13
|
-
StatementExpected =
|
14
|
-
ExpressionExpected =
|
15
|
-
BaseTypeNameExpected =
|
16
|
-
TypeSpecifierExpected =
|
17
|
-
TypeBodyExpected =
|
18
|
-
|
19
|
-
IndexedAccessArgumentExpected =
|
20
|
-
TagArgumentExpected =
|
21
|
-
TypeParameterExpected =
|
22
|
-
ParameterExpected =
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
CannotDetermineTargetTypeToCallTheConstructor =
|
68
|
-
AmbiguousAccess =
|
69
|
-
AmbiguousAccess0 =
|
70
|
-
CanNotAssignValueToContextVariable =
|
71
|
-
ExpectedPackageNameOrAliasButFoundType =
|
72
|
-
TypeExpected =
|
73
|
-
NameOfTypeOrPackageNotFound =
|
74
|
-
TypeIsNotATag =
|
75
|
-
ExpressionOfType0CanNotBeUsedForEnumeration =
|
76
|
-
Operator0IsNotDefinedForTypes1And2 =
|
77
|
-
Operator0IsNotDefinedForType1 =
|
78
|
-
VariantMustHaveAssociatedValue =
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
Declaration0NotFoundInStandardPackage1 = 130
|
2
|
+
UnterminatedToken = 1000,
|
3
|
+
UnterminatedMultiLineComment = 1001,
|
4
|
+
UnterminatedNumber = 1002,
|
5
|
+
UnterminatedTextOrTextTemplate = 1003,
|
6
|
+
UnterminatedQuotedIdentifier = 1004,
|
7
|
+
IdentifierExpected = 101,
|
8
|
+
TypeNameExpected = 102,
|
9
|
+
PackageNameExpected = 103,
|
10
|
+
TypeMemberDeclarationExpected = 104,
|
11
|
+
PackageMemberDeclarationExpected = 105,
|
12
|
+
EnumerationVariableDeclarationExpected = 106,
|
13
|
+
StatementExpected = 107,
|
14
|
+
ExpressionExpected = 108,
|
15
|
+
BaseTypeNameExpected = 109,
|
16
|
+
TypeSpecifierExpected = 110,
|
17
|
+
TypeBodyExpected = 111,
|
18
|
+
FunctionCallArgumentExpected = 112,
|
19
|
+
IndexedAccessArgumentExpected = 113,
|
20
|
+
TagArgumentExpected = 114,
|
21
|
+
TypeParameterExpected = 115,
|
22
|
+
ParameterExpected = 116,
|
23
|
+
CatchClauseOrFinallyClauseExpected = 117,
|
24
|
+
PackageImportExpected = 118,
|
25
|
+
DeclarationOrPackageImportExpected = 119,
|
26
|
+
Expected0But1Found = 120,
|
27
|
+
InvalidTextTemplateLiteral = 121,
|
28
|
+
ModifierListExpected = 122,
|
29
|
+
RunKeywordCreationKeywordOrModifierListExpected = 123,
|
30
|
+
HidingLevelExpected = 124,
|
31
|
+
ParameterNameCanContainOnlyOneBackQuote = 125,
|
32
|
+
FieldNameCanContainOnlyTwoBackQuote = 126,
|
33
|
+
BackQuotesCanOnlyBeUsedInParameterAndFieldNames = 127,
|
34
|
+
NameThatMatchesKeywordMustBeEnclosedInSingleQuotes = 128,
|
35
|
+
TagNameExpected = 129,
|
36
|
+
TypeMemberTranslationExpected = 130,
|
37
|
+
TranslationExpected = 131,
|
38
|
+
TypeCannotBeUsedAsValue = 2001,
|
39
|
+
PackageNameCannotBeUsedAsValue = 2002,
|
40
|
+
PackageAliasCannotBeUsedAsValue = 2003,
|
41
|
+
PackageMemberOrPackageNotFound = 2004,
|
42
|
+
PackageMemberNotFound = 2005,
|
43
|
+
TypeMemberNotFound = 2006,
|
44
|
+
ConstructorNotFound = 2007,
|
45
|
+
IndexerOfTheSpecifiedTypeNotFound = 2008,
|
46
|
+
DereferenceOperatorOfTheSpecifiedTypeNotFound = 2009,
|
47
|
+
IndexerNotFound = 2010,
|
48
|
+
CannotAccessStaticMembersOnTypeParameter = 2011,
|
49
|
+
CannotCreateInstanceOfAspect = 2012,
|
50
|
+
CannotCreateInstanceOfTypeParameter = 2013,
|
51
|
+
CannotCreateInstanceOfUnresolvedType = 2014,
|
52
|
+
ExpressionIsNotCallable = 2015,
|
53
|
+
ParameterForPositionalArgumentNotFound = 2016,
|
54
|
+
ParameterWithGivenNameNotFound = 2017,
|
55
|
+
NamedArgumentExpectedButPositionalArgumentFound = 2018,
|
56
|
+
ArgumentForParameterAlreadyAssigned = 2019,
|
57
|
+
NotAllRequiredParametersAreProvidedWithArguments = 2020,
|
58
|
+
UnknownVariable = 2021,
|
59
|
+
UnknownType = 2022,
|
60
|
+
TypeWithArity0NotFound = 2023,
|
61
|
+
VariableUsedBeforeBeingDeclared = 2024,
|
62
|
+
Type0IsNotAssignableToType1 = 2025,
|
63
|
+
VariableNotFound = 2026,
|
64
|
+
FunctionNotFound = 2027,
|
65
|
+
UnknownPackage = 2028,
|
66
|
+
CannotAssignValueToExpression = 2029,
|
67
|
+
CannotDetermineTargetTypeToCallTheConstructor = 2030,
|
68
|
+
AmbiguousAccess = 2031,
|
69
|
+
AmbiguousAccess0 = 2032,
|
70
|
+
CanNotAssignValueToContextVariable = 2033,
|
71
|
+
ExpectedPackageNameOrAliasButFoundType = 2034,
|
72
|
+
TypeExpected = 2035,
|
73
|
+
NameOfTypeOrPackageNotFound = 2036,
|
74
|
+
TypeIsNotATag = 2037,
|
75
|
+
ExpressionOfType0CanNotBeUsedForEnumeration = 2038,
|
76
|
+
Operator0IsNotDefinedForTypes1And2 = 2039,
|
77
|
+
Operator0IsNotDefinedForType1 = 2040,
|
78
|
+
VariantMustHaveAssociatedValue = 2041,
|
79
|
+
TranslationsCanOnlyBeDeclaredInTranslationPackage = 2042,
|
80
|
+
UnknownTranslatedPackage0 = 2043,
|
81
|
+
BaseCannotBeUsedInThisContext = 2044,
|
82
|
+
OverriddenMethodNotFound = 2045,
|
83
|
+
ObjectCannotBeUsedInThisContext = 2046,
|
84
|
+
BaseCannotBeUsedAsAnExpressionInItself = 2047,
|
85
|
+
InterfacePackageMustNotContainImplementation = 2048,
|
86
|
+
InterfacePackageVariablesMustNotHaveInitializers = 2049,
|
87
|
+
BodyIsMissing = 2050,
|
88
|
+
AbstractTypeMembersMustNotHaveBody = 2051,
|
89
|
+
AbstractVariablesMustNotHaveInitializers = 2052,
|
90
|
+
PackageIsAlreadyImportedInAnotherLanguage = 2053,
|
91
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 2054,
|
92
|
+
FunctionsUsingYieldStatementCanNotReturnValue = 2055,
|
93
|
+
YieldStatementCanNotBeUsedInAnonymousFunctions = 2056,
|
94
|
+
YieldStatementCanNotBeUsedHere = 2057,
|
95
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 2058,
|
96
|
+
YieldStatementCanNotBeUsedInTryStatementThatHasCatchClause = 2059,
|
97
|
+
YieldStatementCanNotBeUsedInFinallyClause = 2060,
|
98
|
+
SubprogramMustReturnValue = 2061,
|
99
|
+
ResultVariableCanNotBeUsedInFunctionsUsingYieldStatement = 2062,
|
100
|
+
TypeAliasReferencesItself = 2063,
|
101
|
+
TypeParameterHasCircularConstraint = 2064,
|
102
|
+
BaseTypeCausesInheritanceCycle = 2065,
|
103
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 2066,
|
104
|
+
Expected0TypeArguments = 2067,
|
105
|
+
ExpectedFrom0To1TypeArguments = 2068,
|
106
|
+
Type0IsNotAssignableToConstraint1 = 2069,
|
107
|
+
VariableIsDeclaredButNotUsed = 2070,
|
108
|
+
DefaultConstructorArgumentsMustBeNamed = 2071,
|
109
|
+
IncorrectBodyOfRedefinableAliasTypeMethod = 2072,
|
110
|
+
TheFollowingDeclarationsAreNotTranslated0 = 2073,
|
111
|
+
TheFollowingDeclarationAreNotTranslated0And1More = 2074,
|
112
|
+
OperatorFunctionMustNotBeStatic = 2075,
|
113
|
+
OperatorFunction0MustNotHaveParameters = 2076,
|
114
|
+
OperatorFunction0MustHaveOneParameter = 2077,
|
115
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 2078,
|
116
|
+
CorrespondingRedefinableTypeMemberNotFound = 2079,
|
117
|
+
ConstructorCanNotBeRedefinable = 2080,
|
118
|
+
ConstructorCanNotBeRedefined = 2081,
|
119
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 2082,
|
120
|
+
TagNotFound = 2083,
|
121
|
+
TypeOrFunctionNameExpected = 2084,
|
122
|
+
PackageNameOrAliasExpected = 2085,
|
123
|
+
ExpressionCanBeNone = 2086,
|
124
|
+
NoneAwareAccessCanNotBeUsedOnTheLeftHandSideOfAssignmentStatement = 2087,
|
125
|
+
UnreachableCode = 2088,
|
126
|
+
CanNotFindTsLibDirectoryBaseSearchPaths0 = 2089,
|
127
|
+
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 2090,
|
128
|
+
ProgramWithoutMainPackageCanNotBeCompiled = 2091,
|
129
|
+
JsonConfigurationValidationError = 2092,
|
130
|
+
StandardPackage0NotFound = 2093,
|
131
|
+
Declaration0NotFoundInStandardPackage1 = 2094
|
133
132
|
}
|
@@ -9,13 +9,13 @@ export declare class EmitPhaseName {
|
|
9
9
|
static ofExtensionMethodTargetParameter(locale: PackageLocale): string;
|
10
10
|
static ofGlobalVariableGetter(locale: PackageLocale, originalName: string): string;
|
11
11
|
static ofGlobalVariableSetter(locale: PackageLocale, originalName: string): string;
|
12
|
-
static
|
13
|
-
static
|
14
|
-
static
|
15
|
-
static
|
16
|
-
static
|
17
|
-
static
|
18
|
-
static
|
12
|
+
static ofFieldGetter(locale: PackageLocale, originalName: string): string;
|
13
|
+
static ofFieldSetter(locale: PackageLocale, originalName: string): string;
|
14
|
+
static ofIndexedElementGetter(locale: PackageLocale): string;
|
15
|
+
static ofIndexedElementSetter(locale: PackageLocale): string;
|
16
|
+
static ofDereferencedVariable(locale: PackageLocale): string;
|
17
|
+
static ofDereferencedVariableGetter(locale: PackageLocale): string;
|
18
|
+
static ofDereferencedVariableSetter(locale: PackageLocale): string;
|
19
19
|
static ofTypeBackingVariable(locale: PackageLocale, originalName: string): string;
|
20
20
|
static ofTempVariable(locale: PackageLocale, id: number): string;
|
21
21
|
static ofDefaultImport(locale: PackageLocale, id: number): string;
|
@@ -31,7 +31,7 @@ export declare class EmitPhaseName {
|
|
31
31
|
static ofPlainObjectMethodResultNewThisProperty(locale: PackageLocale): string;
|
32
32
|
static ofPlainObjectMethodResultResultProperty(locale: PackageLocale): string;
|
33
33
|
static ofProxyVariable(locale: PackageLocale, originalName: string): string;
|
34
|
-
static
|
34
|
+
static ofConstructor(locale: PackageLocale): string;
|
35
35
|
static ofTypeExtension(locale: PackageLocale, extendedTypeName: string): string;
|
36
36
|
static ofOperator(locale: PackageLocale, kind: OperatorKind): string;
|
37
37
|
static ofSetterParameter(locale: PackageLocale): string;
|
@@ -20,9 +20,9 @@ export declare class Emitter {
|
|
20
20
|
emitToString(): string;
|
21
21
|
private createEmitterPackageFromSource;
|
22
22
|
private enumerateEmittingSourcePackages;
|
23
|
-
private
|
24
|
-
private
|
25
|
-
private
|
23
|
+
private createPackageWithMainFunction;
|
24
|
+
private createMainFunction;
|
25
|
+
private createMainFunctionCall;
|
26
26
|
private createUniqueNamesForPackageMembers;
|
27
27
|
private setOutputUris;
|
28
28
|
private addImports;
|
@@ -59,7 +59,7 @@ export interface SourceMapOptions {
|
|
59
59
|
useAbsolutePaths?: boolean;
|
60
60
|
includeSourcesContent?: boolean;
|
61
61
|
justApplicationCode?: boolean;
|
62
|
-
|
62
|
+
mapMainFunctionCallToProgramFirstLine?: boolean;
|
63
63
|
}
|
64
64
|
export declare enum SourceMapMode {
|
65
65
|
Linked = "linked",
|