@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
@@ -4,7 +4,7 @@ import { SubstitutedMethod } from '../analysis/SubstitutedMethod.js';
|
|
4
4
|
import { Analyzer } from '../analysis/index.js';
|
5
5
|
import { HelperPhraseKind } from '../common/HelperPhrases.js';
|
6
6
|
import { PackageDialect, PackageLocale } from '../common/index.js';
|
7
|
-
import { AliasTypeEntity,
|
7
|
+
import { AliasTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, GetterEntity, IndexerEntity, MethodEntity, MethodTypeEntity, NamedTypeEntity, OperatorEntity, OperatorKind, PackageAliasEntity, PackageEntity, PackageMethodTypeEntity, PackageStructuredTypeEntity, PackageVariantTypeEntity, SetterEntity, StructuredTypeEntity, TypeEntity, TypeExtensionEntity, TypeParameterEntity, VariableEntity, VariantEntity, VariantTypeEntity } from '../entities/index.js';
|
8
8
|
import { KeywordKind } from '../tree/index.js';
|
9
9
|
import * as types from '../types/index.js';
|
10
10
|
export declare class DisplayService {
|
@@ -23,6 +23,9 @@ export declare class DisplayService {
|
|
23
23
|
getValueParameterDeclarationDisplayParts(parameter: ValueParameterDeclaration, typeDisplayOptions?: TypeDisplayOptions): ValueParameterDeclarationDisplayParts;
|
24
24
|
displayMethodDeclaration(method: MethodDeclaration): string;
|
25
25
|
getMethodDeclarationDisplayParts(method: MethodDeclaration): MethodDeclarationDisplayParts;
|
26
|
+
displayOperatorDeclaration(operator: OperatorDeclaration): string;
|
27
|
+
getOperatorDeclarationDisplayParts(operator: OperatorDeclaration): OperatorDeclarationDisplayParts;
|
28
|
+
displayOperatorKind(kind: OperatorKind, locale: PackageLocale): string;
|
26
29
|
displayConstructorDeclaration(constructor: ConstructorDeclaration): string;
|
27
30
|
getConstructorDeclarationDisplayParts(constructor: ConstructorDeclaration): ConstructorDeclarationDisplayParts;
|
28
31
|
displayDestructorDeclaration(constructor: DestructorDeclaration): string;
|
@@ -35,10 +38,6 @@ export declare class DisplayService {
|
|
35
38
|
getTypeDeclarationDisplayParts(type: TypeDeclaration): TypeDeclarationDisplayParts;
|
36
39
|
getTypeDeclarationEntityDisplayParts(entity: TypeEntity, localization: Localization): TypeDeclarationDisplayParts;
|
37
40
|
displayTypeParameterValue(value: TypeParameterValue): string;
|
38
|
-
displayUnaryOperatorDeclaration(operator: UnaryOperatorDeclaration): string;
|
39
|
-
displayBinaryOperatorDeclaration(operator: BinaryOperatorDeclaration): string;
|
40
|
-
displayBinaryOperatorKind(operatorKind: BinaryOperatorKind): string;
|
41
|
-
displayUnaryOperatorKind(operatorKind: UnaryOperatorKind): string;
|
42
41
|
displayGetterEntity(entity: GetterEntity): string;
|
43
42
|
displaySetterEntity(entity: SetterEntity): string;
|
44
43
|
displayTypeExtensionEntity(entity: TypeExtensionEntity): string;
|
@@ -556,57 +555,36 @@ interface INamedType {
|
|
556
555
|
getEntity(): NamedTypeEntity;
|
557
556
|
getTypeParameters(): readonly TypeParameterEntity[];
|
558
557
|
}
|
559
|
-
export type
|
560
|
-
export declare class
|
561
|
-
readonly operator:
|
562
|
-
readonly
|
563
|
-
constructor(operator: UnaryOperatorEntity);
|
564
|
-
getOperatorKind(): UnaryOperatorKind;
|
565
|
-
getOperandType(): types.Type;
|
566
|
-
getResultType(): types.Type;
|
567
|
-
getTypeMemberContainer(): TypeMemberContainer | undefined;
|
568
|
-
}
|
569
|
-
export declare class UnaryOperatorDeclaration_typeMember implements IUnaryOperatorDeclaration {
|
570
|
-
readonly operator: types.UnaryOperator;
|
571
|
-
readonly kind = "typeMember";
|
572
|
-
constructor(operator: types.UnaryOperator);
|
573
|
-
getOperatorKind(): UnaryOperatorKind;
|
574
|
-
getOperandType(): types.Type;
|
575
|
-
getResultType(): types.Type;
|
576
|
-
getTypeMemberContainer(analyzer: Analyzer | undefined): TypeMemberContainer | undefined;
|
577
|
-
}
|
578
|
-
interface IUnaryOperatorDeclaration {
|
579
|
-
getOperatorKind(): UnaryOperatorKind;
|
580
|
-
getOperandType(): types.Type;
|
581
|
-
getResultType(): types.Type;
|
582
|
-
getTypeMemberContainer(analyzer: Analyzer | undefined): TypeMemberContainer | undefined;
|
583
|
-
}
|
584
|
-
export type BinaryOperatorDeclaration = BinaryOperatorDeclaration_entity | BinaryOperatorDeclaration_typeMember;
|
585
|
-
export declare class BinaryOperatorDeclaration_entity implements IBinaryOperatorDeclaration {
|
586
|
-
readonly operator: BinaryOperatorEntity;
|
558
|
+
export type OperatorDeclaration = OperatorDeclaration_entity | OperatorDeclaration_typeMember;
|
559
|
+
export declare class OperatorDeclaration_entity implements IOperatorDeclaration {
|
560
|
+
readonly operator: OperatorEntity;
|
561
|
+
readonly localization: Localization;
|
587
562
|
readonly kind = "entity";
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
563
|
+
private readonly _valueParameters;
|
564
|
+
constructor(operator: OperatorEntity, localization: Localization);
|
565
|
+
getLocalization(): Localization;
|
566
|
+
getOperatorKind(): OperatorKind;
|
567
|
+
getValueParameters(): readonly ValueParameterDeclaration[];
|
568
|
+
getReturnType(): types.Type;
|
593
569
|
getTypeMemberContainer(): TypeMemberContainer | undefined;
|
594
570
|
}
|
595
|
-
export declare class
|
596
|
-
readonly operator: types.
|
571
|
+
export declare class OperatorDeclaration_typeMember implements IOperatorDeclaration {
|
572
|
+
readonly operator: types.Operator;
|
573
|
+
readonly localization: Localization;
|
597
574
|
readonly kind = "type-member";
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
575
|
+
private readonly _valueParameters;
|
576
|
+
constructor(operator: types.Operator, localization: Localization);
|
577
|
+
getLocalization(): Localization;
|
578
|
+
getOperatorKind(): OperatorKind;
|
579
|
+
getValueParameters(): readonly ValueParameterDeclaration[];
|
580
|
+
getReturnType(): types.Type;
|
603
581
|
getTypeMemberContainer(analyzer: Analyzer | undefined): TypeMemberContainer | undefined;
|
604
582
|
}
|
605
|
-
interface
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
583
|
+
interface IOperatorDeclaration {
|
584
|
+
getLocalization(): Localization;
|
585
|
+
getOperatorKind(): OperatorKind;
|
586
|
+
getValueParameters(): readonly ValueParameterDeclaration[];
|
587
|
+
getReturnType(): types.Type;
|
610
588
|
getTypeMemberContainer(analyzer: Analyzer | undefined): TypeMemberContainer | undefined;
|
611
589
|
}
|
612
590
|
export type TypeUsage = StructuredTypeUsage | VariantTypeUsage | MethodTypeUsage | AliasTypeUsage | ParameterTypeUsage | UnionTypeUsage | UnresolvedTypeUsage;
|
@@ -741,8 +719,8 @@ declare class TypeMemberContainer {
|
|
741
719
|
}
|
742
720
|
export declare class MethodDeclarationDisplayParts {
|
743
721
|
readonly asyncKeywordWithWhitespace: string;
|
744
|
-
readonly
|
745
|
-
readonly
|
722
|
+
readonly functionKeyword: string;
|
723
|
+
readonly whitespaceAfterFunctionKeyword: string;
|
746
724
|
readonly container: string;
|
747
725
|
readonly name: string;
|
748
726
|
readonly typeParametersStart: string;
|
@@ -755,7 +733,21 @@ export declare class MethodDeclarationDisplayParts {
|
|
755
733
|
readonly valueParametersEnd: string;
|
756
734
|
readonly returnTypeAnnotationColon: string;
|
757
735
|
readonly returnType: string;
|
758
|
-
constructor(asyncKeywordWithWhitespace: string,
|
736
|
+
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
737
|
+
toString(): string;
|
738
|
+
}
|
739
|
+
export declare class OperatorDeclarationDisplayParts {
|
740
|
+
readonly functionKeyword: string;
|
741
|
+
readonly whitespaceAfterFunctionKeyword: string;
|
742
|
+
readonly container: string;
|
743
|
+
readonly name: string;
|
744
|
+
readonly valueParametersStart: string;
|
745
|
+
readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
|
746
|
+
readonly valueParameterSeparator: string;
|
747
|
+
readonly valueParametersEnd: string;
|
748
|
+
readonly returnTypeAnnotationColon: string;
|
749
|
+
readonly returnType: string;
|
750
|
+
constructor(functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
759
751
|
toString(): string;
|
760
752
|
}
|
761
753
|
export declare class ValueParameterDeclarationDisplayParts {
|
@@ -817,14 +809,14 @@ export declare class NamedTypeDisplayParts {
|
|
817
809
|
}
|
818
810
|
export declare class MethodTypeBodyDisplayParts {
|
819
811
|
readonly asyncKeywordWithWhitespace: string;
|
820
|
-
readonly
|
812
|
+
readonly functionKeyword: string;
|
821
813
|
readonly valueParametersStart: string;
|
822
814
|
readonly valueParameters: readonly ValueParameterDeclarationDisplayParts[];
|
823
815
|
readonly valueParameterSeparator: string;
|
824
816
|
readonly valueParametersEnd: string;
|
825
817
|
readonly returnTypeAnnotationColon: string;
|
826
818
|
readonly returnType: string;
|
827
|
-
constructor(asyncKeywordWithWhitespace: string,
|
819
|
+
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, valueParametersStart: string, valueParameters: readonly ValueParameterDeclarationDisplayParts[], valueParameterSeparator: string, valueParametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
828
820
|
toString(): string;
|
829
821
|
}
|
830
822
|
export {};
|
@@ -52,7 +52,7 @@ export declare class ReferenceNodeSemanticInfo {
|
|
52
52
|
get firstBetterTargetWithFallback(): WithLocalization<ReferenceTarget>;
|
53
53
|
constructor(targets: ReadonlyNonEmptyArray<WithLocalization<ReferenceTarget>>, isAmbiguous: boolean, betterTargets?: ReadonlyNonEmptyArray<WithLocalization<ReferenceTarget>> | undefined);
|
54
54
|
}
|
55
|
-
export type ReferenceTarget = EntityReferenceTarget | TypeVariableReferenceTarget | TypeValueParameterReferenceTarget | TypeConstructorReferenceTarget |
|
55
|
+
export type ReferenceTarget = EntityReferenceTarget | TypeVariableReferenceTarget | TypeValueParameterReferenceTarget | TypeConstructorReferenceTarget | OperatorReferenceTarget | TypeDereferenceOperatorReferenceTarget | AccessedMethodReferenceTarget | TypeIndexerReferenceTarget | MatchResultValueParameterReferenceTarget | PackageReferenceTarget | TypeContextReferenceTarget;
|
56
56
|
export declare class EntityReferenceTarget {
|
57
57
|
readonly entity: ReferencedEntity;
|
58
58
|
readonly accessKind: AccessKind;
|
@@ -77,16 +77,6 @@ export declare class TypeConstructorReferenceTarget {
|
|
77
77
|
readonly kind = "type-constructor";
|
78
78
|
constructor(constructor_: types.Constructor);
|
79
79
|
}
|
80
|
-
export declare class TypeUnaryOperatorReferenceTarget {
|
81
|
-
readonly operator: types.UnaryOperator;
|
82
|
-
readonly kind = "type-unary-operator";
|
83
|
-
constructor(operator: types.UnaryOperator);
|
84
|
-
}
|
85
|
-
export declare class TypeBinaryOperatorReferenceTarget {
|
86
|
-
readonly operator: types.BinaryOperator;
|
87
|
-
readonly kind = "type-binary-operator";
|
88
|
-
constructor(operator: types.BinaryOperator);
|
89
|
-
}
|
90
80
|
export declare class TypeDereferenceOperatorReferenceTarget {
|
91
81
|
readonly operator: types.DereferenceOperator;
|
92
82
|
readonly accessKind: AccessKind;
|
@@ -98,6 +88,11 @@ export declare class AccessedMethodReferenceTarget {
|
|
98
88
|
readonly kind = "accessed-method";
|
99
89
|
constructor(method: AccessedMethod);
|
100
90
|
}
|
91
|
+
export declare class OperatorReferenceTarget {
|
92
|
+
readonly operator: types.Operator;
|
93
|
+
readonly kind = "operator";
|
94
|
+
constructor(operator: types.Operator);
|
95
|
+
}
|
101
96
|
export declare class MatchResultValueParameterReferenceTarget {
|
102
97
|
readonly parameter: MatchResultValueParameter;
|
103
98
|
readonly accessKind: AccessKind;
|
@@ -29,12 +29,13 @@ export declare const enum SemanticTokenKind {
|
|
29
29
|
Variant = 3,
|
30
30
|
PackageMethod = 4,
|
31
31
|
NestedMethod = 5,
|
32
|
-
TypeMethod = 6
|
32
|
+
TypeMethod = 6,
|
33
|
+
Operator = 7
|
33
34
|
}
|
34
|
-
export declare const supportedSemanticTokens: SemanticTokenKind
|
35
|
+
export declare const supportedSemanticTokens: readonly [SemanticTokenKind.MethodBlockLiteralParameter, SemanticTokenKind.SpecialVariable, SemanticTokenKind.SpecialMethod, SemanticTokenKind.Variant, SemanticTokenKind.PackageMethod, SemanticTokenKind.NestedMethod, SemanticTokenKind.TypeMethod, SemanticTokenKind.Operator];
|
35
36
|
export declare const enum SemanticTokenModifierFlag {
|
36
37
|
Const = 1,
|
37
38
|
Declaration = 2,
|
38
39
|
Capitalized = 4
|
39
40
|
}
|
40
|
-
export declare const supportedSemanticTokenModifiers: SemanticTokenModifierFlag
|
41
|
+
export declare const supportedSemanticTokenModifiers: readonly [SemanticTokenModifierFlag.Const, SemanticTokenModifierFlag.Declaration, SemanticTokenModifierFlag.Capitalized];
|
@@ -10,7 +10,7 @@ export declare enum KeywordKind {
|
|
10
10
|
From = 8,
|
11
11
|
Else = 9,
|
12
12
|
ElseIf = 10,
|
13
|
-
|
13
|
+
Function = 11,
|
14
14
|
If = 12,
|
15
15
|
Is = 13,
|
16
16
|
Return = 14,
|
@@ -34,32 +34,28 @@ export declare enum KeywordKind {
|
|
34
34
|
For = 32,
|
35
35
|
Const = 33,
|
36
36
|
Hidden = 34,
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
Base = 59,
|
62
|
-
None = 60,
|
63
|
-
Get = 61,
|
64
|
-
Set = 62
|
37
|
+
Abstract = 35,
|
38
|
+
Redefinable = 36,
|
39
|
+
Redefined = 37,
|
40
|
+
Async = 38,
|
41
|
+
Static = 39,
|
42
|
+
As = 40,
|
43
|
+
Not = 41,
|
44
|
+
Switch = 42,
|
45
|
+
Case = 43,
|
46
|
+
Await = 44,
|
47
|
+
Dispose = 45,
|
48
|
+
Destruction = 46,
|
49
|
+
InHierarchy = 47,
|
50
|
+
InFile = 48,
|
51
|
+
InPackage = 49,
|
52
|
+
InType = 50,
|
53
|
+
Yes = 51,
|
54
|
+
No = 52,
|
55
|
+
Reference = 53,
|
56
|
+
Translations = 54,
|
57
|
+
Base = 55,
|
58
|
+
None = 56,
|
59
|
+
Get = 57,
|
60
|
+
Set = 58
|
65
61
|
}
|
@@ -52,28 +52,28 @@ export declare enum NodeKind {
|
|
52
52
|
TypeDereferencedVariableGetterDeclaration = 50,
|
53
53
|
TypeDereferencedVariableSetterDeclaration = 51,
|
54
54
|
TypeMethodDeclaration = 52,
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
55
|
+
OperatorDeclaration = 53,
|
56
|
+
TypeVariableDeclaration = 54,
|
57
|
+
TypeVariableGetterDeclaration = 55,
|
58
|
+
TypeVariableSetterDeclaration = 56,
|
59
|
+
InvalidTypeMemberDeclaration = 57,
|
60
|
+
NestedMethodDeclaration = 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
|
+
MethodBlockLiteral = 67,
|
70
|
+
CallArgumentList = 68,
|
71
|
+
CallExpression = 69,
|
72
|
+
AutotypeCallExpression = 70,
|
73
|
+
IndexedAccessArgumentList = 71,
|
74
|
+
IndexedAccessExpression = 72,
|
75
|
+
InvalidExpression = 73,
|
76
|
+
IsExpression = 74,
|
77
77
|
NotExpression = 75,
|
78
78
|
MethodLiteral = 76,
|
79
79
|
ParenthesizedExpression = 77,
|
@@ -90,74 +90,71 @@ export declare enum NodeKind {
|
|
90
90
|
ObjectExpression = 88,
|
91
91
|
BaseExpression = 89,
|
92
92
|
IdentifierExpression = 90,
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
TypeParameterClause = 158,
|
161
|
-
TypeParameterList = 159,
|
162
|
-
TypeAnnotation = 160
|
93
|
+
GenericSpecializationExpression = 91,
|
94
|
+
DefaultMatchExpression = 92,
|
95
|
+
AssignmentStatement = 93,
|
96
|
+
StatementList = 94,
|
97
|
+
StatementBlock = 95,
|
98
|
+
BreakLoopStatement = 96,
|
99
|
+
ContinueLoopStatement = 97,
|
100
|
+
DisposeStatement = 98,
|
101
|
+
RunStatementClauseList = 99,
|
102
|
+
RunStatement = 100,
|
103
|
+
OnErrorClause = 101,
|
104
|
+
ErrorVariableDeclaration = 102,
|
105
|
+
FinallyClause = 103,
|
106
|
+
EmptyStatement = 104,
|
107
|
+
ErrorStatement = 105,
|
108
|
+
ExpressionStatement = 106,
|
109
|
+
EnumerationVariableList = 107,
|
110
|
+
ForStatement = 108,
|
111
|
+
IfStatement = 109,
|
112
|
+
ElseIfClauseList = 110,
|
113
|
+
ElseIfClause = 111,
|
114
|
+
InvalidStatement = 112,
|
115
|
+
NestedMethodDeclarationStatement = 113,
|
116
|
+
LocalVariableDeclarationStatement = 114,
|
117
|
+
LoopStatement = 115,
|
118
|
+
ReturnStatement = 116,
|
119
|
+
CaseClauseList = 117,
|
120
|
+
SwitchStatement = 118,
|
121
|
+
MatchExpressionList = 119,
|
122
|
+
SwitchStatementCaseClause = 120,
|
123
|
+
WhileStatement = 121,
|
124
|
+
YieldStatement = 122,
|
125
|
+
TranslationParameterList = 123,
|
126
|
+
TranslationParameterClause = 124,
|
127
|
+
ConstructorTranslation = 125,
|
128
|
+
IndexerTranslationParameterClause = 126,
|
129
|
+
IndexerTranslation = 127,
|
130
|
+
TranslationTypeParameterList = 128,
|
131
|
+
TranslationTypeParameterClause = 129,
|
132
|
+
PackageMethodTranslation = 130,
|
133
|
+
TypeMethodTranslation = 131,
|
134
|
+
MethodTypeTranslation = 132,
|
135
|
+
PackageImportTranslation = 133,
|
136
|
+
QualifiedName = 134,
|
137
|
+
PackageVariableTranslation = 135,
|
138
|
+
TypeVariableOrVariantTranslation = 136,
|
139
|
+
TypeMemberTranslationList = 137,
|
140
|
+
TypeTranslation = 138,
|
141
|
+
TextLiteralTranslation = 139,
|
142
|
+
TextTemplateLiteralTranslation = 140,
|
143
|
+
VariantDeclaration = 141,
|
144
|
+
TypeParameterDeclaration = 142,
|
145
|
+
ParameterDeclaration = 143,
|
146
|
+
CallArgument = 144,
|
147
|
+
TagList = 145,
|
148
|
+
Tag = 146,
|
149
|
+
ModifierList = 147,
|
150
|
+
Modifier = 148,
|
151
|
+
ParameterClause = 149,
|
152
|
+
ParameterList = 150,
|
153
|
+
SetterParameterClause = 151,
|
154
|
+
SetterParameterDeclaration = 152,
|
155
|
+
TypeArgumentClause = 153,
|
156
|
+
TypeArgumentList = 154,
|
157
|
+
TypeParameterClause = 155,
|
158
|
+
TypeParameterList = 156,
|
159
|
+
TypeAnnotation = 157
|
163
160
|
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { KeywordKind } from './KeywordKind.js';
|
2
|
+
export declare enum OperatorKind {
|
3
|
+
Plus = 0,// Одноместный или двухместный.
|
4
|
+
Minus = 1,// Одноместный или двухместный.
|
5
|
+
Not = 2,
|
6
|
+
BitwiseNot = 3,
|
7
|
+
Multiply = 4,
|
8
|
+
Divide = 5,
|
9
|
+
IntegerDivide = 6,
|
10
|
+
Modulo = 7,
|
11
|
+
LessThan = 8,
|
12
|
+
GreaterThan = 9,
|
13
|
+
LessThanEquals = 10,
|
14
|
+
GreaterThanEquals = 11,
|
15
|
+
Or = 12,
|
16
|
+
And = 13,
|
17
|
+
Xor = 14,
|
18
|
+
BitwiseAnd = 15,
|
19
|
+
BitwiseOr = 16,
|
20
|
+
BitwiseXor = 17
|
21
|
+
}
|
22
|
+
export declare const operatorKinds: readonly [OperatorKind.Plus, OperatorKind.Minus, OperatorKind.Not, OperatorKind.BitwiseNot, OperatorKind.Multiply, OperatorKind.Divide, OperatorKind.IntegerDivide, OperatorKind.Modulo, OperatorKind.LessThan, OperatorKind.GreaterThan, OperatorKind.LessThanEquals, OperatorKind.GreaterThanEquals, OperatorKind.Or, OperatorKind.And, OperatorKind.Xor, OperatorKind.BitwiseAnd, OperatorKind.BitwiseOr, OperatorKind.BitwiseXor];
|
23
|
+
/**
|
24
|
+
* Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
|
25
|
+
*/
|
26
|
+
export type KindOfOperatorDefinedByToken = OperatorKind.BitwiseNot | OperatorKind.Plus | OperatorKind.Minus | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.IntegerDivide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanEquals | OperatorKind.GreaterThanEquals | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor;
|
27
|
+
export declare function isOperatorDefinedByToken(kind: OperatorKind): kind is KindOfOperatorDefinedByToken;
|
28
|
+
/**
|
29
|
+
* Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
|
30
|
+
*/
|
31
|
+
export type KindOfOperatorDefinedByKeyword = OperatorKind.Not | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor;
|
32
|
+
export declare function isOperatorDefinedByKeyword(kind: OperatorKind): kind is KindOfOperatorDefinedByKeyword;
|
33
|
+
export declare const tokenTextByOperatorKind: {
|
34
|
+
[T in KindOfOperatorDefinedByToken]: string;
|
35
|
+
};
|
36
|
+
export declare const operatorKindByTokenText: Record<string, KindOfOperatorDefinedByToken | undefined>;
|
37
|
+
export declare const keywordKindByOperatorKind: {
|
38
|
+
[T in KindOfOperatorDefinedByKeyword]: KeywordKind;
|
39
|
+
};
|
40
|
+
export declare const operatorKindByKeywordKind: Record<number, KindOfOperatorDefinedByKeyword | undefined>;
|