@artel/artc 0.6.25244 → 0.6.25246
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 +36 -22
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +651 -1065
- package/build/{chunk-V7EU2U6Y.js → chunk-BGCXIMTW.js} +2 -2
- package/build/{chunk-C7RKXERX.js → chunk-CNAUD5P6.js} +1 -1
- package/build/{chunk-BAAUJYMH.js → chunk-RIWU6SF4.js} +24430 -21532
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +49 -81
- package/build/types/analysis/Analyzer.d.ts +82 -91
- package/build/types/analysis/ArgumentToParameterMatchResult.d.ts +8 -10
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/BaseExpressionMeaning.d.ts +12 -8
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +8 -10
- package/build/types/analysis/CallExpressionMeaning.d.ts +8 -9
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +4 -7
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +1 -2
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +2 -3
- package/build/types/analysis/DiagnosticArgumentFactory.d.ts +18 -0
- package/build/types/analysis/DiagnosticCollector.d.ts +3 -3
- package/build/types/analysis/DisplayableEntity.d.ts +46 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +19 -20
- package/build/types/analysis/ImportedPackageNameTree.d.ts +1 -7
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +7 -8
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +18 -0
- package/build/types/analysis/Localization.d.ts +19 -25
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +32 -34
- package/build/types/analysis/NamedTypeResolver.d.ts +7 -10
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -7
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +12 -8
- package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +23 -0
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +17 -0
- package/build/types/analysis/PackageMemberLookup.d.ts +4 -9
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +2 -2
- package/build/types/analysis/SourceFileMembers.d.ts +3 -3
- package/build/types/analysis/TagMeaning.d.ts +19 -22
- package/build/types/analysis/Tags.d.ts +1 -1
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +2 -2
- package/build/types/analysis/TypeMemberLookup.d.ts +23 -31
- package/build/types/analysis/TypeNarrower.d.ts +1 -0
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +1 -2
- package/build/types/analysis/WellKnownDeclarations.d.ts +100 -31
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +5 -6
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +13 -14
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +5 -6
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -9
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +5 -6
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +11 -12
- package/build/types/api/Api.d.ts +0 -3
- package/build/types/common/Displayable.d.ts +13 -0
- package/build/types/common/FormatString.d.ts +2 -1
- package/build/types/common/HelperPhrases.d.ts +2 -1
- package/build/types/common/Name.d.ts +9 -14
- package/build/types/common/TreeQuery.d.ts +6 -4
- package/build/types/common/WithDiagnostics.d.ts +3 -4
- package/build/types/common/index.d.ts +1 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +131 -125
- package/build/types/diagnostic/DiagnosticData.d.ts +7 -3
- package/build/types/emitter/EntityMap.d.ts +1 -0
- package/build/types/emitter/Transformer.d.ts +4 -2
- package/build/types/emitter/ir/EmitOptions.d.ts +14 -0
- package/build/types/emitter/ir/Nodes.d.ts +41 -25
- package/build/types/emitter/ir/types.d.ts +1 -1
- package/build/types/entities/AliasTypeEntity.d.ts +9 -41
- package/build/types/entities/AliasedType.d.ts +62 -0
- package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
- package/build/types/entities/ConstructorEntity.d.ts +10 -2
- package/build/types/entities/DereferenceOperatorEntity.d.ts +5 -0
- package/build/types/entities/DestructorEntity.d.ts +6 -2
- package/build/types/entities/EntityHiding.d.ts +1 -1
- package/build/types/entities/EntityLocalizationContext.d.ts +53 -0
- package/build/types/entities/FunctionEntity.d.ts +20 -0
- package/build/types/entities/FunctionTypeEntity.d.ts +15 -4
- package/build/types/entities/GetterEntity.d.ts +15 -2
- package/build/types/entities/IndexerEntity.d.ts +5 -0
- package/build/types/entities/OperatorEntity.d.ts +9 -3
- package/build/types/entities/PackageAliasEntity.d.ts +5 -0
- package/build/types/entities/PackageEntity.d.ts +8 -3
- package/build/types/entities/PackageMembers.d.ts +3 -2
- package/build/types/entities/SetterEntity.d.ts +15 -2
- package/build/types/entities/StructuredTypeEntity.d.ts +64 -15
- package/build/types/entities/TypeEntityMembers.d.ts +2 -5
- package/build/types/entities/TypeExtensionEntity.d.ts +9 -5
- package/build/types/entities/TypeMemberContainer.d.ts +2 -2
- package/build/types/entities/TypeParameterEntity.d.ts +26 -8
- package/build/types/entities/VariableEntity.d.ts +41 -1
- package/build/types/entities/VariantTypeEntity.d.ts +13 -4
- package/build/types/entities/index.d.ts +5 -4
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +54 -0
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +34 -0
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +24 -0
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +75 -0
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +83 -0
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +25 -0
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +37 -0
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +35 -0
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +22 -0
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +107 -0
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +28 -0
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +46 -0
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +97 -0
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +76 -0
- package/build/types/project/FileSystemTree.d.ts +2 -2
- package/build/types/project/SourcePackage.d.ts +1 -0
- package/build/types/services/DefinitionService.d.ts +0 -1
- package/build/types/services/DisplayService.d.ts +39 -134
- package/build/types/services/NodeSemanticInfo.d.ts +7 -7
- package/build/types/services/ReferencesService.d.ts +5 -3
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +7 -10
- package/build/types/services/source-generation/EntityToSyntax.d.ts +1 -3
- package/build/types/services/source-generation/SourceGenerationService.d.ts +3 -4
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
- package/build/types/services/workspace/CompilationController.d.ts +3 -3
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
- package/build/types/services/workspace/Workspace.d.ts +3 -3
- package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
- package/build/types/tree/green/Token.d.ts +6 -7
- package/build/types/ts-interop/Entities.d.ts +64 -13
- package/build/types/ts-interop/TsInteropContext.d.ts +17 -5
- package/build/types/ts-interop/TsPackageContents.d.ts +2 -2
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +3 -3
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +4 -4
- package/build/types/types/StandardTypes.d.ts +3 -2
- package/build/types/types/Substitutions.d.ts +3 -0
- package/build/types/types/Type.d.ts +3 -0
- package/package.json +2 -2
- package/build/types/analysis/EntityLocalizationHelper.d.ts +0 -17
- package/build/types/analysis/FoundDeclaration.d.ts +0 -19
- package/build/types/analysis/LocalizationContext.d.ts +0 -15
- package/build/types/common/SearchName.d.ts +0 -14
- package/build/types/types/Internal.d.ts +0 -1
@@ -1,37 +1,106 @@
|
|
1
|
+
import { PackageLocale } from '../common/PackageLocale.js';
|
1
2
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
|
-
import { AliasTypeEntity,
|
3
|
+
import { AliasTypeEntity, MethodEntity, StructuredTypeEntity } from '../entities/index.js';
|
4
|
+
import { Analyzer } from './Analyzer.js';
|
3
5
|
export declare class WellKnownDeclarationsLoadError extends Error {
|
4
6
|
readonly diagnostic: Diagnostic;
|
5
7
|
constructor(diagnostic: Diagnostic);
|
6
8
|
}
|
7
|
-
export
|
8
|
-
refObject: StructuredTypeEntity;
|
9
|
-
plainObject: StructuredTypeEntity;
|
10
|
-
number: StructuredTypeEntity;
|
11
|
-
integer: StructuredTypeEntity;
|
12
|
-
text: StructuredTypeEntity;
|
13
|
-
textTemplate: StructuredTypeEntity;
|
14
|
-
char: StructuredTypeEntity;
|
15
|
-
yesNo: StructuredTypeEntity;
|
16
|
-
none: StructuredTypeEntity;
|
17
|
-
enumerable: StructuredTypeEntity;
|
18
|
-
enumerator: StructuredTypeEntity;
|
19
|
-
enumeratorMethod: MethodEntity;
|
20
|
-
array: StructuredTypeEntity;
|
21
|
-
readonlyArray: StructuredTypeEntity;
|
22
|
-
map: StructuredTypeEntity;
|
23
|
-
readonlyMap: StructuredTypeEntity;
|
24
|
-
set: StructuredTypeEntity;
|
25
|
-
readonlySet: StructuredTypeEntity;
|
26
|
-
measure: StructuredTypeEntity;
|
27
|
-
reference: StructuredTypeEntity;
|
28
|
-
task: StructuredTypeEntity;
|
29
|
-
error: StructuredTypeEntity;
|
30
|
-
func: StructuredTypeEntity;
|
31
|
-
parameterArray: AliasTypeEntity;
|
32
|
-
defaultImport: StructuredTypeEntity;
|
33
|
-
realName: StructuredTypeEntity;
|
34
|
-
builtIntoPlatform: StructuredTypeEntity;
|
35
|
-
fieldProxy: StructuredTypeEntity;
|
36
|
-
javaScriptDecorator: StructuredTypeEntity;
|
9
|
+
export interface WellKnownDeclarations {
|
10
|
+
readonly refObject: StructuredTypeEntity;
|
11
|
+
readonly plainObject: StructuredTypeEntity;
|
12
|
+
readonly number: StructuredTypeEntity;
|
13
|
+
readonly integer: StructuredTypeEntity;
|
14
|
+
readonly text: StructuredTypeEntity;
|
15
|
+
readonly textTemplate: StructuredTypeEntity;
|
16
|
+
readonly char: StructuredTypeEntity;
|
17
|
+
readonly yesNo: StructuredTypeEntity;
|
18
|
+
readonly none: StructuredTypeEntity;
|
19
|
+
readonly enumerable: StructuredTypeEntity;
|
20
|
+
readonly enumerator: StructuredTypeEntity;
|
21
|
+
readonly enumeratorMethod: MethodEntity;
|
22
|
+
readonly array: StructuredTypeEntity;
|
23
|
+
readonly readonlyArray: StructuredTypeEntity;
|
24
|
+
readonly map: StructuredTypeEntity;
|
25
|
+
readonly readonlyMap: StructuredTypeEntity;
|
26
|
+
readonly set: StructuredTypeEntity;
|
27
|
+
readonly readonlySet: StructuredTypeEntity;
|
28
|
+
readonly measure: StructuredTypeEntity;
|
29
|
+
readonly reference: StructuredTypeEntity;
|
30
|
+
readonly task: StructuredTypeEntity;
|
31
|
+
readonly error: StructuredTypeEntity;
|
32
|
+
readonly func: StructuredTypeEntity;
|
33
|
+
readonly parameterArray: AliasTypeEntity;
|
34
|
+
readonly defaultImport: StructuredTypeEntity;
|
35
|
+
readonly realName: StructuredTypeEntity;
|
36
|
+
readonly builtIntoPlatform: StructuredTypeEntity;
|
37
|
+
readonly fieldProxy: StructuredTypeEntity;
|
38
|
+
readonly javaScriptDecorator: StructuredTypeEntity;
|
39
|
+
}
|
40
|
+
export declare class LocalizedWellKnownDeclarations implements WellKnownDeclarations {
|
41
|
+
private readonly _analyzer;
|
42
|
+
private readonly _locale;
|
43
|
+
private _refObject;
|
44
|
+
private _plainObject;
|
45
|
+
private _number;
|
46
|
+
private _integer;
|
47
|
+
private _text;
|
48
|
+
private _textTemplate;
|
49
|
+
private _char;
|
50
|
+
private _yesNo;
|
51
|
+
private _none;
|
52
|
+
private _enumerable;
|
53
|
+
private _enumerator;
|
54
|
+
private _enumeratorMethod;
|
55
|
+
private _array;
|
56
|
+
private _readonlyArray;
|
57
|
+
private _map;
|
58
|
+
private _readonlyMap;
|
59
|
+
private _set;
|
60
|
+
private _readonlySet;
|
61
|
+
private _measure;
|
62
|
+
private _reference;
|
63
|
+
private _task;
|
64
|
+
private _error;
|
65
|
+
private _func;
|
66
|
+
private _parameterArray;
|
67
|
+
private _defaultImport;
|
68
|
+
private _realName;
|
69
|
+
private _builtIntoPlatform;
|
70
|
+
private _fieldProxy;
|
71
|
+
private _javaScriptDecorator;
|
72
|
+
constructor(_analyzer: Analyzer, _locale: PackageLocale);
|
73
|
+
get refObject(): StructuredTypeEntity;
|
74
|
+
get plainObject(): StructuredTypeEntity;
|
75
|
+
get number(): StructuredTypeEntity;
|
76
|
+
get integer(): StructuredTypeEntity;
|
77
|
+
get text(): StructuredTypeEntity;
|
78
|
+
get textTemplate(): StructuredTypeEntity;
|
79
|
+
get char(): StructuredTypeEntity;
|
80
|
+
get yesNo(): StructuredTypeEntity;
|
81
|
+
get none(): StructuredTypeEntity;
|
82
|
+
get enumerable(): StructuredTypeEntity;
|
83
|
+
get enumerator(): StructuredTypeEntity;
|
84
|
+
get enumeratorMethod(): MethodEntity;
|
85
|
+
get array(): StructuredTypeEntity;
|
86
|
+
get readonlyArray(): StructuredTypeEntity;
|
87
|
+
get map(): StructuredTypeEntity;
|
88
|
+
get readonlyMap(): StructuredTypeEntity;
|
89
|
+
get set(): StructuredTypeEntity;
|
90
|
+
get readonlySet(): StructuredTypeEntity;
|
91
|
+
get measure(): StructuredTypeEntity;
|
92
|
+
get reference(): StructuredTypeEntity;
|
93
|
+
get task(): StructuredTypeEntity;
|
94
|
+
get error(): StructuredTypeEntity;
|
95
|
+
get func(): StructuredTypeEntity;
|
96
|
+
get parameterArray(): AliasTypeEntity;
|
97
|
+
get defaultImport(): StructuredTypeEntity;
|
98
|
+
get realName(): StructuredTypeEntity;
|
99
|
+
get builtIntoPlatform(): StructuredTypeEntity;
|
100
|
+
get fieldProxy(): StructuredTypeEntity;
|
101
|
+
get javaScriptDecorator(): StructuredTypeEntity;
|
102
|
+
private getLocalizedStructuredType;
|
103
|
+
private getLocalizedAliasType;
|
104
|
+
private getLocalizedMethod;
|
105
|
+
private getLocalizationContext;
|
37
106
|
}
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { LocalVariableEntity, PackageVariableEntity, ParameterVariableEntity } from '../../entities/VariableEntity.js';
|
1
|
+
import { FieldEntity, LocalVariableEntity, PackageVariableEntity, ParameterVariableEntity } from '../../entities/VariableEntity.js';
|
2
2
|
import * as tree from '../../tree/index.js';
|
3
|
-
import * as types from '../../types/index.js';
|
4
3
|
import { Analyzer } from '../Analyzer.js';
|
5
4
|
import { NarrowableReferenceExpression } from '../control-flow/NarrowableExpression.js';
|
6
5
|
export type NarrowableReference = NarrowableReference.LocalVariable | NarrowableReference.PackageVariable | NarrowableReference.InstanceField | NarrowableReference.StaticField | NarrowableReference.ObjectAutoVariable;
|
@@ -27,10 +26,10 @@ export declare namespace NarrowableReference {
|
|
27
26
|
}
|
28
27
|
export class InstanceField implements INarrowableReference {
|
29
28
|
private readonly _analyzer;
|
30
|
-
readonly field:
|
29
|
+
readonly field: FieldEntity;
|
31
30
|
readonly receiver: NarrowableReference;
|
32
31
|
readonly kind = "instance-field";
|
33
|
-
constructor(_analyzer: Analyzer, field:
|
32
|
+
constructor(_analyzer: Analyzer, field: FieldEntity, receiver: NarrowableReference);
|
34
33
|
equals(other: NarrowableReference): boolean;
|
35
34
|
contains(other: NarrowableReference): boolean;
|
36
35
|
equalsExpression(expression: NarrowableReferenceExpression): boolean;
|
@@ -38,9 +37,9 @@ export declare namespace NarrowableReference {
|
|
38
37
|
}
|
39
38
|
export class StaticField implements INarrowableReference {
|
40
39
|
private readonly _analyzer;
|
41
|
-
readonly field:
|
40
|
+
readonly field: FieldEntity;
|
42
41
|
readonly kind = "static-field";
|
43
|
-
constructor(_analyzer: Analyzer, field:
|
42
|
+
constructor(_analyzer: Analyzer, field: FieldEntity);
|
44
43
|
equals(other: NarrowableReference): boolean;
|
45
44
|
contains(_other: NarrowableReference): boolean;
|
46
45
|
equalsExpression(expression: NarrowableReferenceExpression): boolean;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { Name } from '../../common/index.js';
|
2
2
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
3
3
|
import * as tree from '../../tree/index.js';
|
4
4
|
import { Analyzer } from '../Analyzer.js';
|
5
|
-
import { FoundNamedDeclaration } from '../FoundDeclaration.js';
|
6
5
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
7
6
|
import { SemanticContext } from './SemanticContext.js';
|
8
7
|
import { SemanticContextWithParent } from './SemanticContextWithParent.js';
|
@@ -15,8 +14,8 @@ export declare class FieldWithInitializerSemanticContext extends SemanticContext
|
|
15
14
|
private readonly _node;
|
16
15
|
constructor(analyzer: Analyzer, node: tree.FieldDeclaration, outer: SemanticContextContainingTypeMember);
|
17
16
|
isStatic(): boolean;
|
18
|
-
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly
|
19
|
-
getOwnTypesOrContainersWithTypesByName(_name:
|
20
|
-
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly
|
21
|
-
getOwnNamedDeclarationsByName(_name:
|
17
|
+
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
18
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
19
|
+
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
20
|
+
getOwnNamedDeclarationsByName(_name: Name, _noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
22
21
|
}
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import {
|
1
|
+
import { Name } from '../../common/index.js';
|
2
2
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
3
3
|
import { ConstructorEntity, OperatorKind, PackageEntity, TypeEntity, TypeEntityWithMembers, TypeExtensionEntity } from '../../entities/index.js';
|
4
4
|
import { SourceFile } from '../../project/SourceFile.js';
|
5
5
|
import * as tree from '../../tree/index.js';
|
6
6
|
import * as types from '../../types/index.js';
|
7
7
|
import { Analyzer } from '../Analyzer.js';
|
8
|
-
import {
|
9
|
-
import { LocalizationContext } from '../LocalizationContext.js';
|
8
|
+
import { DiagnosticArgumentFactory } from '../DiagnosticArgumentFactory.js';
|
10
9
|
import { FunctionDeclaration, GetterDeclaration, RegularOrBlockFunctionLiteral, SetterDeclaration, SubprogramDeclarationOrLiteral } from '../NodeTypeUtils.js';
|
11
10
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
12
11
|
import { SemanticContext } from './SemanticContext.js';
|
@@ -17,20 +16,20 @@ export declare abstract class SemanticContextBase {
|
|
17
16
|
abstract getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
18
17
|
abstract getTryStatementContext(): TryStatementContextKind | undefined;
|
19
18
|
abstract isStatic(): boolean;
|
20
|
-
abstract getOwnTypesOrContainersWithTypes(hidingMatcher?: IEntityHidingMatcher): readonly
|
21
|
-
abstract getOwnTypesOrContainersWithTypesByName(name:
|
22
|
-
abstract getOwnNamedDeclarations(noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly
|
23
|
-
abstract getOwnNamedDeclarationsByName(name:
|
24
|
-
getLocalizationContext(): LocalizationContext;
|
19
|
+
abstract getOwnTypesOrContainersWithTypes(hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
20
|
+
abstract getOwnTypesOrContainersWithTypesByName(name: Name, hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
21
|
+
abstract getOwnNamedDeclarations(noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
22
|
+
abstract getOwnNamedDeclarationsByName(name: Name, noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
25
23
|
getContainingSourceFile(): SourceFile;
|
26
24
|
getContainingPackage(): PackageEntity;
|
27
25
|
getHidingMatcher(): IEntityHidingMatcher;
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
getDiagnosticArgumentFactory(): DiagnosticArgumentFactory;
|
27
|
+
getTypesOrContainersWithTypes(): readonly TypeOrContainerWithTypes[];
|
28
|
+
getTypesOrContainersWithTypesByName(name: Name): readonly TypeOrContainerWithTypes[];
|
29
|
+
getNamedDeclarations(noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
30
|
+
getNamedDeclarationsByName(name: Name, noInstanceMembers?: boolean): readonly NamedDeclaration[];
|
31
|
+
getOperators(noInstanceMembers?: boolean): readonly types.Operator[];
|
32
|
+
getOperatorsByKind(kind: OperatorKind, noInstanceMembers?: boolean): readonly types.Operator[];
|
34
33
|
getTypeExtensionsByType(type: TypeEntity): readonly TypeExtensionEntity[];
|
35
34
|
private enumerateSemanticContexts;
|
36
35
|
private getSourceFileContext;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { Name } from '../../common/index.js';
|
2
2
|
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
3
3
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
4
4
|
import { LocalVariableEntity, NestedFunctionEntity, ParameterVariableEntity, TypeParameterEntity } from '../../entities/index.js';
|
5
5
|
import * as tree from '../../tree/index.js';
|
6
6
|
import { Analyzer } from '../Analyzer.js';
|
7
|
-
import { FoundNamedDeclaration } from '../FoundDeclaration.js';
|
8
7
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
9
8
|
import { SemanticContext } from './SemanticContext.js';
|
10
9
|
import { SemanticContextWithParent } from './SemanticContextWithParent.js';
|
@@ -26,10 +25,10 @@ export declare abstract class SemanticContextValidatingNameConflictsBase extends
|
|
26
25
|
constructor(analyzer: Analyzer);
|
27
26
|
protected abstract createMemberEntities(): readonly MemberOfSemanticContextValidatingNameConflicts[];
|
28
27
|
protected abstract createMemberEntitiesForTypeLookup(): readonly MemberOfSemanticContextValidatingNameConflictsForTypeLookup[];
|
29
|
-
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly
|
30
|
-
getOwnTypesOrContainersWithTypesByName(name:
|
31
|
-
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly
|
32
|
-
getOwnNamedDeclarationsByName(name:
|
28
|
+
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
29
|
+
getOwnTypesOrContainersWithTypesByName(name: Name, _hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
30
|
+
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
31
|
+
getOwnNamedDeclarationsByName(name: Name, _noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
33
32
|
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
34
33
|
private getMemberEntityDictionary;
|
35
34
|
private validateNestedFunctionsConflicts;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { Name } from '../../common/index.js';
|
2
2
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
3
3
|
import { PackageEntity, TypeEntity, TypeExtensionEntity } from '../../entities/index.js';
|
4
4
|
import { SourceFile } from '../../project/SourceFile.js';
|
5
5
|
import * as tree from '../../tree/index.js';
|
6
6
|
import { Analyzer } from '../Analyzer.js';
|
7
|
-
import {
|
8
|
-
import { LocalizationContext } from '../LocalizationContext.js';
|
7
|
+
import { DiagnosticArgumentFactory } from '../DiagnosticArgumentFactory.js';
|
9
8
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
10
9
|
import { SemanticContext } from './SemanticContext.js';
|
11
10
|
import { SemanticContextBase, SubprogramInfo, TryStatementContextKind, TypeOrTypeExtension } from './SemanticContextBase.js';
|
@@ -20,7 +19,7 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
20
19
|
private readonly _importedPackageMemberLookups;
|
21
20
|
private readonly _packageNameSegments;
|
22
21
|
private readonly _packageNameSegmentsByKey;
|
23
|
-
private readonly
|
22
|
+
private readonly _diagnosticArgumentFactory;
|
24
23
|
private get packageNameSegmentsByKey();
|
25
24
|
constructor(analyzer: Analyzer, node: tree.SourceFile);
|
26
25
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
@@ -28,12 +27,12 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
28
27
|
getSourceFile(): SourceFile;
|
29
28
|
getPackage(): PackageEntity;
|
30
29
|
getTryStatementContext(): TryStatementContextKind | undefined;
|
31
|
-
getLocalizationContext(): LocalizationContext;
|
32
30
|
isStatic(): boolean;
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
31
|
+
getDiagnosticArgumentFactory(): DiagnosticArgumentFactory;
|
32
|
+
getOwnTypesOrContainersWithTypes(hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
33
|
+
getOwnTypesOrContainersWithTypesByName(name: Name, hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
34
|
+
getOwnNamedDeclarations(_noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): NamedDeclaration[];
|
35
|
+
getOwnNamedDeclarationsByName(name: Name, _noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
37
36
|
getOwnTypeExtensionsByType(type: TypeEntity, hidingMatcher?: IEntityHidingMatcher): TypeExtensionEntity[];
|
38
37
|
private convertPackageMemberToNamedDeclaration;
|
39
38
|
private convertPackageAliasToTypeOrContainerWithTypes;
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { Name } from '../../common/index.js';
|
2
2
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
3
3
|
import * as tree from '../../tree/index.js';
|
4
4
|
import { Analyzer } from '../Analyzer.js';
|
5
|
-
import { FoundNamedDeclaration } from '../FoundDeclaration.js';
|
6
5
|
import { DereferencedVariableAccessorDeclaration, FieldAccessorDeclaration, FunctionDeclaration, IndexedElementAccessorDeclaration, PackageVariableAccessorDeclaration, RegularOrBlockFunctionLiteral } from '../NodeTypeUtils.js';
|
7
6
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
8
7
|
import { SemanticContext } from './SemanticContext.js';
|
@@ -20,10 +19,10 @@ export declare abstract class OutermostSemanticContextOfSubprogram extends Seman
|
|
20
19
|
readonly kind = "outermost-of-subprogram";
|
21
20
|
abstract getContainingSubprogram(): SubprogramInfo;
|
22
21
|
getTryStatementContext(): TryStatementContextKind | undefined;
|
23
|
-
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly
|
24
|
-
getOwnTypesOrContainersWithTypesByName(_name:
|
25
|
-
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly
|
26
|
-
getOwnNamedDeclarationsByName(_name:
|
22
|
+
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
23
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
24
|
+
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
25
|
+
getOwnNamedDeclarationsByName(_name: Name, _noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
27
26
|
}
|
28
27
|
export declare class FunctionSemanticContext extends OutermostSemanticContextOfSubprogram {
|
29
28
|
readonly outer: SemanticContext;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { Name } from '../../common/index.js';
|
2
2
|
import { IEntityHidingMatcher } from '../../entities/EntityHiding.js';
|
3
3
|
import { OperatorKind } from '../../entities/index.js';
|
4
4
|
import * as tree from '../../tree/index.js';
|
5
5
|
import * as types from '../../types/index.js';
|
6
6
|
import { Analyzer } from '../Analyzer.js';
|
7
|
-
import { FoundAnonymousDeclaration, FoundNamedDeclaration } from '../FoundDeclaration.js';
|
8
7
|
import { FunctionTypeDeclaration, StructuredTypeDeclaration, VariantTypeDeclaration } from '../NodeTypeUtils.js';
|
9
8
|
import { TypeMemberLookup } from '../TypeMemberLookup.js';
|
10
9
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
@@ -29,10 +28,10 @@ export declare class OutermostSemanticContextOfType extends SemanticContextWithP
|
|
29
28
|
getContainingTypeOrTypeExtension(): TypeOrTypeExtension | undefined;
|
30
29
|
getContainingSubprogram(): SubprogramInfo | undefined;
|
31
30
|
isStatic(): boolean;
|
32
|
-
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly
|
33
|
-
getOwnTypesOrContainersWithTypesByName(_name:
|
34
|
-
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly
|
35
|
-
getOwnNamedDeclarationsByName(_name:
|
31
|
+
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
32
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
33
|
+
getOwnNamedDeclarations(_noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
34
|
+
getOwnNamedDeclarationsByName(_name: Name, _noInstanceMembers?: boolean, _hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
36
35
|
private getContainingType;
|
37
36
|
}
|
38
37
|
type TypeDeclarationWithTypeParameters = tree.PackageStructuredTypeDeclaration | tree.PackageVariantTypeDeclaration | tree.PackageAliasTypeDeclaration | tree.PackageFunctionTypeDeclaration;
|
@@ -48,12 +47,12 @@ export declare class TypeParametersOfTypeSemanticContext extends SemanticContext
|
|
48
47
|
}
|
49
48
|
declare abstract class TypeOrExtensionBodySemanticContext extends SemanticContextWithParent {
|
50
49
|
protected abstract memberLookup: TypeMemberLookup;
|
51
|
-
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly
|
52
|
-
getOwnTypesOrContainersWithTypesByName(_name:
|
53
|
-
getOwnNamedDeclarations(noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher):
|
54
|
-
getOwnNamedDeclarationsByName(name:
|
55
|
-
getOwnOperators(noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly
|
56
|
-
getOwnOperatorsByKind(kind: OperatorKind, noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly
|
50
|
+
getOwnTypesOrContainersWithTypes(_hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
51
|
+
getOwnTypesOrContainersWithTypesByName(_name: Name, _hidingMatcher?: IEntityHidingMatcher): readonly TypeOrContainerWithTypes[];
|
52
|
+
getOwnNamedDeclarations(noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): NamedDeclaration[];
|
53
|
+
getOwnNamedDeclarationsByName(name: Name, noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly NamedDeclaration[];
|
54
|
+
getOwnOperators(noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly types.Operator[];
|
55
|
+
getOwnOperatorsByKind(kind: OperatorKind, noInstanceMembers?: boolean, hidingMatcher?: IEntityHidingMatcher): readonly types.Operator[];
|
57
56
|
private convertNamedMember;
|
58
57
|
}
|
59
58
|
export type TypeDeclarationWithMembersBody = tree.StructuredTypeDeclarationBody | tree.VariantTypeDeclarationBody | tree.AliasTypeDeclarationBody;
|
package/build/types/api/Api.d.ts
CHANGED
@@ -7,14 +7,11 @@ export type { Meaning as BaseExpressionMeaning } from '../analysis/BaseExpressio
|
|
7
7
|
export type { Meaning as CallExpressionMeaning } from '../analysis/CallExpressionMeaning.js';
|
8
8
|
export type { Meaning as DereferenceExpressionMeaning } from '../analysis/DereferenceExpressionMeaning.js';
|
9
9
|
export * from '../analysis/DiagnosticCollector.js';
|
10
|
-
export * from '../analysis/EntityLocalizationHelper.js';
|
11
10
|
export * from '../analysis/FindModifier.js';
|
12
|
-
export * from '../analysis/FoundDeclaration.js';
|
13
11
|
export type { Meaning as IdentifierExpressionMeaning, ResolutionResult as IdentifierExpressionResolutionResult } from '../analysis/IdentifierExpressionMeaning.js';
|
14
12
|
export * from '../analysis/ImportedPackageNameTree.js';
|
15
13
|
export type { Meaning as IndexedAccessExpressionMeaning } from '../analysis/IndexedAccessExpressionMeaning.js';
|
16
14
|
export * from '../analysis/Localization.js';
|
17
|
-
export * from '../analysis/LocalizationContext.js';
|
18
15
|
export type { Meaning as MemberAccessExpressionMeaning, ResolutionResult as MemberAccessExpressionResolutionResult } from '../analysis/MemberAccessExpressionMeaning.js';
|
19
16
|
export * from '../analysis/NodeTypeUtils.js';
|
20
17
|
export type { Meaning as ObjectExpressionMeaning } from '../analysis/ObjectExpressionMeaning.js';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface Displayable {
|
2
|
+
getDisplayText(): string;
|
3
|
+
}
|
4
|
+
export declare class DisplayableArray implements Displayable {
|
5
|
+
private readonly _array;
|
6
|
+
private readonly _separator;
|
7
|
+
constructor(_array: readonly DisplayableOrPrimitive[], _separator: string);
|
8
|
+
getDisplayText(): string;
|
9
|
+
}
|
10
|
+
export type DisplayableOrPrimitive = Displayable | string | number | boolean;
|
11
|
+
export declare namespace DisplayableOrPrimitive {
|
12
|
+
function getDisplayText(value: DisplayableOrPrimitive): string;
|
13
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import { DisplayableOrPrimitive } from './Displayable.js';
|
1
2
|
/**
|
2
3
|
* @example
|
3
4
|
* "Сообщение: {0} Экранирование: \{0}", ["Привет!"] -> "Сообщение: Привет! Экранирование: {0}"
|
4
5
|
*/
|
5
|
-
export declare function formatString(text: string, ...formatArguments: readonly
|
6
|
+
export declare function formatString(text: string, ...formatArguments: readonly DisplayableOrPrimitive[]): string;
|
@@ -7,6 +7,7 @@ export declare const enum HelperPhraseKind {
|
|
7
7
|
PackageAlias = 4,
|
8
8
|
PackageNameSegment = 5,
|
9
9
|
Variable = 6,
|
10
|
-
Overloads = 7
|
10
|
+
Overloads = 7,
|
11
|
+
EnumeratorMethodName = 8
|
11
12
|
}
|
12
13
|
export declare function getHelperPhrase(kind: HelperPhraseKind, locale: PackageLocale): string;
|
@@ -3,52 +3,48 @@ export declare const enum NameFlags {
|
|
3
3
|
* Обычное имя, например: имя, имя-первое, имяПервое, имя-1, имя_первое.
|
4
4
|
*/
|
5
5
|
None = 0,
|
6
|
-
/**
|
7
|
-
* Имя на языке оригинала, начинается со знака тильды, например: ~имя, ~'имя с пробелами'
|
8
|
-
*/
|
9
|
-
OriginalName = 2,
|
10
6
|
/**
|
11
7
|
* Имя в одиночных кавычках, например: 'имя', 'имя с пробелами', '+'.
|
12
8
|
*/
|
13
|
-
QuotedName =
|
9
|
+
QuotedName = 2,
|
14
10
|
/**
|
15
11
|
* Имя не может быть отображено без кавычек, например: 'имя с пробелами', '+'.
|
16
12
|
*/
|
17
|
-
RequiresQuotes =
|
13
|
+
RequiresQuotes = 4,
|
18
14
|
/**
|
19
15
|
* Имя с обратным апострофом для избежания конфликта между параметром метода и свойством объекта,
|
20
16
|
* например: имя\`, 'имя с пробелами'\`.
|
21
17
|
*/
|
22
|
-
ConflictResolvingParameterName =
|
18
|
+
ConflictResolvingParameterName = 8,
|
23
19
|
/**
|
24
20
|
* Имя с двойным обратным апострофом для избежания конфликта между вычисляемым свойством и скрытой
|
25
21
|
* хранимой переменной объекта, например: длина\`\`, 'имя с пробелами'\`\`.
|
26
22
|
*/
|
27
|
-
BackingVariableName =
|
23
|
+
BackingVariableName = 16,
|
28
24
|
/**
|
29
25
|
* Конвертировать имя в формат kebab case при формировании исходного имени.
|
30
26
|
*/
|
31
|
-
PreferKebabCase =
|
27
|
+
PreferKebabCase = 32
|
32
28
|
}
|
33
29
|
export declare class Name {
|
34
30
|
/**
|
35
|
-
* Исходное имя без одиночных кавычек и без символов '\`' в конце.
|
31
|
+
* Исходное имя без одиночных кавычек и без символов '\`' в конце.
|
36
32
|
*/
|
37
33
|
readonly unescapedOriginalWithoutQuotes: string;
|
38
34
|
/**
|
39
|
-
* Флаги, указывающие на наличии у имени символов '
|
35
|
+
* Флаги, указывающие на наличии у имени символов '\`', одиночных кавычек и их смысл.
|
40
36
|
*/
|
41
37
|
readonly flags: NameFlags;
|
42
38
|
/**
|
43
39
|
* Ключ, используемый для сравнения имён на эквивалентность без учёта флагов, а также для генерации кода.
|
44
40
|
* Получается из исходного имени путём:
|
45
|
-
* 1. удаления символов
|
41
|
+
* 1. удаления символов символов '\`' из конца имени и удаления одиночных кавычек из остатка;
|
46
42
|
* 2. удаления символов '-' и замены первых следующих за ними букв на заглавные.
|
47
43
|
*/
|
48
44
|
readonly keyWithoutBackQuotes: string;
|
49
45
|
/**
|
50
46
|
* Ключ, используемый для сравнения имён на эквивалентность с учётом флагов. Получается из
|
51
|
-
* `keyWithoutBackQuotes` путём добавления символов '
|
47
|
+
* `keyWithoutBackQuotes` путём добавления символов '\`' `meaningfulBackQuoteCount` число раз.
|
52
48
|
*/
|
53
49
|
get key(): string;
|
54
50
|
/**
|
@@ -57,7 +53,6 @@ export declare class Name {
|
|
57
53
|
get meaningfulBackQuoteCount(): number;
|
58
54
|
/**
|
59
55
|
* Исходное имя, при необходимости взятое в одиночные кавычки и содержащее обратные кавычки согласно флагам.
|
60
|
-
* Не содержит символ '~'.
|
61
56
|
*/
|
62
57
|
get unescapedOriginal(): string;
|
63
58
|
/**
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
2
|
-
import { StructuredTypeDeclaration, VariantTypeDeclaration } from '../analysis/NodeTypeUtils.js';
|
2
|
+
import { StructuredTypeDeclaration, TypeWithMembersDeclaration, VariantTypeDeclaration } from '../analysis/NodeTypeUtils.js';
|
3
3
|
import { Entity, PackageEntity, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
|
4
4
|
import { SourceFile } from '../project/index.js';
|
5
5
|
import * as tree from '../tree/index.js';
|
6
|
+
import { PackageLocale } from './PackageLocale.js';
|
6
7
|
export declare abstract class TreeQuery {
|
7
8
|
protected abstract get node(): tree.Node;
|
8
9
|
static fromNode(node: tree.Node): NodeQuery;
|
@@ -10,6 +11,7 @@ export declare abstract class TreeQuery {
|
|
10
11
|
sourceFile(): tree.SourceFile;
|
11
12
|
projectSourceFile(analyzer: Analyzer): SourceFile;
|
12
13
|
packageEntity(analyzer: Analyzer): PackageEntity;
|
14
|
+
locale(analyzer: Analyzer): PackageLocale;
|
13
15
|
containingEntity(analyzer: Analyzer): Entity;
|
14
16
|
}
|
15
17
|
declare class NodeQuery extends TreeQuery {
|
@@ -25,11 +27,11 @@ declare class TypeMemberDeclarationQuery extends TreeQuery {
|
|
25
27
|
}
|
26
28
|
export type TypeMemberDeclarationContainer = TypeMemberDeclarationContainer_type | TypeMemberDeclarationContainer_typeExtension;
|
27
29
|
declare class TypeMemberDeclarationContainer_type implements ITypeMemberDeclarationContainer {
|
28
|
-
readonly declaration:
|
30
|
+
readonly declaration: TypeWithMembersDeclaration;
|
29
31
|
readonly memberBlock: tree.TypeMemberDeclarationBlock;
|
30
32
|
readonly kind = "type";
|
31
|
-
constructor(declaration:
|
32
|
-
getNode():
|
33
|
+
constructor(declaration: TypeWithMembersDeclaration, memberBlock: tree.TypeMemberDeclarationBlock);
|
34
|
+
getNode(): TypeWithMembersDeclaration;
|
33
35
|
getMemberBlock(): tree.TypeMemberDeclarationBlock;
|
34
36
|
getTypeEntity(analyzer: Analyzer): TypeEntityWithMembers;
|
35
37
|
getContextualTypeEntity(analyzer: Analyzer): TypeEntity | undefined;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Diagnostic } from '../diagnostic/Diagnostic.js';
|
2
|
-
import { MaybeLazy } from './Lazy.js';
|
3
2
|
export type WithDiagnostics<T> = WithDiagnostics_ok<T> | WithDiagnostics_error<T>;
|
4
3
|
export declare class WithDiagnostics_ok<T> implements IWithDiagnostics<T> {
|
5
4
|
readonly value: T;
|
@@ -9,9 +8,9 @@ export declare class WithDiagnostics_ok<T> implements IWithDiagnostics<T> {
|
|
9
8
|
}
|
10
9
|
export declare class WithDiagnostics_error<T> implements IWithDiagnostics<T> {
|
11
10
|
readonly kind = "error";
|
12
|
-
readonly value: readonly
|
13
|
-
constructor(diagnostic:
|
14
|
-
constructor(diagnostics: readonly
|
11
|
+
readonly value: readonly Diagnostic[];
|
12
|
+
constructor(diagnostic: Diagnostic);
|
13
|
+
constructor(diagnostics: readonly Diagnostic[]);
|
15
14
|
toNullable(): T | undefined;
|
16
15
|
}
|
17
16
|
interface IWithDiagnostics<T> {
|
@@ -6,6 +6,7 @@ export * from './CancellationToken.js';
|
|
6
6
|
export * from './Constants.js';
|
7
7
|
export * from './Debug.js';
|
8
8
|
export * from './Delayed.js';
|
9
|
+
export * from './Displayable.js';
|
9
10
|
export * from './Errors.js';
|
10
11
|
export * from './FormatString.js';
|
11
12
|
export * from './Interner.js';
|
@@ -24,7 +25,6 @@ export * from './PerformanceMeasurement.js';
|
|
24
25
|
export * from './Query.js';
|
25
26
|
export * from './Range.js';
|
26
27
|
export * from './Result.js';
|
27
|
-
export * from './SearchName.js';
|
28
28
|
export * from './ThrottledCancellationToken.js';
|
29
29
|
export * from './TreeQuery.js';
|
30
30
|
export * from './TreeTraversal.js';
|