@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,12 +1,11 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
2
|
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
3
|
-
import { LocalVariableEntity, NestedFunctionEntity,
|
|
3
|
+
import { LocalVariableEntity, NestedFunctionEntity, ParameterEntity, TypeParameterEntity } from '../../entities/index.js';
|
|
4
4
|
import * as tree from '../../tree/index.js';
|
|
5
|
-
import * as types from '../../types/index.js';
|
|
6
5
|
import { Analyzer } from '../Analyzer.js';
|
|
7
6
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
8
7
|
import { SemanticContext } from './SemanticContext.js';
|
|
9
|
-
import { NamedDeclarationLookupResult,
|
|
8
|
+
import { NamedDeclarationLookupResult, SemanticContextLookupState } from './SemanticContextBase.js';
|
|
10
9
|
import { SemanticContextWithParent } from './SemanticContextWithParent.js';
|
|
11
10
|
export interface NameConflictsValidator {
|
|
12
11
|
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
|
@@ -33,9 +32,6 @@ export declare abstract class SemanticContextValidatingNameConflictsBase extends
|
|
|
33
32
|
getOwnTypesOrContainersWithTypesByName(name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
34
33
|
getOwnNamedDeclarations(_initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupState: SemanticContextLookupState): readonly NamedDeclaration[];
|
|
35
34
|
getOwnNamedDeclarationsByName(name: Name, _initialContext: SemanticContext, _noInstanceMembers: boolean, lookupResult: NamedDeclarationLookupResult): void;
|
|
36
|
-
getOwnOperators(_initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupState: SemanticContextLookupState): readonly types.Operator[];
|
|
37
|
-
getOwnOperatorsByKind(_kind: OperatorKind, _initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupResult: OperatorLookupResult): void;
|
|
38
|
-
getOwnOperatorsBySyntacticKind(_kind: tree.OperatorKind, _initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupResult: OperatorLookupResult): void;
|
|
39
35
|
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
|
40
36
|
private getMemberEntityDictionary;
|
|
41
37
|
private validateNestedFunctionsConflicts;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
2
|
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
3
|
-
import {
|
|
3
|
+
import { PackageEntity, TextTranslationEntity, TypeEntity, TypeExtensionEntity } from '../../entities/index.js';
|
|
4
4
|
import { SourceFile } from '../../project/SourceFile.js';
|
|
5
5
|
import * as tree from '../../tree/index.js';
|
|
6
|
-
import * as types from '../../types/index.js';
|
|
7
6
|
import { Analyzer } from '../Analyzer.js';
|
|
8
7
|
import { DiagnosticArgumentFactory } from '../DiagnosticArgumentFactory.js';
|
|
9
8
|
import { PackageMemberLookupContext } from '../PackageMemberLookup.js';
|
|
@@ -11,7 +10,7 @@ import { TextKey } from '../TextIdentity.js';
|
|
|
11
10
|
import { TypeMemberLookupContext } from '../TypeMemberLookup.js';
|
|
12
11
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
13
12
|
import { SemanticContext } from './SemanticContext.js';
|
|
14
|
-
import { NamedDeclarationLookupResult, ObjectVariableInfo,
|
|
13
|
+
import { NamedDeclarationLookupResult, ObjectVariableInfo, SemanticContextBase, SemanticContextLookupState, SubprogramInfo, TryStatementContextKind, TypeOrTypeExtension } from './SemanticContextBase.js';
|
|
15
14
|
export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
16
15
|
readonly kind = "source-file";
|
|
17
16
|
readonly outer: SemanticContext | undefined;
|
|
@@ -46,9 +45,6 @@ export declare class SourceFileSemanticContext extends SemanticContextBase {
|
|
|
46
45
|
getOwnTypesOrContainersWithTypesByName(name: Name, initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
47
46
|
getOwnNamedDeclarations(initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupState: SemanticContextLookupState): NamedDeclaration[];
|
|
48
47
|
getOwnNamedDeclarationsByName(name: Name, initialContext: SemanticContext, _noInstanceMembers: boolean, lookupResult: NamedDeclarationLookupResult): void;
|
|
49
|
-
getOwnOperators(_initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupState: SemanticContextLookupState): readonly types.Operator[];
|
|
50
|
-
getOwnOperatorsByKind(_kind: OperatorKind, _initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupResult: OperatorLookupResult): void;
|
|
51
|
-
getOwnOperatorsBySyntacticKind(_kind: tree.OperatorKind, _initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupResult: OperatorLookupResult): void;
|
|
52
48
|
getOwnTypeExtensionsByType(type: TypeEntity, initialContext: SemanticContext): TypeExtensionEntity[];
|
|
53
49
|
getTextTranslationEntityByTextKey(key: TextKey): readonly TextTranslationEntity[];
|
|
54
50
|
validateNameConflicts(diagnostics: DiagnosticAcceptor): void;
|
|
@@ -18,7 +18,6 @@ export declare class SpecialLocalDeclarationsBuilder {
|
|
|
18
18
|
static buildForFunctionLiteral(analyzer: Analyzer, node: tree.FunctionLiteral): readonly SpecialLocalDeclarationEntity[];
|
|
19
19
|
static buildForConstructorDeclaration(analyzer: Analyzer, node: tree.ConstructorDeclaration): readonly SpecialLocalDeclarationEntity[];
|
|
20
20
|
static buildForMethodDeclaration(analyzer: Analyzer, node: tree.MethodDeclaration): readonly SpecialLocalDeclarationEntity[];
|
|
21
|
-
static buildForOperatorDeclaration(analyzer: Analyzer, node: tree.OperatorDeclaration): readonly SpecialLocalDeclarationEntity[];
|
|
22
21
|
static buildForTextTranslationFunctionDeclaration(analyzer: Analyzer, node: tree.TextTranslationFunctionDeclaration): readonly SpecialLocalDeclarationEntity[];
|
|
23
22
|
}
|
|
24
23
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ParameterEntity } from '../../entities/index.js';
|
|
3
3
|
import * as tree from '../../tree/index.js';
|
|
4
|
-
import * as types from '../../types/index.js';
|
|
5
4
|
import { Analyzer } from '../Analyzer.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';
|
|
9
|
-
import { NamedDeclarationLookupResult, ObjectVariableInfo,
|
|
8
|
+
import { NamedDeclarationLookupResult, ObjectVariableInfo, SemanticContextLookupState, SubprogramInfo, TryStatementContextKind } from './SemanticContextBase.js';
|
|
10
9
|
import { SemanticContextWithParent } from './SemanticContextWithParent.js';
|
|
11
10
|
import { SourceFileSemanticContext } from './SourceFileSemanticContext.js';
|
|
12
11
|
import { SemanticContextContainingTypeMember } from './TypeSemanticContext.js';
|
|
@@ -32,9 +31,6 @@ export declare abstract class OutermostSemanticContextOfSubprogram extends Seman
|
|
|
32
31
|
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
33
32
|
getOwnNamedDeclarations(initialContext: SemanticContext, noInstanceMembers: boolean, lookupState: SemanticContextLookupState): readonly NamedDeclaration[];
|
|
34
33
|
getOwnNamedDeclarationsByName(name: Name, initialContext: SemanticContext, noInstanceMembers: boolean, lookupResult: NamedDeclarationLookupResult): void;
|
|
35
|
-
getOwnOperators(initialContext: SemanticContext, noInstanceMembers: boolean, lookupState: SemanticContextLookupState): readonly types.Operator[];
|
|
36
|
-
getOwnOperatorsByKind(kind: OperatorKind, initialContext: SemanticContext, noInstanceMembers: boolean, lookupResult: OperatorLookupResult): void;
|
|
37
|
-
getOwnOperatorsBySyntacticKind(kind: tree.OperatorKind, initialContext: SemanticContext, noInstanceMembers: boolean, lookupResult: OperatorLookupResult): void;
|
|
38
34
|
private convertNamedMember;
|
|
39
35
|
}
|
|
40
36
|
export declare class FunctionSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
@@ -69,17 +65,6 @@ export declare class PackageEntryPointSemanticContext extends OutermostSemanticC
|
|
|
69
65
|
getContainingSubprogram(): SubprogramInfo;
|
|
70
66
|
protected findObjectParameter(): ParameterEntity | undefined;
|
|
71
67
|
}
|
|
72
|
-
export declare class OperatorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
73
|
-
readonly outer: SemanticContextContainingTypeMember;
|
|
74
|
-
protected readonly asContext: SemanticContext;
|
|
75
|
-
protected readonly analyzer: Analyzer;
|
|
76
|
-
private readonly node;
|
|
77
|
-
private readonly subprogramInfo;
|
|
78
|
-
constructor(analyzer: Analyzer, node: tree.OperatorDeclaration, outer: SemanticContextContainingTypeMember);
|
|
79
|
-
getContainingSubprogram(): SubprogramInfo;
|
|
80
|
-
isStatic(): boolean;
|
|
81
|
-
protected findObjectParameter(): ParameterEntity | undefined;
|
|
82
|
-
}
|
|
83
68
|
export declare class ConstructorSemanticContext extends OutermostSemanticContextOfSubprogram {
|
|
84
69
|
readonly outer: SemanticContextContainingTypeMember;
|
|
85
70
|
protected readonly asContext: SemanticContext;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { Name } from '../../common/index.js';
|
|
2
|
-
import { OperatorKind } from '../../entities/index.js';
|
|
3
2
|
import * as tree from '../../tree/index.js';
|
|
4
|
-
import * as types from '../../types/index.js';
|
|
5
3
|
import { Analyzer } from '../Analyzer.js';
|
|
6
4
|
import { FunctionTypeDeclaration, StructuredTypeDeclaration, TypeDeclaration, VariantTypeDeclaration } from '../NodeTypeUtils.js';
|
|
7
5
|
import { TypeMemberLookup, TypeMemberLookupContext } from '../TypeMemberLookup.js';
|
|
8
6
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
9
7
|
import { SemanticContext } from './SemanticContext.js';
|
|
10
|
-
import { NamedDeclarationLookupResult, ObjectVariableInfo,
|
|
8
|
+
import { NamedDeclarationLookupResult, ObjectVariableInfo, SemanticContextLookupState, SubprogramInfo, TypeOrTypeExtension } from './SemanticContextBase.js';
|
|
11
9
|
import { MemberOfSemanticContextValidatingNameConflicts, MemberOfSemanticContextValidatingNameConflictsForTypeLookup, SemanticContextValidatingNameConflictsBase } from './SemanticContextValidatingNameConflicts.js';
|
|
12
10
|
import { SemanticContextWithParent } from './SemanticContextWithParent.js';
|
|
13
11
|
import { SourceFileSemanticContext } from './SourceFileSemanticContext.js';
|
|
@@ -34,9 +32,6 @@ export declare class OutermostSemanticContextOfType extends SemanticContextWithP
|
|
|
34
32
|
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
35
33
|
getOwnNamedDeclarations(_initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupState: SemanticContextLookupState): readonly NamedDeclaration[];
|
|
36
34
|
getOwnNamedDeclarationsByName(_name: Name, _initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupResult: SemanticContextLookupState): void;
|
|
37
|
-
getOwnOperators(_initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupState: SemanticContextLookupState): readonly types.Operator[];
|
|
38
|
-
getOwnOperatorsByKind(_kind: OperatorKind, _initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupResult: OperatorLookupResult): void;
|
|
39
|
-
getOwnOperatorsBySyntacticKind(_kind: tree.OperatorKind, _initialContext: SemanticContext, _noInstanceMembers: boolean, _lookupResult: OperatorLookupResult): void;
|
|
40
35
|
private getContainingType;
|
|
41
36
|
}
|
|
42
37
|
type TypeDeclarationWithTypeParameters = TypeDeclaration & tree.TypeParameterClauseParent;
|
|
@@ -56,9 +51,6 @@ declare abstract class TypeOrExtensionBodySemanticContext extends SemanticContex
|
|
|
56
51
|
getOwnTypesOrContainersWithTypesByName(_name: Name, _initialContext: SemanticContext): readonly TypeOrContainerWithTypes[];
|
|
57
52
|
getOwnNamedDeclarations(initialContext: SemanticContext, noInstanceMembers: boolean, lookupState: SemanticContextLookupState): readonly NamedDeclaration[];
|
|
58
53
|
getOwnNamedDeclarationsByName(name: Name, initialContext: SemanticContext, noInstanceMembers: boolean, lookupResult: NamedDeclarationLookupResult): void;
|
|
59
|
-
getOwnOperators(initialContext: SemanticContext, noInstanceMembers: boolean | undefined, lookupState: SemanticContextLookupState): readonly types.Operator[];
|
|
60
|
-
getOwnOperatorsByKind(kind: OperatorKind, initialContext: SemanticContext, noInstanceMembers: boolean | undefined, lookupResult: OperatorLookupResult): void;
|
|
61
|
-
getOwnOperatorsBySyntacticKind(kind: tree.OperatorKind, initialContext: SemanticContext, noInstanceMembers: boolean | undefined, lookupResult: OperatorLookupResult): void;
|
|
62
54
|
private convertNamedMember;
|
|
63
55
|
}
|
|
64
56
|
export type SemanticContextContainingTypeMember = TypeBodySemanticContext | TypeExtensionBodySemanticContext;
|
|
@@ -25,11 +25,7 @@ export declare const enum NameFlags {
|
|
|
25
25
|
/**
|
|
26
26
|
* Конвертировать имя в формат kebab case при формировании исходного имени.
|
|
27
27
|
*/
|
|
28
|
-
PreferKebabCase = 32
|
|
29
|
-
/**
|
|
30
|
-
* Параметр с именем 'объект'.
|
|
31
|
-
*/
|
|
32
|
-
ObjectParameterName = 64
|
|
28
|
+
PreferKebabCase = 32
|
|
33
29
|
}
|
|
34
30
|
export declare class Name implements Displayable {
|
|
35
31
|
static readonly objectParameterNameKey = "-object";
|
|
@@ -65,13 +61,13 @@ export declare class Name implements Displayable {
|
|
|
65
61
|
* @param unescapedOriginalWithoutQuotes Исходное имя без апострофов, одиночных кавычек и экранирования.
|
|
66
62
|
* @param flags Флаги имени (`NameFlags`). `NameFlags.None` по умолчанию.
|
|
67
63
|
*/
|
|
68
|
-
constructor(unescapedOriginalWithoutQuotes: string, flags?: NameFlags);
|
|
64
|
+
constructor(unescapedOriginalWithoutQuotes: string, flags?: NameFlags, specialKey?: string);
|
|
69
65
|
toConflictResolvingParameterName(): Name;
|
|
70
66
|
toBackingVariableName(): Name;
|
|
71
67
|
considerEqual(other: Name, considerBackQuotes?: boolean): boolean;
|
|
72
68
|
toString(): string;
|
|
73
69
|
getPreferredUnescapedOriginal(flags: NameFlags): string;
|
|
74
70
|
getDisplayText(): string;
|
|
75
|
-
static parse(original: string, initialFlags?: NameFlags): Name;
|
|
71
|
+
static parse(original: string, initialFlags?: NameFlags, specialKey?: string): Name;
|
|
76
72
|
private static toUnescapedOriginal;
|
|
77
73
|
}
|
|
@@ -154,115 +154,116 @@ export declare enum DiagnosticCode {
|
|
|
154
154
|
TypeAlreadyContainsDeclarationWithTheSameName = 2115,
|
|
155
155
|
TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 2116,
|
|
156
156
|
TypeAlreadyContainsConstructorWithTheSameParameterTypes = 2117,
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
157
|
+
TypeAlreadyContainsIndexerWithTheSameParameterTypes = 2118,
|
|
158
|
+
TypeCanHaveOnlyOneDestructor = 2119,
|
|
159
|
+
TypeCanHaveOnlyOneDereferenceOperator = 2120,
|
|
160
|
+
VariableIsUsedBeforeItsDeclaration = 2121,
|
|
161
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 2122,
|
|
162
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 2123,
|
|
163
|
+
WriteFunctionHasNoCorrespondingReadFunction = 2124,
|
|
164
|
+
TypeCannotHaveMultipleBaseObjectTypes = 2125,
|
|
165
|
+
TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 2126,
|
|
166
|
+
StructureCannotBeUsedAsBaseType = 2127,
|
|
167
|
+
ThisTypeIsAlreadyListedInBaseTypeList = 2128,
|
|
168
|
+
OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 2129,
|
|
169
|
+
StructureCanHaveOnlyAspectsAsBaseTypes = 2130,
|
|
170
|
+
AspectTypeCanHaveOnlyAspectsAsBaseTypes = 2131,
|
|
171
|
+
ModifierListAlreadyContains0Modifier = 2132,
|
|
172
|
+
ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 2133,
|
|
173
|
+
_0ModifierIsNotAllowedHere = 2134,
|
|
174
|
+
DeclarationCannotBePlacedInGroupHaving0Modifier = 2135,
|
|
175
|
+
PackageConstructorDeclarationCannotHaveModifiers = 2136,
|
|
176
|
+
PackageEntryPointDeclarationCannotHaveModifiers = 2137,
|
|
177
|
+
TranslationsCannotHaveModifiers = 2138,
|
|
178
|
+
AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 2139,
|
|
179
|
+
BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 2140,
|
|
180
|
+
OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 2141,
|
|
181
|
+
_0ModifierCannotBeUsedWith1Modifier = 2142,
|
|
182
|
+
VariantValueCannotBeHidden = 2143,
|
|
183
|
+
BasicModifierCanOnlyBeAppliedToObjectTypes = 2144,
|
|
184
|
+
AbstractModifierCanOnlyBeAppliedToObjectTypes = 2145,
|
|
185
|
+
NotBasicObjectTypesCannotHaveBasicMembers = 2146,
|
|
186
|
+
BasicModifierCannotBeAppliedToAspectTypeFields = 2147,
|
|
187
|
+
WriteFunctionMustHaveTheSameModifiersAsReadFunction = 2148,
|
|
188
|
+
WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 2149,
|
|
189
|
+
DeclarationConflictsWithBaseTypeMember0 = 2150,
|
|
190
|
+
DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 2151,
|
|
191
|
+
DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 2152,
|
|
192
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 2153,
|
|
193
|
+
DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 2154,
|
|
194
|
+
OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 2155,
|
|
195
|
+
OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 2156,
|
|
196
|
+
OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 2157,
|
|
197
|
+
OverridingFieldMustMustBeMutableToMatchBaseField0 = 2158,
|
|
198
|
+
OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 2159,
|
|
199
|
+
TypeDoesNotImplementMember0 = 2160,
|
|
200
|
+
TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 2161,
|
|
201
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 2162,
|
|
202
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 2163,
|
|
203
|
+
TypeDoesNotImplementMember0ImplicitImplementation1IsNotMutable = 2164,
|
|
204
|
+
TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 2165,
|
|
205
|
+
CannotAccessAbstractMemberOfBaseType = 2166,
|
|
206
|
+
TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 2167,
|
|
207
|
+
TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 2168,
|
|
208
|
+
TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 2169,
|
|
209
|
+
ThisCallCausesOwnConstructorCallCycle = 2170,
|
|
210
|
+
OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2171,
|
|
211
|
+
BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 2172,
|
|
212
|
+
Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 2173,
|
|
213
|
+
Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2174,
|
|
214
|
+
Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 2175,
|
|
215
|
+
ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 2176,
|
|
216
|
+
ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 2177,
|
|
217
|
+
CannotInferTypeArguments = 2178,
|
|
218
|
+
CanNotInferReturnTypeAddExplicitReturnTypeSpecifier = 2179,
|
|
219
|
+
ImmutableVariablesBustBeInitialized = 2180,
|
|
220
|
+
VariableTypeIsNotSpecified = 2181,
|
|
221
|
+
CannotInferTypeOfFunctionLiteralAddTypeSpecifierForParameter = 2182,
|
|
222
|
+
TypeParameterDefaultCanReferenceOnlyPreviouslyDeclaredTypeParameters = 2183,
|
|
223
|
+
RequiredTypeParametersCannotFollowTypeParametersWithDefaults = 2184,
|
|
224
|
+
RequiredParametersCannotFollowOptionalParameters = 2185,
|
|
225
|
+
ExpressionCannotBeReferenced = 2186,
|
|
226
|
+
TextIsMissingAmongPrimaryTextTranslationDefinitions = 2187,
|
|
227
|
+
DeclarationHasAlreadyBeenTranslated = 2188,
|
|
228
|
+
TheNumberOfTranslatedParametersMustBeEqualToTheNumberOfSourceParameters = 2189,
|
|
229
|
+
TheNumberOfTranslatedTypeParametersMustBeEqualToTheNumberOfSourceTypeParameters = 2190,
|
|
230
|
+
TheNameOfTheTranslatedOperatorMustMeTheSameAsSourceOperatorName = 2191,
|
|
231
|
+
TranslationOfFunctionTypeMustIncludeParameterList = 2192,
|
|
232
|
+
OnlyOneTextTranslationPackageShouldBeMarkedAsPrimary = 2193,
|
|
233
|
+
Declarations0And1HaveTheSameSourceNamesButDifferentTranslatedNames23 = 2194,
|
|
234
|
+
TranslatedDeclarations0And1HaveTheSameTranslatedNamesButDifferentSourceNames23 = 2195,
|
|
235
|
+
TranslatedOverridingMember0MustTheSameNameAsBaseMember1 = 2196,
|
|
236
|
+
TextTranslationAlreadyExistsInTheTextTranslationPackage = 2197,
|
|
237
|
+
PackageDoesNotContainImplementationOf0 = 2198,
|
|
238
|
+
TypeDoesNotContainImplementationOf0 = 2199,
|
|
239
|
+
ImplementationVariableMustBeMutableToMatchInterfacePackageVariable0 = 2200,
|
|
240
|
+
ImplementationFunctionMustBeAsyncToMatchInterfacePackageFunction0 = 2201,
|
|
241
|
+
ImplementationFunctionMustNotBeAsyncToMatchInterfacePackageFunction0 = 2202,
|
|
242
|
+
ImplementationTypeMustBeBasicToMatchInterfacePackageType0 = 2203,
|
|
243
|
+
ImplementationTypeMustNotBeAbstractToMatchInterfacePackageType0 = 2204,
|
|
244
|
+
ImplementationTypeMemberMustBeBasicToMatchInterfacePackageTypeMember0 = 2205,
|
|
245
|
+
ImplementationTypeMemberMustNotBeAbstractToMatchInterfacePackageTypeMember0 = 2206,
|
|
246
|
+
ImplementationTypeMemberMustHaveWriteFunctionToMatchInterfacePackageTypeMember0 = 2207,
|
|
247
|
+
BreakLoopAndContinueLoopStatementsCanOnlyBeUsedInsideALoop = 2208,
|
|
248
|
+
BreakLoopAndContinueLoopStatementsCannotBeUsedInFinallyBlock = 2209,
|
|
249
|
+
TheCodeWasExpectedToBeUnreachable = 2210,
|
|
250
|
+
CorrespondingReductionSourceTypeMemberNotFound = 2211,
|
|
251
|
+
OnlyTypesPresentInBaseTypeListOrReductionSourceCanBeSpecified = 2212,
|
|
252
|
+
ReducedTypeMemberMustHaveTheSameTypeAsReductionSourceMember = 2213,
|
|
253
|
+
ReducedTypeMemberMustHaveTheSameHidingLevelAsReductionSourceMember = 2214,
|
|
254
|
+
ReducedTypeFieldMustBeImmutableToMatchReductionSourceField = 2215,
|
|
255
|
+
ReducedTypeMethodMustBeAsyncToMatchReductionSourceMethod = 2216,
|
|
256
|
+
ReducedTypeMethodMustNotBeAsyncToMatchReductionSourceMethod = 2217,
|
|
257
|
+
ReducedTypeMemberMustHaveNoWriteFunctionToMatchReductionSourceMember = 2218,
|
|
258
|
+
StructureFieldsMustBeImmutable = 2219,
|
|
259
|
+
StructureFieldsMustBeImmutableAutomaticallyCreatedStoredFieldIsMutable = 2220,
|
|
260
|
+
FieldTypeCausesRecursiveStructureLayout = 2221,
|
|
261
|
+
QuestionOperatorCanBeUsedOnlyInSpecificExpressions = 2222,
|
|
262
|
+
BaseTypeListMustNotBeEmpty = 2223,
|
|
263
|
+
ObjectParameterMustBeTheFirstParameter = 2224,
|
|
264
|
+
ObjectParameterCannotBeDeclaredHere = 2225,
|
|
265
|
+
OperatorCannotBeAsync = 2226,
|
|
266
|
+
OperatorCannotContainTypeParameterDeclarations = 2227,
|
|
266
267
|
CannotFindTsLibDirectoryBaseSearchPaths0 = 3000,
|
|
267
268
|
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 3001,
|
|
268
269
|
ProgramWithoutMainPackageCannotBeCompiled = 3002,
|
|
@@ -19,7 +19,6 @@ export declare class EntityMap {
|
|
|
19
19
|
constructor(analyzer: Analyzer, targetPlatform: PlatformKind);
|
|
20
20
|
getVariableEntity(entity: analyzerEntities.VariableEntity): emitterEntities.VariableEntity;
|
|
21
21
|
getNamedFunctionEntity(entity: analyzerEntities.NamedFunctionEntity): emitterEntities.FunctionEntity;
|
|
22
|
-
getOperatorEntity(entity: analyzerEntities.OperatorEntity): emitterEntities.FunctionEntity;
|
|
23
22
|
getConstructorEntity(entity: analyzerEntities.ConstructorEntity): emitterEntities.FunctionEntity;
|
|
24
23
|
getDestructorEntity(entity: analyzerEntities.DestructorEntity): emitterEntities.FunctionEntity;
|
|
25
24
|
getGetterEntity(entity: analyzerEntities.GetterEntity): emitterEntities.FunctionEntity;
|
|
@@ -51,7 +51,6 @@ export declare class IrBuilder {
|
|
|
51
51
|
private buildDereferencedVariableGetterDeclaration;
|
|
52
52
|
private buildDereferencedVariableSetterDeclaration;
|
|
53
53
|
private buildMethodDeclaration;
|
|
54
|
-
private buildOperatorDeclaration;
|
|
55
54
|
private buildFieldDeclaration;
|
|
56
55
|
private buildComputedFieldDeclaration;
|
|
57
56
|
private buildFieldGetterDeclarationRequired;
|
|
@@ -120,7 +119,7 @@ export declare class IrBuilder {
|
|
|
120
119
|
private buildAndSaveAnonymousTypeDeclaration;
|
|
121
120
|
private buildAnonymousStructuredTypeDeclaration;
|
|
122
121
|
private getUnderlyingTypeKind;
|
|
123
|
-
private
|
|
122
|
+
private createAccessedFunctionFromOperatorMethod;
|
|
124
123
|
private expressionIsCallee;
|
|
125
124
|
private generateLoopLabel;
|
|
126
125
|
private buildTextTranslationDeclarationList;
|
|
@@ -1103,14 +1103,13 @@ export declare const enum AssignmentOperatorKind {
|
|
|
1103
1103
|
SubtractEquals = 2,
|
|
1104
1104
|
MultiplyEquals = 3,
|
|
1105
1105
|
DivideEquals = 4,
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
UnsignedRightShiftEquals = 12
|
|
1106
|
+
ModuloEquals = 5,
|
|
1107
|
+
BitwiseAndEquals = 6,
|
|
1108
|
+
BitwiseOrEquals = 7,
|
|
1109
|
+
BitwiseXorEquals = 8,
|
|
1110
|
+
LeftShiftEquals = 9,
|
|
1111
|
+
SignedRightShiftEquals = 10,
|
|
1112
|
+
UnsignedRightShiftEquals = 11
|
|
1114
1113
|
}
|
|
1115
1114
|
export declare const enum PrefixUnaryExpressionOperatorKind {
|
|
1116
1115
|
Plus = 0,
|
|
@@ -1123,22 +1122,21 @@ export declare const enum BinaryExpressionOperatorKind {
|
|
|
1123
1122
|
Subtract = 1,
|
|
1124
1123
|
Multiply = 2,
|
|
1125
1124
|
Divide = 3,
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
UnsignedRightShift = 21
|
|
1125
|
+
Equals = 4,
|
|
1126
|
+
NotEquals = 5,
|
|
1127
|
+
LessThan = 6,
|
|
1128
|
+
GreaterThan = 7,
|
|
1129
|
+
LessThanOrEqual = 8,
|
|
1130
|
+
GreaterThanOrEqual = 9,
|
|
1131
|
+
Or = 10,
|
|
1132
|
+
And = 11,
|
|
1133
|
+
Xor = 12,
|
|
1134
|
+
QuestionQuestion = 13,
|
|
1135
|
+
Modulo = 14,
|
|
1136
|
+
BitwiseAnd = 15,
|
|
1137
|
+
BitwiseOr = 16,
|
|
1138
|
+
BitwiseXor = 17,
|
|
1139
|
+
LeftShift = 18,
|
|
1140
|
+
SignedRightShift = 19,
|
|
1141
|
+
UnsignedRightShift = 20
|
|
1144
1142
|
}
|
|
@@ -8,7 +8,6 @@ import { FunctionEntity, MethodEntity, NestedFunctionEntity, PackageFunctionEnti
|
|
|
8
8
|
import { AnonymousFunctionTypeEntity, FunctionTypeEntity } from './interfaces/FunctionTypeEntity.js';
|
|
9
9
|
import { GetterEntity } from './interfaces/GetterEntity.js';
|
|
10
10
|
import { IndexerEntity } from './interfaces/IndexerEntity.js';
|
|
11
|
-
import { OperatorEntity } from './interfaces/OperatorEntity.js';
|
|
12
11
|
import { PackageAliasEntity } from './interfaces/PackageAliasEntity.js';
|
|
13
12
|
import { PackageEntity } from './interfaces/PackageEntity.js';
|
|
14
13
|
import { ReducedTypeEntity } from './interfaces/ReducedTypeEntity.js';
|
|
@@ -41,7 +40,7 @@ export declare const enum EntityKind {
|
|
|
41
40
|
Package = 12,
|
|
42
41
|
TextTranslation = 13
|
|
43
42
|
}
|
|
44
|
-
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity |
|
|
43
|
+
export type Entity = PackageEntity | VariableEntity | VariantTypeEntity | GetterEntity | SetterEntity | FunctionEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | FunctionTypeEntity | StructuredTypeEntity | PackageAliasEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity | TextTranslationEntity;
|
|
45
44
|
export type PackageTypeEntity = PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity;
|
|
46
45
|
export declare function isPackageTypeEntity(entity: Entity): entity is PackageTypeEntity;
|
|
47
46
|
export type NamedTypeEntity = PackageStructuredTypeEntity | PackageVariantTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeParameterEntity;
|
|
@@ -61,7 +60,7 @@ export type PackageMemberEntity = PackageVariableEntity | PackageFunctionEntity
|
|
|
61
60
|
export declare function isPackageMemberEntity(entity: Entity): entity is PackageMemberEntity;
|
|
62
61
|
export type NamedPackageMemberEntity = PackageVariableEntity | PackageFunctionEntity | PackageTypeEntity;
|
|
63
62
|
export declare function isNamedPackageMemberEntity(entity: Entity): entity is NamedPackageMemberEntity;
|
|
64
|
-
export type TypeMemberEntity = FieldEntity | MethodEntity |
|
|
63
|
+
export type TypeMemberEntity = FieldEntity | MethodEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity;
|
|
65
64
|
export declare function isTypeMemberEntity(entity: Entity): entity is TypeMemberEntity;
|
|
66
65
|
export declare namespace TypeMemberEntity {
|
|
67
66
|
function isAspectMember(entity: TypeMemberEntity): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnalyzedTranslationPackage } from '../analysis/AnalyzedTranslationPackage.js';
|
|
2
2
|
import { Analyzer } from '../analysis/Analyzer.js';
|
|
3
3
|
import * as types from '../types/index.js';
|
|
4
|
-
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NamedTypeMemberEntity,
|
|
4
|
+
import { AliasTypeEntity, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, ConstructorEntity, DereferenceOperatorEntity, DestructorEntity, Entity, FieldEntity, FunctionTypeEntity, GetterEntity, IndexerEntity, MethodEntity, NamedTypeMemberEntity, PackageEntity, PackageFunctionEntity, PackageMemberEntity, PackageStructuredTypeEntity, PackageTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, ReducedTypeEntity, SetterEntity, StructuredTypeEntity, TypeEntity, TypeEntityWithMembers, TypeExtensionEntity, TypeMemberEntity, TypeParameterEntity, TypeWithMembersOrExtensionEntity, VariantTypeEntity } from './index.js';
|
|
5
5
|
export declare class EntityLocalizationContext {
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly translationPackage;
|
|
@@ -17,7 +17,6 @@ export declare class EntityLocalizationContext {
|
|
|
17
17
|
getLocalizedPackageFunctionEntity(entity: PackageFunctionEntity): PackageFunctionEntity;
|
|
18
18
|
getLocalizedMethodEntity(entity: MethodEntity): MethodEntity;
|
|
19
19
|
getLocalizedTypeParameterEntity(entity: TypeParameterEntity): TypeParameterEntity;
|
|
20
|
-
getLocalizedOperatorEntity(entity: OperatorEntity): OperatorEntity;
|
|
21
20
|
getLocalizedIndexerEntity(entity: IndexerEntity): IndexerEntity;
|
|
22
21
|
getLocalizedDereferenceOperatorEntity(entity: DereferenceOperatorEntity): DereferenceOperatorEntity;
|
|
23
22
|
getLocalizedConstructorEntity(entity: ConstructorEntity): ConstructorEntity;
|
|
@@ -48,6 +47,6 @@ export declare class EntityLocalizationContext {
|
|
|
48
47
|
private getOwnTranslatedParameterEntity;
|
|
49
48
|
private getOwnTranslatedAccessorEntity;
|
|
50
49
|
}
|
|
51
|
-
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity |
|
|
50
|
+
export type LocalizableEntity = PackageEntity | PackageVariableEntity | FieldEntity | ParameterEntity | PackageVariantTypeEntity | GetterEntity | SetterEntity | PackageFunctionEntity | MethodEntity | TypeParameterEntity | IndexerEntity | DereferenceOperatorEntity | ConstructorEntity | DestructorEntity | AnonymousFunctionTypeEntity | PackageStructuredTypeEntity | AnonymousStructuredTypeEntity | AliasTypeEntity | ReducedTypeEntity | TypeExtensionEntity;
|
|
52
51
|
export declare function isLocalizableEntity(entity: Entity): entity is LocalizableEntity;
|
|
53
52
|
export type LocalizablePackageMemberEntity = PackageMemberEntity & LocalizableEntity;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { KeywordKind } from '../tree/KeywordKind.js';
|
|
2
|
+
import { OperatorKind as SyntacticalOperatorKind } from '../tree/OperatorKind.js';
|
|
2
3
|
export declare enum OperatorKind {
|
|
3
4
|
UnaryPlus = 0,
|
|
4
5
|
UnaryMinus = 1,
|
|
@@ -7,26 +8,25 @@ export declare enum OperatorKind {
|
|
|
7
8
|
Subtract = 4,
|
|
8
9
|
Multiply = 5,
|
|
9
10
|
Divide = 6,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
UnsignedRightShift = 21
|
|
11
|
+
Modulo = 7,
|
|
12
|
+
LessThan = 8,
|
|
13
|
+
GreaterThan = 9,
|
|
14
|
+
LessThanOrEqual = 10,
|
|
15
|
+
GreaterThanOrEqual = 11,
|
|
16
|
+
Or = 12,
|
|
17
|
+
And = 13,
|
|
18
|
+
Xor = 14,
|
|
19
|
+
BitwiseAnd = 15,
|
|
20
|
+
BitwiseOr = 16,
|
|
21
|
+
BitwiseXor = 17,
|
|
22
|
+
LeftShift = 18,
|
|
23
|
+
SignedRightShift = 19,
|
|
24
|
+
UnsignedRightShift = 20
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Виды операторов, задаваемых токенами (`+`, `-`, `*=` и др.).
|
|
28
28
|
*/
|
|
29
|
-
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.
|
|
29
|
+
export type KindOfOperatorDefinedByToken = OperatorKind.UnaryPlus | OperatorKind.UnaryMinus | OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
30
30
|
export declare function isOperatorDefinedByToken(kind: OperatorKind): kind is KindOfOperatorDefinedByToken;
|
|
31
31
|
/**
|
|
32
32
|
* Виды операторов, задаваемых ключевыми словами (`и`, `или`, `не` и др.)
|
|
@@ -41,7 +41,7 @@ export declare function isUnaryOperator(kind: OperatorKind): kind is UnaryOperat
|
|
|
41
41
|
/**
|
|
42
42
|
* Виды двухместных операторов. Объявление двухместного оператора должно содержать один параметр.
|
|
43
43
|
*/
|
|
44
|
-
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.
|
|
44
|
+
export type BinaryOperatorKind = OperatorKind.Add | OperatorKind.Subtract | OperatorKind.Multiply | OperatorKind.Divide | OperatorKind.Modulo | OperatorKind.LessThan | OperatorKind.GreaterThan | OperatorKind.LessThanOrEqual | OperatorKind.GreaterThanOrEqual | OperatorKind.Or | OperatorKind.And | OperatorKind.Xor | OperatorKind.BitwiseAnd | OperatorKind.BitwiseOr | OperatorKind.BitwiseXor | OperatorKind.LeftShift | OperatorKind.SignedRightShift | OperatorKind.UnsignedRightShift;
|
|
45
45
|
export declare function isBinaryOperator(kind: OperatorKind): kind is BinaryOperatorKind;
|
|
46
46
|
export type KindOfUnaryOperatorDefinedByToken = UnaryOperatorKind & KindOfOperatorDefinedByToken;
|
|
47
47
|
export type KindOfUnaryOperatorDefinedByKeyword = UnaryOperatorKind & KindOfOperatorDefinedByKeyword;
|
|
@@ -51,8 +51,8 @@ export declare const tokenTextByOperatorKind: {
|
|
|
51
51
|
[T in KindOfOperatorDefinedByToken]: string;
|
|
52
52
|
};
|
|
53
53
|
export declare const keywordKindByOperatorKind: {
|
|
54
|
-
[T in KindOfOperatorDefinedByKeyword]:
|
|
54
|
+
[T in KindOfOperatorDefinedByKeyword]: KeywordKind;
|
|
55
55
|
};
|
|
56
56
|
export declare const operatorKindsBySyntacticalOperatorKind: {
|
|
57
|
-
[T in
|
|
57
|
+
[T in SyntacticalOperatorKind]: readonly OperatorKind[];
|
|
58
58
|
};
|