@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.
Files changed (84) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +81 -79
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +995 -1001
  5. package/build/{chunk-24QZJOMF.js → chunk-TFTCV5R5.js} +5434 -5343
  6. package/build/{chunk-62KHK23H.js → chunk-UB6LHKS5.js} +3 -3
  7. package/build/{chunk-Y6DODJCG.js → chunk-Z6TZA6SN.js} +3 -3
  8. package/build/types/analysis/AccessedFunction.d.ts +53 -0
  9. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +15 -15
  10. package/build/types/analysis/Analyzer.d.ts +133 -124
  11. package/build/types/analysis/CallExpressionMeaning.d.ts +10 -10
  12. package/build/types/analysis/DiagnosticCollector.d.ts +16 -16
  13. package/build/types/analysis/EntityLocalizationHelper.d.ts +6 -6
  14. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +10 -10
  15. package/build/types/analysis/LocalizationContext.d.ts +2 -2
  16. package/build/types/analysis/{PropertyAccessExpressionMeaning.d.ts → MemberAccessExpressionMeaning.d.ts} +20 -20
  17. package/build/types/analysis/NodeTypeUtils.d.ts +13 -13
  18. package/build/types/analysis/OperationOverloadResolver.d.ts +1 -1
  19. package/build/types/analysis/Scope.d.ts +15 -15
  20. package/build/types/analysis/SemanticContext.d.ts +29 -29
  21. package/build/types/analysis/SemanticContextBuilder.d.ts +22 -22
  22. package/build/types/analysis/SourceFileMembers.d.ts +2 -2
  23. package/build/types/analysis/StatementBlockScopeBuilder.d.ts +12 -12
  24. package/build/types/analysis/{SubstitutedMethod.d.ts → SubstitutedFunction.d.ts} +14 -14
  25. package/build/types/analysis/TagMeaning.d.ts +19 -19
  26. package/build/types/analysis/Tags.d.ts +6 -6
  27. package/build/types/analysis/Utils.d.ts +3 -3
  28. package/build/types/analysis/WellKnownDeclarations.d.ts +4 -4
  29. package/build/types/analysis/control-flow/NarrowableExpression.d.ts +1 -1
  30. package/build/types/api/Api.d.ts +3 -3
  31. package/build/types/diagnostic/DiagnosticCode.d.ts +130 -131
  32. package/build/types/emitter/EmitPhaseName.d.ts +8 -8
  33. package/build/types/emitter/Emitter.d.ts +4 -4
  34. package/build/types/emitter/EmitterContext.d.ts +2 -2
  35. package/build/types/emitter/Entities.d.ts +26 -25
  36. package/build/types/emitter/EntityMap.d.ts +8 -8
  37. package/build/types/emitter/IrBuilder.d.ts +18 -18
  38. package/build/types/emitter/IrToJs.d.ts +9 -9
  39. package/build/types/emitter/Transformer.d.ts +37 -37
  40. package/build/types/emitter/ir/AccessedEntities.d.ts +5 -5
  41. package/build/types/emitter/ir/ComputedAccess.d.ts +5 -5
  42. package/build/types/emitter/ir/EmitOptions.d.ts +41 -27
  43. package/build/types/emitter/ir/Nodes.d.ts +140 -139
  44. package/build/types/emitter/ir/types.d.ts +8 -8
  45. package/build/types/entities/ConstructorEntity.d.ts +9 -9
  46. package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
  47. package/build/types/entities/DestructorEntity.d.ts +4 -4
  48. package/build/types/entities/{MethodEntity.d.ts → FunctionEntity.d.ts} +36 -36
  49. package/build/types/entities/{MethodTypeEntity.d.ts → FunctionTypeEntity.d.ts} +23 -23
  50. package/build/types/entities/GetterEntity.d.ts +9 -9
  51. package/build/types/entities/IndexerEntity.d.ts +4 -4
  52. package/build/types/entities/SetterEntity.d.ts +9 -9
  53. package/build/types/entities/TypeEntity.d.ts +3 -3
  54. package/build/types/entities/TypeEntityMembers.d.ts +3 -3
  55. package/build/types/entities/TypeParameterEntity.d.ts +2 -2
  56. package/build/types/entities/VariableEntity.d.ts +32 -32
  57. package/build/types/entities/index.d.ts +14 -14
  58. package/build/types/services/CompletionService.d.ts +8 -8
  59. package/build/types/services/DisplayService.d.ts +62 -62
  60. package/build/types/services/HoverService.d.ts +1 -1
  61. package/build/types/services/NodeSemanticInfo.d.ts +17 -17
  62. package/build/types/services/SemanticTokensService.d.ts +6 -6
  63. package/build/types/services/SourceFileItemsService.d.ts +11 -11
  64. package/build/types/services/TypeDefinitionService.d.ts +2 -2
  65. package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +10 -10
  66. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +1 -1
  67. package/build/types/services/source-generation/EntityToSyntax.d.ts +9 -9
  68. package/build/types/tree/NodeKind.d.ts +146 -148
  69. package/build/types/tree/green/Nodes.d.ts +119 -139
  70. package/build/types/tree/green/SyntaxFactory.d.ts +19 -19
  71. package/build/types/tree/green/SyntaxToCode.d.ts +20 -22
  72. package/build/types/tree/red/Nodes.d.ts +165 -189
  73. package/build/types/ts-interop/Entities.d.ts +28 -28
  74. package/build/types/ts-interop/TsInteropContext.d.ts +1 -1
  75. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
  76. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -1
  77. package/build/types/types/{MethodType.d.ts → FunctionType.d.ts} +6 -6
  78. package/build/types/types/StandardTypes.d.ts +2 -2
  79. package/build/types/types/Type.d.ts +2 -2
  80. package/build/types/types/TypeFactory.d.ts +6 -7
  81. package/build/types/types/TypeMembers.d.ts +8 -8
  82. package/build/types/types/index.d.ts +1 -1
  83. package/package.json +1 -1
  84. 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 createHoverAtAccessedMethod;
