@artel/artc 0.6.25224 → 0.6.25226
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-62KHK23H.js → chunk-MHPX52MT.js} +3 -3
- package/build/{chunk-24QZJOMF.js → chunk-VRQPLLYS.js} +5414 -5323
- package/build/{chunk-Y6DODJCG.js → chunk-YNR2KYMJ.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 +125 -126
- 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
@@ -6,7 +6,7 @@ export declare class HoverService {
|
|
6
6
|
getHover(analyzer: Analyzer, sourceFile: SourceFile, offset: number): Hover | undefined;
|
7
7
|
private createHoverForEntity;
|
8
8
|
private createHoverAtReference;
|
9
|
-
private
|
9
|
+
private createHoverAtAccessedFunction;
|
10
10
|
}
|
11
11
|
export declare class Hover {
|
12
12
|
private readonly _contents;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { AccessedFunction } from '../analysis/AccessedFunction.js';
|
2
2
|
import { MatchResultValueParameter } from '../analysis/ArgumentToParameterMatchResult.js';
|
3
3
|
import { PackageNameTreeNode } from '../analysis/ImportedPackageNameTree.js';
|
4
4
|
import { Analyzer } from '../analysis/index.js';
|
5
5
|
import { Translation, WithLocalization } from '../analysis/Localization.js';
|
6
|
-
import {
|
6
|
+
import { IndexedElementAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
|
7
7
|
import { AccessKind, ReadonlyNonEmptyArray } from '../common/index.js';
|
8
|
-
import { AliasTypeEntity, Entity,
|
8
|
+
import { AliasTypeEntity, Entity, FunctionEntity, FunctionTypeEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../entities/index.js';
|
9
9
|
import * as tree from '../tree/index.js';
|
10
10
|
import * as types from '../types/index.js';
|
11
11
|
import { TokenOrKeyword } from './TreeUtils.js';
|
@@ -13,18 +13,18 @@ export declare class NodeSemanticInfoService {
|
|
13
13
|
static ofTokenOrKeyword(analyzer: Analyzer, tokenOrKeyword: TokenOrKeyword, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
14
14
|
static ofDefaultMatchExpression(analyzer: Analyzer, node: tree.DefaultMatchExpression): NodeSemanticInfo | undefined;
|
15
15
|
static ofNonKeywordIdentifier(analyzer: Analyzer, node: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
16
|
-
static ofProperty(analyzer: Analyzer, node: tree.
|
16
|
+
static ofProperty(analyzer: Analyzer, node: tree.MemberAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
17
17
|
static ofQualifiedNameQualifier(analyzer: Analyzer, node: tree.QualifiedName, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
18
18
|
static ofNamedTypeSpecifierNameQualifier(analyzer: Analyzer, node: tree.NamedTypeSpecifier, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
19
19
|
static ofTagNameQualifier(analyzer: Analyzer, node: tree.Tag, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
20
20
|
static ofIdentifierExpression(analyzer: Analyzer, node: tree.IdentifierExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
21
|
-
static
|
22
|
-
static
|
21
|
+
static ofConstructorDeclaration(analyzer: Analyzer, node: tree.ConstructorDeclaration): NodeSemanticInfo;
|
22
|
+
static ofIndexedElementAccessorDeclaration(analyzer: Analyzer, node: IndexedElementAccessorDeclaration): NodeSemanticInfo;
|
23
23
|
static ofIndexedAccessExpressionOperator(analyzer: Analyzer, node: tree.IndexedAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
24
24
|
static ofAssignmentStatementOperator(analyzer: Analyzer, node: tree.AssignmentStatement, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
25
25
|
static ofBinaryExpressionOperator(analyzer: Analyzer, node: tree.BinaryExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
26
26
|
static ofPrefixUnaryExpressionOperator(analyzer: Analyzer, node: tree.PrefixUnaryExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
27
|
-
static ofDereferenceOperatorDeclaration(analyzer: Analyzer, node: tree.
|
27
|
+
static ofDereferenceOperatorDeclaration(analyzer: Analyzer, node: tree.DereferencedVariableGetterDeclaration | tree.DereferencedVariableSetterDeclaration): NodeSemanticInfo | undefined;
|
28
28
|
static ofDereferenceExpressionOperator(analyzer: Analyzer, node: tree.DereferenceExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
29
29
|
static ofAutotypeCallExpression(analyzer: Analyzer, node: tree.AutotypeCallExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
30
30
|
static ofObjectExpression(analyzer: Analyzer, node: tree.ObjectExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
@@ -54,7 +54,7 @@ export declare class ReferenceNodeSemanticInfo {
|
|
54
54
|
get firstBetterTargetWithFallback(): WithLocalization<ReferenceTarget>;
|
55
55
|
constructor(targets: ReadonlyNonEmptyArray<WithLocalization<ReferenceTarget>>, isAmbiguous: boolean, betterTargets?: ReadonlyNonEmptyArray<WithLocalization<ReferenceTarget>> | undefined);
|
56
56
|
}
|
57
|
-
export type ReferenceTarget = EntityReferenceTarget |
|
57
|
+
export type ReferenceTarget = EntityReferenceTarget | FieldReferenceTarget | TypeValueParameterReferenceTarget | ConstructorReferenceTarget | OperatorReferenceTarget | DereferenceOperatorReferenceTarget | AccessedFunctionReferenceTarget | IndexerReferenceTarget | MatchResultValueParameterReferenceTarget | PackageReferenceTarget | PackageNameTreeNodeReferenceTarget | TypeContextReferenceTarget;
|
58
58
|
export declare class EntityReferenceTarget {
|
59
59
|
readonly entity: Entity;
|
60
60
|
readonly accessKind: AccessKind;
|
@@ -62,7 +62,7 @@ export declare class EntityReferenceTarget {
|
|
62
62
|
readonly kind = "entity";
|
63
63
|
constructor(entity: Entity, accessKind: AccessKind, narrowedType?: types.Type | undefined);
|
64
64
|
}
|
65
|
-
export declare class
|
65
|
+
export declare class FieldReferenceTarget {
|
66
66
|
readonly variable: types.Variable;
|
67
67
|
readonly accessKind: AccessKind;
|
68
68
|
readonly narrowedType: types.Type | undefined;
|
@@ -75,21 +75,21 @@ export declare class TypeValueParameterReferenceTarget {
|
|
75
75
|
readonly kind = "type-value-parameter";
|
76
76
|
constructor(parameter: types.ValueParameter, accessKind: AccessKind);
|
77
77
|
}
|
78
|
-
export declare class
|
78
|
+
export declare class ConstructorReferenceTarget {
|
79
79
|
readonly constructor_: types.Constructor;
|
80
80
|
readonly kind = "type-constructor";
|
81
81
|
constructor(constructor_: types.Constructor);
|
82
82
|
}
|
83
|
-
export declare class
|
83
|
+
export declare class DereferenceOperatorReferenceTarget {
|
84
84
|
readonly operator: types.DereferenceOperator;
|
85
85
|
readonly accessKind: AccessKind;
|
86
86
|
readonly kind = "type-dereference-operator";
|
87
87
|
constructor(operator: types.DereferenceOperator, accessKind: AccessKind);
|
88
88
|
}
|
89
|
-
export declare class
|
90
|
-
readonly
|
91
|
-
readonly kind = "accessed-
|
92
|
-
constructor(
|
89
|
+
export declare class AccessedFunctionReferenceTarget {
|
90
|
+
readonly func: AccessedFunction;
|
91
|
+
readonly kind = "accessed-function";
|
92
|
+
constructor(func: AccessedFunction);
|
93
93
|
}
|
94
94
|
export declare class OperatorReferenceTarget {
|
95
95
|
readonly operator: types.Operator;
|
@@ -118,7 +118,7 @@ export declare class TypeContextReferenceTarget {
|
|
118
118
|
readonly kind = "type-context";
|
119
119
|
constructor(type: types.Type, typeContextKind: 'object' | 'base');
|
120
120
|
}
|
121
|
-
export declare class
|
121
|
+
export declare class IndexerReferenceTarget {
|
122
122
|
readonly indexer: types.Indexer;
|
123
123
|
readonly accessKind: AccessKind;
|
124
124
|
readonly kind = "type-indexer";
|
@@ -132,7 +132,7 @@ export declare class NameTranslationNodeSemanticInfo {
|
|
132
132
|
get firstTarget(): TranslationTargetEntity;
|
133
133
|
constructor(targets: ReadonlyNonEmptyArray<TranslationTargetEntity>, isAmbiguous: boolean, translation: Translation);
|
134
134
|
}
|
135
|
-
type TranslationTargetEntity = VariableEntity | VariantTypeEntity |
|
135
|
+
type TranslationTargetEntity = VariableEntity | VariantTypeEntity | FunctionEntity | TypeParameterEntity | FunctionTypeEntity | StructuredTypeEntity | AliasTypeEntity;
|
136
136
|
export declare class DefaultSwitchMatchNodeSemanticInfo {
|
137
137
|
readonly type: types.Type;
|
138
138
|
readonly kind = "default-switch-match";
|
@@ -5,7 +5,7 @@ export declare class SemanticTokensService {
|
|
5
5
|
getSemanticTokens(analyzer: Analyzer, sourceFile: SourceFile, cancellationToken: CancellationToken | undefined): Promise<SemanticToken[]>;
|
6
6
|
getSemanticTokensInRange(analyzer: Analyzer, sourceFile: SourceFile, range: Range, cancellationToken: CancellationToken | undefined): Promise<SemanticToken[]>;
|
7
7
|
private rangesOverlap;
|
8
|
-
private
|
8
|
+
private getSemanticTokenKindForFunctionEntity;
|
9
9
|
private isCapitalizedName;
|
10
10
|
}
|
11
11
|
export declare class SemanticToken {
|
@@ -23,16 +23,16 @@ export declare class SemanticTokenModifiers {
|
|
23
23
|
setCapitalized(value: boolean): this;
|
24
24
|
}
|
25
25
|
export declare const enum SemanticTokenKind {
|
26
|
-
|
26
|
+
FunctionBlockLiteralParameter = 0,
|
27
27
|
SpecialVariable = 1,
|
28
28
|
SpecialMethod = 2,
|
29
29
|
Variant = 3,
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
PackageFunction = 4,
|
31
|
+
NestedFunction = 5,
|
32
|
+
Method = 6,
|
33
33
|
Operator = 7
|
34
34
|
}
|
35
|
-
export declare const supportedSemanticTokens: readonly [SemanticTokenKind.
|
35
|
+
export declare const supportedSemanticTokens: readonly [SemanticTokenKind.FunctionBlockLiteralParameter, SemanticTokenKind.SpecialVariable, SemanticTokenKind.SpecialMethod, SemanticTokenKind.Variant, SemanticTokenKind.PackageFunction, SemanticTokenKind.NestedFunction, SemanticTokenKind.Method, SemanticTokenKind.Operator];
|
36
36
|
export declare const enum SemanticTokenModifierFlag {
|
37
37
|
Const = 1,
|
38
38
|
Declaration = 2,
|
@@ -23,20 +23,20 @@ export declare const enum ItemKind {
|
|
23
23
|
PackageVariable = 1,
|
24
24
|
PackageVariableGetter = 2,
|
25
25
|
PackageVariableSetter = 3,
|
26
|
-
|
26
|
+
PackageFunction = 4,
|
27
27
|
StructuredType = 5,
|
28
|
-
|
28
|
+
FunctionType = 6,
|
29
29
|
VariantType = 7,
|
30
30
|
InvalidType = 8,
|
31
31
|
Variant = 9,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
32
|
+
Constructor = 10,
|
33
|
+
Destructor = 11,
|
34
|
+
Field = 12,
|
35
|
+
FieldGetter = 13,
|
36
|
+
FieldSetter = 14,
|
37
|
+
Method = 15,
|
38
|
+
IndexedElementGetter = 16,
|
39
|
+
IndexedElementSetter = 17,
|
40
40
|
TypeParameter = 18,
|
41
|
-
|
41
|
+
NestedFunction = 19
|
42
42
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
2
|
import { SourceFile } from '../project/index.js';
|
3
|
-
import {
|
3
|
+
import { AnonymousFunctionTypeDeclaration, AnonymousStructuredTypeDeclaration, AnonymousVariantTypeDeclaration, PackageAliasTypeDeclaration, PackageFunctionTypeDeclaration, PackageStructuredTypeDeclaration, PackageVariantTypeDeclaration, TypeParameterDeclaration } from '../tree/index.js';
|
4
4
|
import { RangeLocation } from './Types.js';
|
5
5
|
export declare class TypeDefinitionService {
|
6
6
|
getTypeDefinition(analyzer: Analyzer, sourceFile: SourceFile, offset: number): RangeLocation | undefined;
|
7
7
|
private getTypeDefinitionAtIdentifier;
|
8
8
|
}
|
9
|
-
export type TypeDeclaration = PackageStructuredTypeDeclaration | AnonymousStructuredTypeDeclaration |
|
9
|
+
export type TypeDeclaration = PackageStructuredTypeDeclaration | AnonymousStructuredTypeDeclaration | PackageFunctionTypeDeclaration | AnonymousFunctionTypeDeclaration | PackageVariantTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | TypeParameterDeclaration;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { AccessedFunction } from '../../analysis/AccessedFunction.js';
|
2
2
|
import { Localization, WithLocalization } from '../../analysis/Localization.js';
|
3
3
|
import { Analyzer } from '../../analysis/index.js';
|
4
4
|
import { Name } from '../../common/index.js';
|
@@ -49,19 +49,19 @@ export declare class MatchedSignature {
|
|
49
49
|
readonly matchResult: SimplifiedArgumentToParameterMatchResult;
|
50
50
|
constructor(value: Signature, matchResult: SimplifiedArgumentToParameterMatchResult);
|
51
51
|
}
|
52
|
-
export type Signature =
|
53
|
-
export declare class
|
54
|
-
readonly kind = "accessed-
|
55
|
-
readonly
|
52
|
+
export type Signature = AccessedFunctionSignature | FunctionTypeSignature | ConstructorSignature | IndexerSignature;
|
53
|
+
export declare class AccessedFunctionSignature implements ISignature {
|
54
|
+
readonly kind = "accessed-function";
|
55
|
+
readonly func: WithLocalization<AccessedFunction>;
|
56
56
|
private readonly _valueParameters;
|
57
|
-
constructor(
|
57
|
+
constructor(func: WithLocalization<AccessedFunction>);
|
58
58
|
getValueParameters(): readonly ValueParameter[];
|
59
59
|
}
|
60
|
-
export declare class
|
61
|
-
readonly kind = "
|
62
|
-
readonly
|
60
|
+
export declare class FunctionTypeSignature implements ISignature {
|
61
|
+
readonly kind = "function-type";
|
62
|
+
readonly functionType: types.FunctionType;
|
63
63
|
private readonly _valueParameters;
|
64
|
-
constructor(
|
64
|
+
constructor(functionType: types.FunctionType);
|
65
65
|
getValueParameters(): readonly ValueParameter[];
|
66
66
|
}
|
67
67
|
export declare class ConstructorSignature implements ISignature {
|
@@ -16,6 +16,6 @@ export declare class TypeParameterSignatureHelpProvider {
|
|
16
16
|
private getSignaturesForNamedTypeSpecifier;
|
17
17
|
private getSignaturesForTag;
|
18
18
|
private getSignaturesForGenericSpecializationExpression;
|
19
|
-
private
|
19
|
+
private getSignatureForSubstitutedFunction;
|
20
20
|
private getSignatureForNamedType;
|
21
21
|
}
|
@@ -12,22 +12,22 @@ export declare class EntityToSyntax {
|
|
12
12
|
private convertNamedPackageMember;
|
13
13
|
private convertPackageType;
|
14
14
|
private convertPackageVariable;
|
15
|
-
private
|
15
|
+
private convertPackageFunction;
|
16
16
|
private convertPackageStructuredType;
|
17
17
|
private convertPackageAliasType;
|
18
18
|
private convertPackageVariantType;
|
19
|
-
private
|
19
|
+
private convertPackageFunctionType;
|
20
20
|
private convertTypeEntityMembers;
|
21
|
-
private
|
22
|
-
private
|
23
|
-
private
|
24
|
-
private
|
25
|
-
private
|
21
|
+
private convertField;
|
22
|
+
private convertMethod;
|
23
|
+
private convertConstructor;
|
24
|
+
private convertDestructor;
|
25
|
+
private convertIndexer;
|
26
26
|
private convertVariant;
|
27
27
|
private createStructuredTypeDeclarationBody;
|
28
28
|
private createAliasTypeDeclarationBody;
|
29
29
|
private createVariantTypeDeclarationBody;
|
30
|
-
private
|
30
|
+
private createFunctionTypeDeclarationBody;
|
31
31
|
private convertTypeParameters;
|
32
32
|
private convertTypeParameter;
|
33
33
|
private convertValueParameters;
|
@@ -38,7 +38,7 @@ export declare class EntityToSyntax {
|
|
38
38
|
private convertType;
|
39
39
|
private convertStructuredType;
|
40
40
|
private convertVariantType;
|
41
|
-
private
|
41
|
+
private convertFunctionType;
|
42
42
|
private convertAliasType;
|
43
43
|
private convertParameterType;
|
44
44
|
private convertUnionType;
|
@@ -8,154 +8,152 @@ export declare enum NodeKind {
|
|
8
8
|
PackageGroupImportDirective = 6,
|
9
9
|
PackageImportList = 7,
|
10
10
|
PackageImport = 8,
|
11
|
-
|
11
|
+
PackageName = 9,
|
12
12
|
NamedTypeSpecifier = 10,
|
13
13
|
UnionTypeSpecifier = 11,
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
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
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
TypeParameterList = 157,
|
160
|
-
TypeAnnotation = 158
|
14
|
+
IntersectionTypeSpecifier = 12,
|
15
|
+
ParenthesizedTypeSpecifier = 13,
|
16
|
+
NullableTypeSpecifier = 14,
|
17
|
+
AnonymousTypeSpecifier = 15,
|
18
|
+
InvalidTypeSpecifier = 16,
|
19
|
+
AnonymousFunctionTypeDeclaration = 17,
|
20
|
+
AnonymousStructuredTypeDeclaration = 18,
|
21
|
+
AnonymousVariantTypeDeclaration = 19,
|
22
|
+
TopLevelTranslationList = 20,
|
23
|
+
TranslationsDeclaration = 21,
|
24
|
+
PackageAliasTypeDeclaration = 22,
|
25
|
+
AliasTypeDeclarationBody = 23,
|
26
|
+
PackageMemberGroupDeclaration = 24,
|
27
|
+
PackageConstructorDeclaration = 25,
|
28
|
+
PackageEntryPointDeclaration = 26,
|
29
|
+
PackageFunctionDeclaration = 27,
|
30
|
+
PackageFunctionTypeDeclaration = 28,
|
31
|
+
FunctionTypeDeclarationBody = 29,
|
32
|
+
BaseTypeList = 30,
|
33
|
+
TypeMemberDeclarationList = 31,
|
34
|
+
TypeMemberDeclarationBlock = 32,
|
35
|
+
PackageStructuredTypeDeclaration = 33,
|
36
|
+
StructuredTypeDeclarationBody = 34,
|
37
|
+
PackageVariableDeclaration = 35,
|
38
|
+
PackageVariableGetterDeclaration = 36,
|
39
|
+
PackageVariableSetterDeclaration = 37,
|
40
|
+
PackageVariantTypeDeclaration = 38,
|
41
|
+
VariantTypeDeclarationBody = 39,
|
42
|
+
TypeExtensionDeclaration = 40,
|
43
|
+
ExtendedTypeClauseCommaList = 41,
|
44
|
+
ExtendedTypeClause = 42,
|
45
|
+
InvalidPackageMemberDeclaration = 43,
|
46
|
+
TypeMemberGroupDeclaration = 44,
|
47
|
+
ConstructorDeclaration = 45,
|
48
|
+
DestructorDeclaration = 46,
|
49
|
+
IndexedElementGetterDeclaration = 47,
|
50
|
+
IndexedElementSetterDeclaration = 48,
|
51
|
+
IndexParameterClause = 49,
|
52
|
+
DereferencedVariableGetterDeclaration = 50,
|
53
|
+
DereferencedVariableSetterDeclaration = 51,
|
54
|
+
MethodDeclaration = 52,
|
55
|
+
OperatorDeclaration = 53,
|
56
|
+
FieldDeclaration = 54,
|
57
|
+
FieldGetterDeclaration = 55,
|
58
|
+
FieldSetterDeclaration = 56,
|
59
|
+
InvalidTypeMemberDeclaration = 57,
|
60
|
+
NestedFunctionDeclaration = 58,
|
61
|
+
LocalVariableDeclaration = 59,
|
62
|
+
EnumerationVariableDeclaration = 60,
|
63
|
+
ArrayLiteral = 61,
|
64
|
+
ArrayLiteralElementList = 62,
|
65
|
+
AssertionExpression = 63,
|
66
|
+
AssumptionExpression = 64,
|
67
|
+
AsExpression = 65,
|
68
|
+
BinaryExpression = 66,
|
69
|
+
FunctionBlockLiteral = 67,
|
70
|
+
ArgumentList = 68,
|
71
|
+
CallExpression = 69,
|
72
|
+
AutotypeCallExpression = 70,
|
73
|
+
IndexedAccessExpression = 71,
|
74
|
+
InvalidExpression = 72,
|
75
|
+
IsExpression = 73,
|
76
|
+
FunctionLiteral = 74,
|
77
|
+
ParenthesizedExpression = 75,
|
78
|
+
WhenTernaryExpression = 76,
|
79
|
+
PrefixUnaryExpression = 77,
|
80
|
+
MemberAccessExpression = 78,
|
81
|
+
ReferenceExpression = 79,
|
82
|
+
DereferenceExpression = 80,
|
83
|
+
TextTemplateLiteral = 81,
|
84
|
+
TextTemplateSpanList = 82,
|
85
|
+
TextTemplateSpan = 83,
|
86
|
+
TokenExpression = 84,
|
87
|
+
KeywordExpression = 85,
|
88
|
+
ObjectExpression = 86,
|
89
|
+
BaseExpression = 87,
|
90
|
+
IdentifierExpression = 88,
|
91
|
+
GenericSpecializationExpression = 89,
|
92
|
+
DefaultMatchExpression = 90,
|
93
|
+
AssignmentStatement = 91,
|
94
|
+
StatementList = 92,
|
95
|
+
StatementBlock = 93,
|
96
|
+
FunctionBlock = 94,
|
97
|
+
BreakLoopStatement = 95,
|
98
|
+
ContinueLoopStatement = 96,
|
99
|
+
DisposeStatement = 97,
|
100
|
+
RunStatement = 98,
|
101
|
+
TryStatement = 99,
|
102
|
+
CatchClause = 100,
|
103
|
+
ErrorVariableDeclaration = 101,
|
104
|
+
FinallyClause = 102,
|
105
|
+
EmptyStatement = 103,
|
106
|
+
ErrorStatement = 104,
|
107
|
+
ImportantStatement = 105,
|
108
|
+
ExpressionStatement = 106,
|
109
|
+
EnumerationVariableList = 107,
|
110
|
+
ForStatement = 108,
|
111
|
+
IfStatement = 109,
|
112
|
+
ElseIfClauseList = 110,
|
113
|
+
ElseIfClause = 111,
|
114
|
+
ElseClause = 112,
|
115
|
+
InvalidStatement = 113,
|
116
|
+
NestedFunctionDeclarationStatement = 114,
|
117
|
+
LocalVariableDeclarationStatement = 115,
|
118
|
+
LoopStatement = 116,
|
119
|
+
ReturnStatement = 117,
|
120
|
+
CaseClauseList = 118,
|
121
|
+
SwitchStatement = 119,
|
122
|
+
MatchExpressionList = 120,
|
123
|
+
CaseClause = 121,
|
124
|
+
WhileStatement = 122,
|
125
|
+
YieldStatement = 123,
|
126
|
+
TranslationParameterList = 124,
|
127
|
+
TranslationParameterClause = 125,
|
128
|
+
ConstructorTranslation = 126,
|
129
|
+
IndexParameterTranslationClause = 127,
|
130
|
+
IndexerTranslation = 128,
|
131
|
+
TranslationTypeParameterList = 129,
|
132
|
+
TranslationTypeParameterClause = 130,
|
133
|
+
PackageFunctionTranslation = 131,
|
134
|
+
MethodTranslation = 132,
|
135
|
+
FunctionTypeTranslation = 133,
|
136
|
+
PackageImportTranslation = 134,
|
137
|
+
QualifiedName = 135,
|
138
|
+
PackageVariableTranslation = 136,
|
139
|
+
FieldOrVariantTranslation = 137,
|
140
|
+
TypeMemberTranslationList = 138,
|
141
|
+
TypeTranslation = 139,
|
142
|
+
TextLiteralTranslation = 140,
|
143
|
+
TextTemplateLiteralTranslation = 141,
|
144
|
+
VariantDeclaration = 142,
|
145
|
+
TypeParameterDeclaration = 143,
|
146
|
+
ParameterDeclaration = 144,
|
147
|
+
Argument = 145,
|
148
|
+
TagList = 146,
|
149
|
+
Tag = 147,
|
150
|
+
ModifierList = 148,
|
151
|
+
Modifier = 149,
|
152
|
+
ParameterClause = 150,
|
153
|
+
ParameterList = 151,
|
154
|
+
TypeArgumentClause = 152,
|
155
|
+
TypeArgumentList = 153,
|
156
|
+
TypeParameterClause = 154,
|
157
|
+
TypeParameterList = 155,
|
158
|
+
TypeAnnotation = 156
|
161
159
|
}
|