@artel/artc 0.6.25211 → 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 +20 -18
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +748 -485
- package/build/{chunk-Y3KGPV3L.js → chunk-DYVLHEXS.js} +10754 -10037
- package/build/{chunk-5BGDYCRQ.js → chunk-MRSDFDBD.js} +9 -8
- package/build/{chunk-EYLAO2SF.js → chunk-XGS3PSIF.js} +3 -3
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -1
- package/build/types/analysis/Analyzer.d.ts +33 -15
- 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 +1 -1
- package/build/types/common/LocalizationHelper.d.ts +5 -2
- 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/ir/Nodes.d.ts +24 -22
- package/build/types/entities/OperatorEntity.d.ts +7 -9
- package/build/types/entities/OperatorKind.d.ts +19 -26
- 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 +2 -2
- package/build/types/entities/index.d.ts +7 -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 +42 -50
- package/build/types/services/NodeSemanticInfo.d.ts +6 -11
- package/build/types/services/SemanticTokensService.d.ts +4 -3
- package/build/types/tree/NodeKind.d.ts +105 -104
- package/build/types/tree/OperatorKind.d.ts +24 -7
- package/build/types/tree/green/Nodes.d.ts +28 -5
- package/build/types/tree/green/SyntaxToCode.d.ts +1 -0
- package/build/types/tree/green/Token.d.ts +4 -3
- package/build/types/tree/red/Nodes.d.ts +26 -8
- package/build/types/tree/red/Token.d.ts +3 -2
- package/build/types/types/TypeMembers.d.ts +20 -29
- package/package.json +3 -3
- package/build/types/analysis/BuiltInOperators.d.ts +0 -14
- package/build/types/common/UriTree.d.ts +0 -41
- package/build/types/entities/BinaryOperatorEntity.d.ts +0 -54
- package/build/types/entities/UnaryOperatorEntity.d.ts +0 -37
- package/build/types/parser/OperatorDictionary.d.ts +0 -11
@@ -1,41 +0,0 @@
|
|
1
|
-
import { Uri } from './Uri.js';
|
2
|
-
export declare class UriTree<T> {
|
3
|
-
private readonly _roots;
|
4
|
-
add(uri: Uri, data: T): void;
|
5
|
-
/**
|
6
|
-
* @returns элемент если он существовал, иначе `undefined`.
|
7
|
-
*/
|
8
|
-
delete(uri: Uri): T | undefined;
|
9
|
-
getItem(uri: Uri): T | undefined;
|
10
|
-
enumerateRoots(): Iterable<{
|
11
|
-
uri: Uri;
|
12
|
-
value: T;
|
13
|
-
}>;
|
14
|
-
enumerateChildren(uri: Uri): Iterable<{
|
15
|
-
uri: Uri;
|
16
|
-
value: T;
|
17
|
-
}>;
|
18
|
-
traverse(uri: Uri, f: (node: Node<T>) => void): readonly string[];
|
19
|
-
forEachItem(f: (item: T) => void): void;
|
20
|
-
enumerateItems(rootUri?: Uri): Iterable<{
|
21
|
-
uri: Uri;
|
22
|
-
value: T;
|
23
|
-
}>;
|
24
|
-
private getNode;
|
25
|
-
private getOrCreateRootNode;
|
26
|
-
private getRootNode;
|
27
|
-
}
|
28
|
-
declare class Node<T> {
|
29
|
-
readonly uri: Uri;
|
30
|
-
private _data;
|
31
|
-
private readonly _children;
|
32
|
-
constructor(uri: Uri, _data: T | undefined);
|
33
|
-
get item(): T | undefined;
|
34
|
-
getChild(segment: string): Node<T> | undefined;
|
35
|
-
getOrAddChild(segment: string, factory: () => Node<T>): Node<T>;
|
36
|
-
addChild(segment: string, node: Node<T>): void;
|
37
|
-
deleteChild(segment: string): void;
|
38
|
-
setData(data: T): void;
|
39
|
-
getChildren(): Iterable<Node<T>>;
|
40
|
-
}
|
41
|
-
export {};
|
@@ -1,54 +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
|
-
BitwiseAnd = 15,
|
35
|
-
BitwiseOr = 16,
|
36
|
-
BitwiseXor = 17
|
37
|
-
}
|
38
|
-
export declare class IntrinsicBinaryOperatorEntity implements BinaryOperatorEntity {
|
39
|
-
private readonly _operatorKind;
|
40
|
-
private readonly _leftOperandType;
|
41
|
-
private readonly _rightOperandType;
|
42
|
-
private readonly _resultType;
|
43
|
-
private readonly _container;
|
44
|
-
readonly kind = EntityKind.BinaryOperator;
|
45
|
-
constructor(_operatorKind: BinaryOperatorKind, _leftOperandType: types.Type, _rightOperandType: types.Type, _resultType: types.Type, _container: TypeMemberEntityContainer);
|
46
|
-
getOperatorKind(): BinaryOperatorKind;
|
47
|
-
getLeftOperandType(): types.Type;
|
48
|
-
getRightOperandType(): types.Type;
|
49
|
-
getResultType(): types.Type;
|
50
|
-
getDefinition(): BinaryOperatorDefinition;
|
51
|
-
getContainer(): TypeMemberEntityContainer;
|
52
|
-
isHidden(): EntityHidingLevel | undefined;
|
53
|
-
getTags(): readonly Tag[];
|
54
|
-
}
|
@@ -1,37 +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
|
-
BitwiseNot = 3
|
22
|
-
}
|
23
|
-
export declare class IntrinsicUnaryOperatorEntity implements UnaryOperatorEntity {
|
24
|
-
readonly _operatorKind: UnaryOperatorKind;
|
25
|
-
private readonly _operandType;
|
26
|
-
private readonly _resultType;
|
27
|
-
private readonly _container;
|
28
|
-
readonly kind = EntityKind.UnaryOperator;
|
29
|
-
constructor(_operatorKind: UnaryOperatorKind, _operandType: types.Type, _resultType: types.Type, _container: TypeMemberEntityContainer);
|
30
|
-
getOperatorKind(): UnaryOperatorKind;
|
31
|
-
getOperandType(): types.Type;
|
32
|
-
getResultType(): types.Type;
|
33
|
-
getDefinition(): UnaryOperatorDefinition;
|
34
|
-
getContainer(): TypeMemberEntityContainer;
|
35
|
-
isHidden(): EntityHidingLevel | undefined;
|
36
|
-
getTags(): readonly Tag[];
|
37
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { OperatorKind } from '../tree/OperatorKind.js';
|
2
|
-
/**
|
3
|
-
* Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
|
4
|
-
*/
|
5
|
-
export type KindOfOperatorDefinedByToken = OperatorKind.Plus | OperatorKind.Minus | OperatorKind.ImplicitConversion | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanEquals | OperatorKind.GreaterThanEquals | OperatorKind.AddEquals | OperatorKind.SubtractEquals | OperatorKind.MultiplyEquals | OperatorKind.DivideEquals | OperatorKind.IntegerDivideEquals | OperatorKind.ModuloEquals;
|
6
|
-
/**
|
7
|
-
* Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
|
8
|
-
*/
|
9
|
-
export type KindOfOperatorDefinedByKeyword = OperatorKind.Not | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor;
|
10
|
-
export declare const operatorKindByTokenText: Record<string, KindOfOperatorDefinedByToken | undefined>;
|
11
|
-
export declare const operatorKindByKeywordKind: Record<number, KindOfOperatorDefinedByKeyword | undefined>;
|