@artel/artc 0.6.26016 → 0.6.26017
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 +3 -7
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +64 -253
- package/build/{chunk-R55UIINW.js → chunk-65XBWCU7.js} +2 -2
- package/build/{chunk-46EEXYHP.js → chunk-SJFIPH42.js} +2133 -3888
- package/build/{chunk-6YO3VB2X.js → chunk-UCBPXOLW.js} +1 -1
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +0 -1
- package/build/types/analysis/Analyzer.d.ts +8 -29
- package/build/types/analysis/BaseExpressionMeaning.d.ts +2 -14
- package/build/types/analysis/CallExpressionMeaning.d.ts +1 -11
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +2 -19
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +2 -17
- package/build/types/analysis/ReductionSourceMemberFinder.d.ts +0 -1
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +1 -3
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -1
- package/build/types/analysis/SpecialNameKey.d.ts +32 -0
- package/build/types/analysis/TypeMemberConflictsValidator.d.ts +0 -1
- package/build/types/analysis/TypeMemberLookup.d.ts +1 -5
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +1 -1
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +2 -2
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +1 -6
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +2 -30
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +1 -5
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +2 -6
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +2 -6
- package/build/types/analysis/semantic-context/SpecialLocalDeclarationsBuilder.d.ts +0 -1
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +2 -17
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +1 -9
- package/build/types/common/Name.d.ts +3 -7
- package/build/types/diagnostic/DiagnosticCode.d.ts +110 -109
- package/build/types/emitter/EntityMap.d.ts +0 -1
- package/build/types/emitter/IrBuilder.d.ts +1 -2
- package/build/types/emitter/ir/Nodes.d.ts +24 -26
- package/build/types/entities/Entity.d.ts +2 -3
- package/build/types/entities/EntityLocalizationContext.d.ts +2 -3
- package/build/types/entities/OperatorKind.d.ts +20 -20
- package/build/types/entities/TypeEntityMembers.d.ts +2 -10
- package/build/types/entities/interfaces/FunctionEntity.d.ts +2 -1
- package/build/types/entities/interfaces/VariableEntity.d.ts +2 -2
- package/build/types/entities/interfaces/index.d.ts +0 -1
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +4 -2
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/source/SourceFunctionEntity.d.ts +4 -1
- package/build/types/entities/source/index.d.ts +0 -1
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +2 -1
- package/build/types/entities/translated/index.d.ts +0 -1
- package/build/types/parser/TokenKind.d.ts +1 -2
- package/build/types/services/DisplayService.d.ts +5 -27
- package/build/types/services/NodeSemanticInfo.d.ts +1 -6
- package/build/types/services/signature-help/SignatureWithParameters.d.ts +1 -8
- package/build/types/tree/BaseNode.d.ts +5 -5
- package/build/types/tree/Nodes.d.ts +7 -31
- package/build/types/tree/OperatorKind.d.ts +16 -17
- package/build/types/tree/SyntaxFactory.d.ts +0 -1
- package/build/types/tree/SyntaxToCode.d.ts +0 -1
- package/build/types/tree/TokenKind.d.ts +1 -2
- package/build/types/tree/index.d.ts +5 -5
- package/build/types/ts-interop/Entities.d.ts +3 -1
- package/build/types/types/TypeMembers.d.ts +3 -24
- package/package.json +1 -1
- package/build/types/analysis/OperatorAccessResolver.d.ts +0 -10
- package/build/types/entities/interfaces/OperatorEntity.d.ts +0 -25
- package/build/types/entities/source/SourceOperatorEntity.d.ts +0 -42
- package/build/types/entities/translated/TranslatedOperatorEntity.d.ts +0 -54
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Analyzer } from '../analysis/index.js';
|
|
2
2
|
import { Name } from '../common/index.js';
|
|
3
|
-
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, FieldEntity, IndexerEntity, MethodEntity,
|
|
3
|
+
import { ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, EntityHidingLevel, FieldEntity, IndexerEntity, MethodEntity, OperatorKind, ParameterEntity, TypeParameterEntity } from '../entities/index.js';
|
|
4
4
|
import { FunctionType } from './FunctionType.js';
|
|
5
5
|
import { Substitutions } from './Substitutions.js';
|
|
6
6
|
import { Type } from './Type.js';
|
|
7
|
-
export type TypeMember = Field | Method |
|
|
7
|
+
export type TypeMember = Field | Method | Constructor | Destructor | Indexer | DereferenceOperator;
|
|
8
8
|
export type NamedTypeMember = Field | Method;
|
|
9
9
|
export declare function isNamedTypeMember(member: TypeMember): member is NamedTypeMember;
|
|
10
10
|
export type AnonymousTypeMember = Exclude<TypeMember, NamedTypeMember>;
|
|
@@ -30,6 +30,7 @@ export declare class Method implements ITypeMember {
|
|
|
30
30
|
isOverride(): boolean;
|
|
31
31
|
applySubstitutions(substitutions: Substitutions): Method;
|
|
32
32
|
getTypeParametersArity(): number;
|
|
33
|
+
getOperatorKind(): OperatorKind | undefined;
|
|
33
34
|
equals(other: TypeMember, considerLocale?: boolean): boolean;
|
|
34
35
|
toString(): string;
|
|
35
36
|
}
|
|
@@ -64,28 +65,6 @@ export declare class Field implements ITypeMember {
|
|
|
64
65
|
equals(other: TypeMember, considerLocale?: boolean): boolean;
|
|
65
66
|
toString(): string;
|
|
66
67
|
}
|
|
67
|
-
export declare class Operator implements ITypeMember {
|
|
68
|
-
private readonly analyzer;
|
|
69
|
-
private readonly entity;
|
|
70
|
-
private readonly substitutions;
|
|
71
|
-
readonly kind = "operator";
|
|
72
|
-
private readonly parameters;
|
|
73
|
-
private readonly signatureEntity;
|
|
74
|
-
get debuggerDisplay(): string;
|
|
75
|
-
constructor(analyzer: Analyzer, entity: OperatorEntity, substitutions: Substitutions);
|
|
76
|
-
getOperatorKind(): OperatorKind;
|
|
77
|
-
getParameters(): readonly Parameter[];
|
|
78
|
-
getReturnType(): Type;
|
|
79
|
-
getEntity(): OperatorEntity;
|
|
80
|
-
getSubstitutions(): Substitutions;
|
|
81
|
-
getSignatureType(): FunctionType;
|
|
82
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
83
|
-
isStatic(): boolean;
|
|
84
|
-
isOverride(): boolean;
|
|
85
|
-
applySubstitutions(substitutions: Substitutions): Operator;
|
|
86
|
-
equals(other: TypeMember, considerLocale?: boolean): boolean;
|
|
87
|
-
toString(): string;
|
|
88
|
-
}
|
|
89
68
|
export declare class Constructor implements ITypeMember {
|
|
90
69
|
private readonly analyzer;
|
|
91
70
|
private readonly entity;
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DiagnosticAcceptorWithArgumentFactory } from '../diagnostic/Diagnostic.js';
|
|
2
|
-
import * as tree from '../tree/index.js';
|
|
3
|
-
import * as types from '../types/index.js';
|
|
4
|
-
import { Analyzer } from './Analyzer.js';
|
|
5
|
-
import { NodeOrDiagnosticLocation } from './Utils.js';
|
|
6
|
-
export declare class Resolver {
|
|
7
|
-
static resolveByCallExpression(analyzer: Analyzer, candidates: readonly types.Operator[], node: tree.CallExpression, diagnostics: DiagnosticAcceptorWithArgumentFactory | undefined): readonly types.Operator[];
|
|
8
|
-
static resolveByTargetType(analyzer: Analyzer, candidates: readonly types.Operator[], targetType: types.Type | undefined, diagnostics: DiagnosticAcceptorWithArgumentFactory | undefined, diagnosticLocation: NodeOrDiagnosticLocation | undefined): readonly types.Operator[];
|
|
9
|
-
private static reportAmbiguousAccessDiagnostic;
|
|
10
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as tree from '../../tree/index.js';
|
|
2
|
-
import * as types from '../../types/index.js';
|
|
3
|
-
import { IEntity } from '../IEntity.js';
|
|
4
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, OperatorKind, ParameterEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
5
|
-
export interface OperatorEntity extends IEntity {
|
|
6
|
-
readonly kind: EntityKind.Operator;
|
|
7
|
-
getOperatorKind(): OperatorKind;
|
|
8
|
-
getParameters(): readonly ParameterEntity[];
|
|
9
|
-
getReturnType(): types.Type;
|
|
10
|
-
getDefinition(): OperatorEntityDefinition;
|
|
11
|
-
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
12
|
-
isStatic(): boolean;
|
|
13
|
-
isOverride(): boolean;
|
|
14
|
-
markedBasic(): boolean;
|
|
15
|
-
markedAbstract(): boolean;
|
|
16
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
17
|
-
getOverriddenMembers(): readonly types.Operator[];
|
|
18
|
-
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Operator> | undefined;
|
|
19
|
-
getOriginalEntity(): OperatorEntity;
|
|
20
|
-
ensureAllDiagnosticsReported?(): void;
|
|
21
|
-
}
|
|
22
|
-
export type OperatorEntityDefinition = {
|
|
23
|
-
kind: DefinitionKind.Source;
|
|
24
|
-
node: tree.OperatorDeclaration;
|
|
25
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Analyzer } from '../../analysis/index.js';
|
|
2
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
3
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
4
|
-
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
|
-
import * as tree from '../../tree/index.js';
|
|
6
|
-
import * as types from '../../types/index.js';
|
|
7
|
-
import { EntityHidingLevel, EntityKind, OperatorEntity, OperatorEntityDefinition, OperatorKind, PackageEntity, ParameterEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
8
|
-
export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
9
|
-
private readonly analyzer;
|
|
10
|
-
private readonly node;
|
|
11
|
-
readonly kind = EntityKind.Operator;
|
|
12
|
-
private readonly operatorKind;
|
|
13
|
-
private readonly parameters;
|
|
14
|
-
private readonly returnType;
|
|
15
|
-
private readonly hiding;
|
|
16
|
-
private readonly isPreservedReducedTypeMember_;
|
|
17
|
-
private containingEntity;
|
|
18
|
-
private modifierFlags_;
|
|
19
|
-
private hasReportedAllDiagnostic;
|
|
20
|
-
private get modifierFlags();
|
|
21
|
-
constructor(analyzer: Analyzer, node: tree.OperatorDeclaration);
|
|
22
|
-
getOperatorKind(): OperatorKind;
|
|
23
|
-
getParameters(): readonly ParameterEntity[];
|
|
24
|
-
getReturnType(): types.Type;
|
|
25
|
-
getDefinition(): OperatorEntityDefinition;
|
|
26
|
-
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
27
|
-
getContainingPackage(): PackageEntity;
|
|
28
|
-
isStatic(): boolean;
|
|
29
|
-
markedBasic(): boolean;
|
|
30
|
-
isOverride(): boolean;
|
|
31
|
-
markedAbstract(): boolean;
|
|
32
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
33
|
-
getTags(): readonly Tag[];
|
|
34
|
-
getOverriddenMembers(): readonly types.Operator[];
|
|
35
|
-
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Operator> | undefined;
|
|
36
|
-
getTranslation(): Translation | undefined;
|
|
37
|
-
getLocale(): PackageLocale;
|
|
38
|
-
getDialect(): PackageDialect;
|
|
39
|
-
getOriginalEntity(): OperatorEntity;
|
|
40
|
-
ensureAllDiagnosticsReported(): void;
|
|
41
|
-
private convertSyntaxOperatorKind;
|
|
42
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPackage.js';
|
|
2
|
-
import { Analyzer } from '../../analysis/Analyzer.js';
|
|
3
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
4
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
5
|
-
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
6
|
-
import * as tree from '../../tree/index.js';
|
|
7
|
-
import * as types from '../../types/index.js';
|
|
8
|
-
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
9
|
-
import { EntityKind, OperatorKind, PackageEntity, PreservedReducedTypeEntityMemberInfo, TypeWithMembersOrExtensionEntity } from '../index.js';
|
|
10
|
-
import type { OperatorEntity, OperatorEntityDefinition } from '../interfaces/OperatorEntity.js';
|
|
11
|
-
import { ParameterEntity } from '../interfaces/VariableEntity.js';
|
|
12
|
-
export declare abstract class TranslatedOperatorEntity implements OperatorEntity {
|
|
13
|
-
readonly kind = EntityKind.Operator;
|
|
14
|
-
protected readonly analyzer: Analyzer;
|
|
15
|
-
protected readonly originalEntity: OperatorEntity;
|
|
16
|
-
protected readonly translation: Translation;
|
|
17
|
-
protected readonly translationPackage: AnalyzedTranslationPackage;
|
|
18
|
-
protected readonly containingEntity: TypeWithMembersOrExtensionEntity;
|
|
19
|
-
private readonly returnType;
|
|
20
|
-
private readonly overriddenMembers;
|
|
21
|
-
private readonly isPreservedReducedTypeMember_;
|
|
22
|
-
constructor(analyzer: Analyzer, originalEntity: OperatorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
23
|
-
abstract getParameters(): readonly ParameterEntity[];
|
|
24
|
-
getContainingEntity(): TypeWithMembersOrExtensionEntity;
|
|
25
|
-
getContainingPackage(): PackageEntity;
|
|
26
|
-
getTranslation(): Translation | undefined;
|
|
27
|
-
getLocale(): PackageLocale;
|
|
28
|
-
getDialect(): PackageDialect;
|
|
29
|
-
getOriginalEntity(): OperatorEntity;
|
|
30
|
-
getOperatorKind(): OperatorKind;
|
|
31
|
-
getReturnType(): types.Type;
|
|
32
|
-
getDefinition(): OperatorEntityDefinition;
|
|
33
|
-
isStatic(): boolean;
|
|
34
|
-
isOverride(): boolean;
|
|
35
|
-
markedBasic(): boolean;
|
|
36
|
-
markedAbstract(): boolean;
|
|
37
|
-
getOverriddenMembers(): readonly types.Operator[];
|
|
38
|
-
isPreservedReducedTypeMember(): PreservedReducedTypeEntityMemberInfo<types.Operator> | undefined;
|
|
39
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
40
|
-
getTags(): readonly Tag[];
|
|
41
|
-
}
|
|
42
|
-
export declare class SourceTranslatedOperatorEntity extends TranslatedOperatorEntity {
|
|
43
|
-
readonly kind = EntityKind.Operator;
|
|
44
|
-
private readonly node;
|
|
45
|
-
private readonly parameters;
|
|
46
|
-
constructor(analyzer: Analyzer, originalEntity: OperatorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity, node: tree.MethodTranslation | undefined);
|
|
47
|
-
getParameters(): readonly ParameterEntity[];
|
|
48
|
-
}
|
|
49
|
-
export declare class UnfinishedIntrinsicTranslatedOperatorEntity {
|
|
50
|
-
private readonly unfinishedValue_;
|
|
51
|
-
get unfinishedValue(): OperatorEntity;
|
|
52
|
-
constructor(analyzer: Analyzer, originalEntity: OperatorEntity, translation: Translation, translationPackage: AnalyzedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
53
|
-
finish(parameters: readonly ParameterEntity[]): OperatorEntity;
|
|
54
|
-
}
|