@artel/artc 0.6.25210 → 0.6.25212
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 +26 -14
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +774 -526
- package/build/{chunk-3ORG7RXI.js → chunk-DYVLHEXS.js} +11186 -10587
- package/build/{chunk-CAQIZO5K.js → chunk-MRSDFDBD.js} +9 -8
- package/build/{chunk-HRQLSHI7.js → chunk-XGS3PSIF.js} +3 -3
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -1
- package/build/types/analysis/Analyzer.d.ts +33 -16
- package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -2
- package/build/types/analysis/CallExpressionMeaning.d.ts +6 -1
- package/build/types/analysis/DiagnosticCollector.d.ts +1 -0
- package/build/types/analysis/EntityLocalizationHelper.d.ts +3 -1
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +12 -4
- package/build/types/analysis/Lookup.d.ts +6 -2
- package/build/types/analysis/PrefixUnaryOperatorResolver.d.ts +1 -3
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +13 -4
- package/build/types/analysis/Scope.d.ts +17 -3
- package/build/types/analysis/SemanticContext.d.ts +18 -1
- package/build/types/analysis/SemanticContextBuilder.d.ts +2 -0
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +1 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +3 -3
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +2 -2
- package/build/types/common/Cached.d.ts +1 -0
- package/build/types/common/Debug.d.ts +3 -0
- package/build/types/common/LocalizationHelper.d.ts +5 -2
- package/build/types/common/Logger.d.ts +1 -1
- package/build/types/common/Uri.d.ts +11 -2
- package/build/types/common/index.d.ts +0 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +126 -115
- package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +7 -0
- package/build/types/emitter/Entities.d.ts +1 -0
- package/build/types/emitter/EntityMap.d.ts +1 -2
- package/build/types/emitter/IrBuilder.d.ts +2 -0
- package/build/types/emitter/StatementTransformationResult.d.ts +3 -1
- package/build/types/emitter/Transformer.d.ts +1 -1
- package/build/types/emitter/ir/Nodes.d.ts +38 -34
- package/build/types/entities/EntityHiding.d.ts +2 -2
- package/build/types/entities/OperatorEntity.d.ts +43 -0
- package/build/types/entities/OperatorKind.d.ts +56 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +3 -3
- package/build/types/entities/TypeEntityMembers.d.ts +9 -14
- package/build/types/entities/TypeExtensionEntity.d.ts +0 -1
- package/build/types/entities/VariableEntity.d.ts +3 -13
- package/build/types/entities/index.d.ts +10 -12
- package/build/types/parser/Parser.d.ts +2 -2
- package/build/types/project/FileSystemTree.d.ts +1 -1
- package/build/types/services/CompletionService.d.ts +26 -20
- package/build/types/services/DisplayService.d.ts +47 -55
- package/build/types/services/NodeSemanticInfo.d.ts +6 -11
- package/build/types/services/SemanticTokensService.d.ts +4 -3
- package/build/types/tree/KeywordKind.d.ts +25 -29
- package/build/types/tree/NodeKind.d.ts +89 -92
- package/build/types/tree/OperatorKind.d.ts +40 -0
- package/build/types/tree/green/Nodes.d.ts +52 -85
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -0
- package/build/types/tree/green/Token.d.ts +7 -5
- package/build/types/tree/green/index.d.ts +1 -0
- package/build/types/tree/index.d.ts +0 -3
- package/build/types/tree/red/Nodes.d.ts +44 -78
- package/build/types/tree/red/Token.d.ts +3 -2
- package/build/types/tree/red/index.d.ts +4 -0
- package/build/types/ts-interop/Entities.d.ts +0 -4
- package/build/types/types/TypeMembers.d.ts +20 -29
- package/package.json +6 -6
- package/build/types/analysis/BuiltInOperators.d.ts +0 -14
- package/build/types/common/UriTree.d.ts +0 -41
- package/build/types/emitter/IntrinsicEntities.d.ts +0 -118
- package/build/types/entities/BinaryOperatorEntity.d.ts +0 -51
- package/build/types/entities/UnaryOperatorEntity.d.ts +0 -36
- /package/build/types/emitter/{error-boundary.d.ts → ErrorBoundary.d.ts} +0 -0
@@ -1,118 +0,0 @@
|
|
1
|
-
import * as tags from '../analysis/Tags.js';
|
2
|
-
import { Tag } from '../analysis/Tags.js';
|
3
|
-
import { Name } from '../common/index.js';
|
4
|
-
import type { EntityOwningGetter, EntityOwningSetter } from '../entities/index.js';
|
5
|
-
import { ConstructorEntity, Entity, EntityHidingLevel, EntityKind, GetterEntity, GetterEntityDefinition, IndexerEntity, LocalVariableEntity, PackageEntity, PackageMethodEntity, ParameterVariableEntity, ParameterVariableEntityContainer, SetterEntity, SetterEntityDefinition, SpecialVariableEntityInfo, TypeEntityWithMembers, TypeMemberEntityContainer, TypeMethodEntity, TypeParameterEntity, TypeVariableEntity, VariableEntityDefinition } from '../entities/index.js';
|
6
|
-
import * as types from '../types/index.js';
|
7
|
-
export declare class EmitterIntrinsicTypeVariableEntity implements TypeVariableEntity {
|
8
|
-
private readonly _name;
|
9
|
-
private readonly _type;
|
10
|
-
private readonly _container;
|
11
|
-
private readonly _isStatic;
|
12
|
-
readonly kind = EntityKind.Variable;
|
13
|
-
readonly subkind = "type";
|
14
|
-
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean);
|
15
|
-
getName(): Name;
|
16
|
-
getType(): types.Type;
|
17
|
-
getDefinition(): VariableEntityDefinition;
|
18
|
-
getGetter(): GetterEntity | undefined;
|
19
|
-
getSetter(): SetterEntity | undefined;
|
20
|
-
isConstant(): boolean;
|
21
|
-
isHidden(): EntityHidingLevel | undefined;
|
22
|
-
isSpecial(): SpecialVariableEntityInfo | undefined;
|
23
|
-
getTags(): readonly Tag[];
|
24
|
-
getContainer(): TypeMemberEntityContainer;
|
25
|
-
isStatic(): boolean;
|
26
|
-
isRedefinable(): boolean;
|
27
|
-
isRedefined(): boolean;
|
28
|
-
isAbstract(): boolean;
|
29
|
-
isConsistent(): boolean;
|
30
|
-
isObservable(): boolean;
|
31
|
-
}
|
32
|
-
export declare class EmitterIntrinsicParameterVariableEntity implements ParameterVariableEntity {
|
33
|
-
private readonly _name;
|
34
|
-
private readonly _type;
|
35
|
-
private readonly _container;
|
36
|
-
private readonly _isOptional;
|
37
|
-
private readonly _isVariadic;
|
38
|
-
readonly kind = EntityKind.Variable;
|
39
|
-
readonly subkind = "parameter";
|
40
|
-
constructor(_name: Name, _type: types.Type, _container: ParameterVariableEntityContainer, _isOptional: boolean, _isVariadic: boolean);
|
41
|
-
getName(): Name;
|
42
|
-
getType(): types.Type;
|
43
|
-
getDefinition(): VariableEntityDefinition;
|
44
|
-
getGetter(): GetterEntity | undefined;
|
45
|
-
getSetter(): SetterEntity | undefined;
|
46
|
-
isConstant(): boolean;
|
47
|
-
isHidden(): EntityHidingLevel | undefined;
|
48
|
-
isSpecial(): SpecialVariableEntityInfo | undefined;
|
49
|
-
getTags(): readonly Tag[];
|
50
|
-
getContainer(): ParameterVariableEntityContainer;
|
51
|
-
isOptional(): boolean;
|
52
|
-
isVariadic(): boolean;
|
53
|
-
}
|
54
|
-
export declare class EmitterIntrinsicLocalVariableEntity implements LocalVariableEntity {
|
55
|
-
private readonly _name;
|
56
|
-
private readonly _type;
|
57
|
-
private readonly _isConstant;
|
58
|
-
readonly kind = EntityKind.Variable;
|
59
|
-
readonly subkind = "local";
|
60
|
-
constructor(_name: Name, _type: types.Type, _isConstant: boolean);
|
61
|
-
getName(): Name;
|
62
|
-
getType(): types.Type;
|
63
|
-
getDefinition(): VariableEntityDefinition;
|
64
|
-
getGetter(): GetterEntity | undefined;
|
65
|
-
getSetter(): SetterEntity | undefined;
|
66
|
-
isConstant(): boolean;
|
67
|
-
isHidden(): EntityHidingLevel | undefined;
|
68
|
-
isSpecial(): SpecialVariableEntityInfo | undefined;
|
69
|
-
getTags(): readonly Tag[];
|
70
|
-
getContainingEntity(): Entity;
|
71
|
-
}
|
72
|
-
export declare class UnfinishedEmitterIntrinsicPackageMethodEntity {
|
73
|
-
private readonly _unfinishedValue;
|
74
|
-
get unfinishedValue(): PackageMethodEntity;
|
75
|
-
constructor(name: Name, typeParameters: readonly TypeParameterEntity[], returnType: types.Type, isAsync: boolean, containingPackage: PackageEntity);
|
76
|
-
finish(parameters: readonly ParameterVariableEntity[]): PackageMethodEntity;
|
77
|
-
}
|
78
|
-
export declare class UnfinishedEmitterIntrinsicTypeMethodEntity {
|
79
|
-
private readonly _unfinishedValue;
|
80
|
-
get unfinishedValue(): TypeMethodEntity;
|
81
|
-
constructor(name: Name, typeParameters: readonly TypeParameterEntity[], returnType: types.Type, isAsync: boolean, container: TypeMemberEntityContainer, isStatic: boolean, isModifyingOwningPlainObject: boolean);
|
82
|
-
finish(parameters: readonly ParameterVariableEntity[]): TypeMethodEntity;
|
83
|
-
}
|
84
|
-
export declare class EmitterIntrinsicGetterEntity implements GetterEntity {
|
85
|
-
private readonly _isModifyingOwningPlainObject;
|
86
|
-
private readonly _containingEntity;
|
87
|
-
readonly kind = EntityKind.Getter;
|
88
|
-
constructor(_isModifyingOwningPlainObject: boolean, _containingEntity: EntityOwningGetter);
|
89
|
-
getReturnType(): types.Type;
|
90
|
-
getDefinition(): GetterEntityDefinition;
|
91
|
-
isModifyingOwningPlainObject(): boolean;
|
92
|
-
getOwningEntity(): EntityOwningGetter;
|
93
|
-
getTags(): readonly tags.Tag[];
|
94
|
-
isHidden(): EntityHidingLevel | undefined;
|
95
|
-
}
|
96
|
-
export declare class EmitterIntrinsicSetterEntity implements SetterEntity {
|
97
|
-
private readonly _isModifyingOwningPlainObject;
|
98
|
-
private readonly _containingEntity;
|
99
|
-
readonly kind = EntityKind.Setter;
|
100
|
-
constructor(_isModifyingOwningPlainObject: boolean, _containingEntity: EntityOwningSetter);
|
101
|
-
getDefinition(): SetterEntityDefinition;
|
102
|
-
isModifyingOwningPlainObject(): boolean;
|
103
|
-
getOwningEntity(): EntityOwningSetter;
|
104
|
-
getTags(): readonly tags.Tag[];
|
105
|
-
isHidden(): EntityHidingLevel | undefined;
|
106
|
-
}
|
107
|
-
export declare class UnfinishedEmitterIntrinsicConstructorEntity {
|
108
|
-
private readonly _unfinishedValue;
|
109
|
-
get unfinishedValue(): ConstructorEntity;
|
110
|
-
constructor(containingEntity: TypeEntityWithMembers);
|
111
|
-
finish(parameters: readonly ParameterVariableEntity[]): ConstructorEntity;
|
112
|
-
}
|
113
|
-
export declare class UnfinishedEmitterIntrinsicIndexerEntity {
|
114
|
-
private readonly _unfinishedValue;
|
115
|
-
get unfinishedValue(): IndexerEntity;
|
116
|
-
constructor(type: types.Type, container: TypeMemberEntityContainer, isStatic: boolean, getter: GetterEntity | undefined, setter: SetterEntity | undefined);
|
117
|
-
finish(parameters: readonly ParameterVariableEntity[]): IndexerEntity;
|
118
|
-
}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import { Tag } from '../analysis/Tags.js';
|
2
|
-
import * as types from '../types/index.js';
|
3
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, TypeMemberEntityContainer } from './index.js';
|
4
|
-
export interface BinaryOperatorEntity {
|
5
|
-
readonly kind: EntityKind.BinaryOperator;
|
6
|
-
getOperatorKind(): BinaryOperatorKind;
|
7
|
-
getLeftOperandType(): types.Type;
|
8
|
-
getRightOperandType(): types.Type;
|
9
|
-
getResultType(): types.Type;
|
10
|
-
getDefinition(): BinaryOperatorDefinition;
|
11
|
-
getContainer(): TypeMemberEntityContainer;
|
12
|
-
isHidden(): EntityHidingLevel | undefined;
|
13
|
-
getTags(): readonly Tag[];
|
14
|
-
}
|
15
|
-
export type BinaryOperatorDefinition = {
|
16
|
-
kind: DefinitionKind.Intrinsic;
|
17
|
-
};
|
18
|
-
export declare enum BinaryOperatorKind {
|
19
|
-
Add = 0,
|
20
|
-
Subtract = 1,
|
21
|
-
Multiply = 2,
|
22
|
-
Divide = 3,
|
23
|
-
IntegerDivide = 4,
|
24
|
-
Modulo = 5,
|
25
|
-
Equals = 6,
|
26
|
-
NotEquals = 7,
|
27
|
-
LessThan = 8,
|
28
|
-
GreaterThan = 9,
|
29
|
-
LessThanEquals = 10,
|
30
|
-
GreaterThanEquals = 11,
|
31
|
-
Or = 12,
|
32
|
-
And = 13,
|
33
|
-
Xor = 14
|
34
|
-
}
|
35
|
-
export declare class IntrinsicBinaryOperatorEntity implements BinaryOperatorEntity {
|
36
|
-
private readonly _operatorKind;
|
37
|
-
private readonly _leftOperandType;
|
38
|
-
private readonly _rightOperandType;
|
39
|
-
private readonly _resultType;
|
40
|
-
private readonly _container;
|
41
|
-
readonly kind = EntityKind.BinaryOperator;
|
42
|
-
constructor(_operatorKind: BinaryOperatorKind, _leftOperandType: types.Type, _rightOperandType: types.Type, _resultType: types.Type, _container: TypeMemberEntityContainer);
|
43
|
-
getOperatorKind(): BinaryOperatorKind;
|
44
|
-
getLeftOperandType(): types.Type;
|
45
|
-
getRightOperandType(): types.Type;
|
46
|
-
getResultType(): types.Type;
|
47
|
-
getDefinition(): BinaryOperatorDefinition;
|
48
|
-
getContainer(): TypeMemberEntityContainer;
|
49
|
-
isHidden(): EntityHidingLevel | undefined;
|
50
|
-
getTags(): readonly Tag[];
|
51
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { Tag } from '../analysis/Tags.js';
|
2
|
-
import * as types from '../types/index.js';
|
3
|
-
import { DefinitionKind, EntityHidingLevel, EntityKind, TypeMemberEntityContainer } from './index.js';
|
4
|
-
export interface UnaryOperatorEntity {
|
5
|
-
readonly kind: EntityKind.UnaryOperator;
|
6
|
-
getOperatorKind(): UnaryOperatorKind;
|
7
|
-
getOperandType(): types.Type;
|
8
|
-
getResultType(): types.Type;
|
9
|
-
getDefinition(): UnaryOperatorDefinition;
|
10
|
-
getContainer(): TypeMemberEntityContainer;
|
11
|
-
isHidden(): EntityHidingLevel | undefined;
|
12
|
-
getTags(): readonly Tag[];
|
13
|
-
}
|
14
|
-
export type UnaryOperatorDefinition = {
|
15
|
-
kind: DefinitionKind.Intrinsic;
|
16
|
-
};
|
17
|
-
export declare enum UnaryOperatorKind {
|
18
|
-
Plus = 0,
|
19
|
-
Minus = 1,
|
20
|
-
Not = 2
|
21
|
-
}
|
22
|
-
export declare class IntrinsicUnaryOperatorEntity implements UnaryOperatorEntity {
|
23
|
-
readonly _operatorKind: UnaryOperatorKind;
|
24
|
-
private readonly _operandType;
|
25
|
-
private readonly _resultType;
|
26
|
-
private readonly _container;
|
27
|
-
readonly kind = EntityKind.UnaryOperator;
|
28
|
-
constructor(_operatorKind: UnaryOperatorKind, _operandType: types.Type, _resultType: types.Type, _container: TypeMemberEntityContainer);
|
29
|
-
getOperatorKind(): UnaryOperatorKind;
|
30
|
-
getOperandType(): types.Type;
|
31
|
-
getResultType(): types.Type;
|
32
|
-
getDefinition(): UnaryOperatorDefinition;
|
33
|
-
getContainer(): TypeMemberEntityContainer;
|
34
|
-
isHidden(): EntityHidingLevel | undefined;
|
35
|
-
getTags(): readonly Tag[];
|
36
|
-
}
|
File without changes
|