9
+ private createHoverAtAccessedFunction;
10
10
  }
11
11
  export declare class Hover {
12
12
  private readonly _contents;
@@ -1,11 +1,11 @@
1
- import { AccessedMethod } from '../analysis/AccessedMethod.js';
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 { TypeIndexedAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
6
+ import { IndexedElementAccessorDeclaration } from '../analysis/NodeTypeUtils.js';
7
7
  import { AccessKind, ReadonlyNonEmptyArray } from '../common/index.js';
8
- import { AliasTypeEntity, Entity, MethodEntity, MethodTypeEntity, PackageEntity, StructuredTypeEntity, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../entities/index.js';
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.PropertyAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
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 ofTypeConstructorDeclaration(analyzer: Analyzer, node: tree.TypeConstructorDeclaration): NodeSemanticInfo;
22
- static ofTypeIndexerDeclaration(analyzer: Analyzer, node: TypeIndexedAccessorDeclaration): NodeSemanticInfo;
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.TypeDereferencedVariableGetterDeclaration | tree.TypeDereferencedVariableSetterDeclaration): NodeSemanticInfo | undefined;
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 | TypeVariableReferenceTarget | TypeValueParameterReferenceTarget | TypeConstructorReferenceTarget | OperatorReferenceTarget | TypeDereferenceOperatorReferenceTarget | AccessedMethodReferenceTarget | TypeIndexerReferenceTarget | MatchResultValueParameterReferenceTarget | PackageReferenceTarget | PackageNameTreeNodeReferenceTarget | TypeContextReferenceTarget;
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 TypeVariableReferenceTarget {
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 TypeConstructorReferenceTarget {
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 TypeDereferenceOperatorReferenceTarget {
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 AccessedMethodReferenceTarget {
90
- readonly method: AccessedMethod;
91
- readonly kind = "accessed-method";
92
- constructor(method: AccessedMethod);
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 TypeIndexerReferenceTarget {
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 | MethodEntity | TypeParameterEntity | MethodTypeEntity | StructuredTypeEntity | AliasTypeEntity;
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 getSemanticTokenKindForMethodEntity;
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
- MethodBlockLiteralParameter = 0,
26
+ FunctionBlockLiteralParameter = 0,
27
27
  SpecialVariable = 1,
28
28
  SpecialMethod = 2,
29
29
  Variant = 3,
30
- PackageMethod = 4,
31
- NestedMethod = 5,
32
- TypeMethod = 6,
30
+ PackageFunction = 4,
31
+ NestedFunction = 5,
32
+ Method = 6,
33
33
  Operator = 7
34
34
  }
35
- export declare const supportedSemanticTokens: readonly [SemanticTokenKind.MethodBlockLiteralParameter, SemanticTokenKind.SpecialVariable, SemanticTokenKind.SpecialMethod, SemanticTokenKind.Variant, SemanticTokenKind.PackageMethod, SemanticTokenKind.NestedMethod, SemanticTokenKind.TypeMethod, SemanticTokenKind.Operator];
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
- PackageMethod = 4,
26
+ PackageFunction = 4,
27
27
  StructuredType = 5,
28
- MethodType = 6,
28
+ FunctionType = 6,
29
29
  VariantType = 7,
30
30
  InvalidType = 8,
31
31
  Variant = 9,
32
- TypeConstructor = 10,
33
- TypeDestructor = 11,
34
- TypeVariable = 12,
35
- TypeVariableGetter = 13,
36
- TypeVariableSetter = 14,
37
- TypeMethod = 15,
38
- TypeIndexedGetter = 16,
39
- TypeIndexedSetter = 17,
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
- NestedMethod = 19
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 { AnonymousMethodTypeDeclaration, AnonymousStructuredTypeDeclaration, AnonymousVariantTypeDeclaration, PackageAliasTypeDeclaration, PackageMethodTypeDeclaration, PackageStructuredTypeDeclaration, PackageVariantTypeDeclaration, TypeParameterDeclaration } from '../tree/index.js';
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 | PackageMethodTypeDeclaration | AnonymousMethodTypeDeclaration | PackageVariantTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | TypeParameterDeclaration;
9
+ export type TypeDeclaration = PackageStructuredTypeDeclaration | AnonymousStructuredTypeDeclaration | PackageFunctionTypeDeclaration | AnonymousFunctionTypeDeclaration | PackageVariantTypeDeclaration | AnonymousVariantTypeDeclaration | PackageAliasTypeDeclaration | TypeParameterDeclaration;
@@ -1,4 +1,4 @@
1
- import { AccessedMethod } from '../../analysis/AccessedMethod.js';
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 = AccessedMethodSignature | MethodTypeSignature | ConstructorSignature | IndexerSignature;
53
- export declare class AccessedMethodSignature implements ISignature {
54
- readonly kind = "accessed-method";
55
- readonly method: WithLocalization<AccessedMethod>;
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(method: WithLocalization<AccessedMethod>);
57
+ constructor(func: WithLocalization<AccessedFunction>);
58
58
  getValueParameters(): readonly ValueParameter[];
59
59
  }
60
- export declare class MethodTypeSignature implements ISignature {
61
- readonly kind = "method-type";
62
- readonly methodType: types.MethodType;
60
+ export declare class FunctionTypeSignature implements ISignature {
61
+ readonly kind = "function-type";
62
+ readonly functionType: types.FunctionType;
63
63
  private readonly _valueParameters;
64
- constructor(methodType: types.MethodType);
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 getSignatureForSubstitutedMethod;
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 convertPackageMethod;
15
+ private convertPackageFunction;
16
16
  private convertPackageStructuredType;
17
17
  private convertPackageAliasType;
18
18
  private convertPackageVariantType;
19
- private convertPackageMethodType;
19
+ private convertPackageFunctionType;
20
20
  private convertTypeEntityMembers;
21
- private convertTypeVariable;
22
- private convertTypeMethod;
23
- private convertTypeConstructor;
24
- private convertTypeDestructor;
25
- private convertTypeIndexer;
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 createMethodTypeDeclarationBody;
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 convertMethodType;
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
- PackagePath = 9,
11
+ PackageName = 9,
12
12
  NamedTypeSpecifier = 10,
13
13
  UnionTypeSpecifier = 11,
14
- UnionTypeSpecifierTypeList = 12,
15
- IntersectionTypeSpecifier = 13,
16
- IntersectionTypeSpecifierTypeList = 14,
17
- ParenthesizedTypeSpecifier = 15,
18
- NullableTypeSpecifier = 16,
19
- AnonymousTypeSpecifier = 17,
20
- InvalidTypeSpecifier = 18,
21
- AnonymousMethodTypeDeclaration = 19,
22
- AnonymousStructuredTypeDeclaration = 20,
23
- AnonymousVariantTypeDeclaration = 21,
24
- TopLevelTranslationList = 22,
25
- TranslationsDeclaration = 23,
26
- PackageAliasTypeDeclaration = 24,
27
- AliasTypeDeclarationBody = 25,
28
- PackageMemberGroupDeclaration = 26,
29
- PackageConstructorDeclaration = 27,
30
- PackageEntryPointDeclaration = 28,
31
- PackageMethodDeclaration = 29,
32
- PackageMethodTypeDeclaration = 30,
33
- MethodTypeDeclarationBody = 31,
34
- BaseTypeList = 32,
35
- TypeMemberDeclarationList = 33,
36
- TypeMemberDeclarationBlock = 34,
37
- PackageStructuredTypeDeclaration = 35,
38
- StructuredTypeDeclarationBody = 36,
39
- PackageVariableDeclaration = 37,
40
- PackageVariableGetterDeclaration = 38,
41
- PackageVariableSetterDeclaration = 39,
42
- PackageVariantTypeDeclaration = 40,
43
- VariantTypeDeclarationBody = 41,
44
- TypeExtensionDeclaration = 42,
45
- ExtendedTypeClauseCommaList = 43,
46
- ExtendedTypeClause = 44,
47
- InvalidPackageMemberDeclaration = 45,
48
- TypeMemberGroupDeclaration = 46,
49
- TypeConstructorDeclaration = 47,
50
- TypeDestructorDeclaration = 48,
51
- TypeIndexedGetterDeclaration = 49,
52
- TypeIndexedSetterDeclaration = 50,
53
- TypeIndexerParameterClause = 51,
54
- TypeDereferencedVariableGetterDeclaration = 52,
55
- TypeDereferencedVariableSetterDeclaration = 53,
56
- TypeMethodDeclaration = 54,
57
- OperatorDeclaration = 55,
58
- TypeVariableDeclaration = 56,
59
- TypeVariableGetterDeclaration = 57,
60
- TypeVariableSetterDeclaration = 58,
61
- InvalidTypeMemberDeclaration = 59,
62
- NestedMethodDeclaration = 60,
63
- LocalVariableDeclaration = 61,
64
- EnumerationVariableDeclaration = 62,
65
- ArrayLiteral = 63,
66
- ArrayLiteralElementList = 64,
67
- AssertionExpression = 65,
68
- AssumptionExpression = 66,
69
- AsExpression = 67,
70
- BinaryExpression = 68,
71
- MethodBlockLiteral = 69,
72
- ArgumentList = 70,
73
- CallExpression = 71,
74
- AutotypeCallExpression = 72,
75
- IndexedAccessExpression = 73,
76
- InvalidExpression = 74,
77
- IsExpression = 75,
78
- MethodLiteral = 76,
79
- ParenthesizedExpression = 77,
80
- WhenTernaryExpression = 78,
81
- PrefixUnaryExpression = 79,
82
- PropertyAccessExpression = 80,
83
- ReferenceExpression = 81,
84
- DereferenceExpression = 82,
85
- TextTemplateLiteral = 83,
86
- TextTemplateSpanList = 84,
87
- TextTemplateSpan = 85,
88
- TokenExpression = 86,
89
- KeywordExpression = 87,
90
- ObjectExpression = 88,
91
- BaseExpression = 89,
92
- IdentifierExpression = 90,
93
- GenericSpecializationExpression = 91,
94
- DefaultMatchExpression = 92,
95
- AssignmentStatement = 93,
96
- StatementList = 94,
97
- StatementBlock = 95,
98
- FunctionBlock = 96,
99
- BreakLoopStatement = 97,
100
- ContinueLoopStatement = 98,
101
- DisposeStatement = 99,
102
- RunStatement = 100,
103
- TryStatement = 101,
104
- CatchClause = 102,
105
- ErrorVariableDeclaration = 103,
106
- FinallyClause = 104,
107
- EmptyStatement = 105,
108
- ErrorStatement = 106,
109
- ImportantStatement = 107,
110
- ExpressionStatement = 108,
111
- EnumerationVariableList = 109,
112
- ForStatement = 110,
113
- IfStatement = 111,
114
- ElseIfClauseList = 112,
115
- ElseIfClause = 113,
116
- ElseClause = 114,
117
- InvalidStatement = 115,
118
- NestedMethodDeclarationStatement = 116,
119
- LocalVariableDeclarationStatement = 117,
120
- LoopStatement = 118,
121
- ReturnStatement = 119,
122
- CaseClauseList = 120,
123
- SwitchStatement = 121,
124
- MatchExpressionList = 122,
125
- CaseClause = 123,
126
- WhileStatement = 124,
127
- YieldStatement = 125,
128
- TranslationParameterList = 126,
129
- TranslationParameterClause = 127,
130
- ConstructorTranslation = 128,
131
- IndexerTranslationParameterClause = 129,
132
- IndexerTranslation = 130,
133
- TranslationTypeParameterList = 131,
134
- TranslationTypeParameterClause = 132,
135
- PackageMethodTranslation = 133,
136
- TypeMethodTranslation = 134,
137
- MethodTypeTranslation = 135,
138
- PackageImportTranslation = 136,
139
- QualifiedName = 137,
140
- PackageVariableTranslation = 138,
141
- TypeVariableOrVariantTranslation = 139,
142
- TypeMemberTranslationList = 140,
143
- TypeTranslation = 141,
144
- TextLiteralTranslation = 142,
145
- TextTemplateLiteralTranslation = 143,
146
- VariantDeclaration = 144,
147
- TypeParameterDeclaration = 145,
148
- ParameterDeclaration = 146,
149
- Argument = 147,
150
- TagList = 148,
151
- Tag = 149,
152
- ModifierList = 150,
153
- Modifier = 151,
154
- ParameterClause = 152,
155
- ParameterList = 153,
156
- TypeArgumentClause = 154,
157
- TypeArgumentList = 155,
158
- TypeParameterClause = 156,
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
  }