@artel/artc 0.6.25227 → 0.6.25229
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 +4 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +297 -284
- package/build/{chunk-74TFH7TE.js → chunk-2FHW6RUS.js} +3 -3
- package/build/{chunk-VD6OPILI.js → chunk-4UBNOTKC.js} +3 -3
- package/build/{chunk-NOECPQMV.js → chunk-6YPLDA76.js} +2612 -2072
- package/build/types/analysis/Analyzer.d.ts +12 -5
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +8 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +9 -2
- package/build/types/analysis/ModifierFlags.d.ts +5 -6
- package/build/types/analysis/NodeTypeUtils.d.ts +2 -2
- package/build/types/analysis/PackageMemberNameConflictsValidator.d.ts +24 -0
- package/build/types/analysis/SourceFileMembers.d.ts +6 -1
- package/build/types/analysis/SourcePackageMembersCreator.d.ts +2 -1
- package/build/types/analysis/TypeInferrer.d.ts +2 -0
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +5 -2
- package/build/types/analysis/semantic-context/SemanticContext.d.ts +1 -1
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +1 -80
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +1 -1
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +89 -0
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +0 -8
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +9 -24
- package/build/types/analysis/semantic-context/index.d.ts +1 -0
- package/build/types/common/Cached.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +86 -72
- package/build/types/emitter/Entities.d.ts +4 -4
- package/build/types/emitter/IrBuilder.d.ts +0 -1
- package/build/types/entities/DereferenceOperatorEntity.d.ts +4 -4
- package/build/types/entities/FunctionEntity.d.ts +8 -8
- package/build/types/entities/IndexerEntity.d.ts +4 -4
- package/build/types/entities/OperatorEntity.d.ts +4 -4
- package/build/types/entities/VariableEntity.d.ts +25 -12
- package/build/types/entities/index.d.ts +4 -0
- package/build/types/project/SourcePackage.d.ts +3 -1
- package/build/types/project/configuration/ConfigurationConverter.d.ts +1 -1
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +2 -0
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +2 -0
- package/build/types/tree/KeywordKind.d.ts +21 -22
- package/build/types/tree/NodeKind.d.ts +81 -82
- package/build/types/tree/green/BaseNode.d.ts +3 -1
- package/build/types/tree/green/Nodes.d.ts +3 -21
- package/build/types/tree/red/BaseNode.d.ts +2 -1
- package/build/types/tree/red/Nodes.d.ts +4 -19
- package/build/types/ts-interop/Entities.d.ts +12 -12
- package/package.json +1 -1
@@ -12,29 +12,30 @@ export declare enum DiagnosticCode {
|
|
12
12
|
EnumerationVariableDeclarationExpected = 106,
|
13
13
|
StatementExpected = 107,
|
14
14
|
ExpressionExpected = 108,
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
15
|
+
ExpressionCannotBeUsedAsStatement = 109,
|
16
|
+
BaseTypeNameExpected = 110,
|
17
|
+
TypeSpecifierExpected = 111,
|
18
|
+
TypeBodyExpected = 112,
|
19
|
+
FunctionCallArgumentExpected = 113,
|
20
|
+
IndexedAccessArgumentExpected = 114,
|
21
|
+
TagArgumentExpected = 115,
|
22
|
+
TypeParameterExpected = 116,
|
23
|
+
ParameterExpected = 117,
|
24
|
+
CatchClauseOrFinallyClauseExpected = 118,
|
25
|
+
PackageImportExpected = 119,
|
26
|
+
DeclarationOrPackageImportExpected = 120,
|
27
|
+
Expected0But1Found = 121,
|
28
|
+
InvalidTextTemplateLiteral = 122,
|
29
|
+
ModifierListExpected = 123,
|
30
|
+
RunKeywordCreationKeywordOrModifierListExpected = 124,
|
31
|
+
HidingLevelExpected = 125,
|
32
|
+
ParameterNameCanContainOnlyOneBackQuote = 126,
|
33
|
+
FieldNameCanContainOnlyTwoBackQuote = 127,
|
34
|
+
BackQuotesCanOnlyBeUsedInParameterAndFieldNames = 128,
|
35
|
+
NameThatMatchesKeywordMustBeEnclosedInSingleQuotes = 129,
|
36
|
+
TagNameExpected = 130,
|
37
|
+
TypeMemberTranslationExpected = 131,
|
38
|
+
TranslationExpected = 132,
|
38
39
|
TypeCannotBeUsedAsValue = 201,
|
39
40
|
PackageNameCannotBeUsedAsValue = 202,
|
40
41
|
PackageAliasCannotBeUsedAsValue = 203,
|
@@ -86,53 +87,66 @@ export declare enum DiagnosticCode {
|
|
86
87
|
InterfacePackageVariablesMustNotHaveInitializers = 249,
|
87
88
|
BodyIsMissing = 250,
|
88
89
|
AbstractTypeMembersMustNotHaveBody = 251,
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
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
|
-
|
90
|
+
MembersOfAspectTypeMustNotHaveBody = 252,
|
91
|
+
DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 253,
|
92
|
+
AbstractVariablesMustNotHaveInitializers = 254,
|
93
|
+
PackageIsAlreadyImportedInAnotherLanguage = 255,
|
94
|
+
OnlySubprogramsWithReturnTypeCanReturnValue = 256,
|
95
|
+
FunctionsUsingYieldStatementCannotReturnValue = 257,
|
96
|
+
YieldStatementCannotBeUsedInAnonymousFunctions = 258,
|
97
|
+
YieldStatementCannotBeUsedHere = 259,
|
98
|
+
FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 260,
|
99
|
+
YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 261,
|
100
|
+
YieldStatementCannotBeUsedInFinallyClause = 262,
|
101
|
+
SubprogramMustReturnValue = 263,
|
102
|
+
ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 264,
|
103
|
+
TypeAliasReferencesItself = 265,
|
104
|
+
TypeParameterHasCircularConstraint = 266,
|
105
|
+
BaseTypeCausesInheritanceCycle = 267,
|
106
|
+
OnlyGenericTypesAndFunctionsCanBeSpecialized = 268,
|
107
|
+
Expected0TypeArguments = 269,
|
108
|
+
ExpectedFrom0To1TypeArguments = 270,
|
109
|
+
Type0IsNotAssignableToConstraint1 = 271,
|
110
|
+
VariableIsDeclaredButItsValueIsNeverRead = 272,
|
111
|
+
FunctionIsDeclaredButNotUsed = 273,
|
112
|
+
TypeParameterIsDeclaredButNotUsed = 274,
|
113
|
+
DefaultConstructorArgumentsMustBeNamed = 275,
|
114
|
+
IncorrectBodyOfBasicAliasTypeMethod = 276,
|
115
|
+
TheFollowingDeclarationsAreNotTranslated0 = 277,
|
116
|
+
TheFollowingDeclarationAreNotTranslated0And1More = 278,
|
117
|
+
OperatorFunctionMustNotBeStatic = 279,
|
118
|
+
OperatorFunction0MustNotHaveParameters = 280,
|
119
|
+
OperatorFunction0MustHaveOneParameter = 281,
|
120
|
+
OperatorFunction0MustHaveNoMoreThanOneParameter = 282,
|
121
|
+
CorrespondingBasicTypeMemberNotFound = 283,
|
122
|
+
ConstructorCannotBeDeclaredAsBasic = 284,
|
123
|
+
ConstructorCannotBeDeclaredAsOverridden = 285,
|
124
|
+
AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 286,
|
125
|
+
TagNotFound = 287,
|
126
|
+
TypeOrFunctionNameExpected = 288,
|
127
|
+
PackageNameOrAliasExpected = 289,
|
128
|
+
ExpressionCanBeNone = 290,
|
129
|
+
TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 291,
|
130
|
+
UnreachableCode = 292,
|
131
|
+
RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 293,
|
132
|
+
RecursionOccurredWhileInferringTheTypeOfTheVariable = 294,
|
133
|
+
ScopeAlreadyContainsDeclarationWithTheSameName = 295,
|
134
|
+
ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 296,
|
135
|
+
ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 297,
|
136
|
+
PackageAlreadyContainsDeclarationWithTheSameName = 298,
|
137
|
+
PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 299,
|
138
|
+
PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 300,
|
139
|
+
PackageAliasWithTheSameNameAlreadyExits = 301,
|
140
|
+
PackageCanHaveOnlyEntryPoint = 302,
|
141
|
+
PackageCanHaveOnlyOneConstructor = 303,
|
142
|
+
VariableIsUsedBeforeItsDeclaration = 304,
|
143
|
+
VariableMayNotHasBeenAssignedBeforeUsage = 305,
|
144
|
+
NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 306,
|
145
|
+
WriteFunctionHasNoCorrespondingReadFunction = 307,
|
146
|
+
CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
|
147
|
+
SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
|
148
|
+
ProgramWithoutMainPackageCannotBeCompiled = 403,
|
149
|
+
ErrorsInJsonConfigurationFile = 404,
|
150
|
+
StandardPackage0NotFound = 405,
|
151
|
+
Declaration0NotFoundInStandardPackage1 = 406
|
138
152
|
}
|
@@ -23,12 +23,12 @@ export declare class FunctionEntityDetails implements TypeMemberEntityDetails {
|
|
23
23
|
isPackageConstructor: boolean;
|
24
24
|
isPackageEntryPoint: boolean;
|
25
25
|
overriddenMembers: readonly FunctionEntity[];
|
26
|
-
|
26
|
+
ifBasicAliasTypeMethodThenRealMethod: FunctionEntity | undefined;
|
27
27
|
isDefaultExport: boolean;
|
28
28
|
isAliasTypeOrExtensionMemberThatRequiresLowering: boolean;
|
29
29
|
isBuiltInOperator: boolean;
|
30
30
|
hasComputedName: ComputedNameInfo | undefined;
|
31
|
-
|
31
|
+
isBasic: boolean;
|
32
32
|
isTypeExtensionMemberAddedToPrototype: boolean;
|
33
33
|
isAbstract: boolean;
|
34
34
|
isStatic: boolean;
|
@@ -65,7 +65,7 @@ export declare class VariableEntityDetails implements TypeMemberEntityDetails {
|
|
65
65
|
isProxiedField: ProxiedFieldInfo | undefined;
|
66
66
|
isDefaultExport: boolean;
|
67
67
|
hasComputedName: ComputedNameInfo | undefined;
|
68
|
-
|
68
|
+
isBasic: boolean;
|
69
69
|
isAbstract: boolean;
|
70
70
|
isTypeExtensionMemberAddedToPrototype: boolean;
|
71
71
|
isStatic: boolean;
|
@@ -78,7 +78,7 @@ export type TypeMemberEntity = FunctionEntity | VariableEntity;
|
|
78
78
|
interface TypeMemberEntityDetails {
|
79
79
|
isStatic: boolean;
|
80
80
|
isAbstract: boolean;
|
81
|
-
|
81
|
+
isBasic: boolean;
|
82
82
|
overriddenMembers: readonly TypeMemberEntity[];
|
83
83
|
hasComputedName: ComputedNameInfo | undefined;
|
84
84
|
isTypeExtensionMemberAddedToPrototype: boolean;
|
@@ -91,7 +91,6 @@ export declare class IrBuilder {
|
|
91
91
|
private convertIndexedAccess;
|
92
92
|
private convertDereferencedVariableAccess;
|
93
93
|
private buildReferenceExpression;
|
94
|
-
private buildWhenTernaryExpression;
|
95
94
|
private buildConditionalExpression;
|
96
95
|
private buildTextTemplateLiteral;
|
97
96
|
private buildTokenExpression;
|
@@ -12,8 +12,8 @@ export interface DereferenceOperatorEntity {
|
|
12
12
|
getContainer(): TypeMemberEntityContainer;
|
13
13
|
isStatic(): boolean;
|
14
14
|
isHidden(): EntityHidingLevel | undefined;
|
15
|
-
|
16
|
-
|
15
|
+
isBasic(): boolean;
|
16
|
+
isOverridden(): boolean;
|
17
17
|
isAbstract(): boolean;
|
18
18
|
getTags(): readonly Tag[];
|
19
19
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
@@ -41,8 +41,8 @@ export declare class DereferenceOperatorDeclarationEntity implements Dereference
|
|
41
41
|
getContainer(): TypeMemberEntityContainer;
|
42
42
|
isStatic(): boolean;
|
43
43
|
isHidden(): EntityHidingLevel | undefined;
|
44
|
-
|
45
|
-
|
44
|
+
isBasic(): boolean;
|
45
|
+
isOverridden(): boolean;
|
46
46
|
isAbstract(): boolean;
|
47
47
|
getTags(): readonly Tag[];
|
48
48
|
getOverriddenMembers(): readonly types.DereferenceOperator[];
|
@@ -14,8 +14,8 @@ export interface MethodEntity extends IFunctionEntity {
|
|
14
14
|
readonly subkind: 'method';
|
15
15
|
getContainer(): TypeMemberEntityContainer;
|
16
16
|
isStatic(): boolean;
|
17
|
-
|
18
|
-
|
17
|
+
isBasic(): boolean;
|
18
|
+
isOverridden(): boolean;
|
19
19
|
isAbstract(): boolean;
|
20
20
|
isModifyingOwningPlainObject(): boolean;
|
21
21
|
isFunctionTypeInvokeMethod(): boolean;
|
@@ -91,8 +91,8 @@ export declare class MethodDeclarationEntity implements MethodEntity {
|
|
91
91
|
isFunctionTypeInvokeMethod(): boolean;
|
92
92
|
getContainer(): TypeMemberEntityContainer;
|
93
93
|
isStatic(): boolean;
|
94
|
-
|
95
|
-
|
94
|
+
isBasic(): boolean;
|
95
|
+
isOverridden(): boolean;
|
96
96
|
isAbstract(): boolean;
|
97
97
|
isModifyingOwningPlainObject(): boolean;
|
98
98
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
@@ -153,14 +153,14 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
153
153
|
private readonly _isFunctionTypeInvokeMethod;
|
154
154
|
private readonly _container;
|
155
155
|
private readonly _isStatic;
|
156
|
-
private readonly
|
156
|
+
private readonly _isBasic;
|
157
157
|
private readonly _isRedefined;
|
158
158
|
private readonly _isAbstract;
|
159
159
|
private readonly _isModifyingOwningPlainObject;
|
160
160
|
private readonly _overriddenMembers;
|
161
161
|
readonly kind = EntityKind.Function;
|
162
162
|
readonly subkind = "method";
|
163
|
-
constructor(_name: Name, _typeParameters: readonly TypeParameterEntity[], _valueParameters: readonly ParameterVariableEntity[], _returnType: types.Type, _isAsync: boolean, _isHidden: EntityHidingLevel | undefined, _tags: readonly Tag[], _isFunctionTypeInvokeMethod: boolean, _container: TypeMemberEntityContainer, _isStatic: boolean,
|
163
|
+
constructor(_name: Name, _typeParameters: readonly TypeParameterEntity[], _valueParameters: readonly ParameterVariableEntity[], _returnType: types.Type, _isAsync: boolean, _isHidden: EntityHidingLevel | undefined, _tags: readonly Tag[], _isFunctionTypeInvokeMethod: boolean, _container: TypeMemberEntityContainer, _isStatic: boolean, _isBasic: boolean, _isRedefined: boolean, _isAbstract: boolean, _isModifyingOwningPlainObject: boolean, _overriddenMembers: readonly types.Method[]);
|
164
164
|
getName(): Name;
|
165
165
|
getTypeParameters(): readonly TypeParameterEntity[];
|
166
166
|
getValueParameters(): readonly ParameterVariableEntity[];
|
@@ -173,8 +173,8 @@ export declare class IntrinsicMethodEntity implements MethodEntity {
|
|
173
173
|
isFunctionTypeInvokeMethod(): boolean;
|
174
174
|
getContainer(): TypeMemberEntityContainer;
|
175
175
|
isStatic(): boolean;
|
176
|
-
|
177
|
-
|
176
|
+
isBasic(): boolean;
|
177
|
+
isOverridden(): boolean;
|
178
178
|
isAbstract(): boolean;
|
179
179
|
isModifyingOwningPlainObject(): boolean;
|
180
180
|
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
@@ -13,8 +13,8 @@ export interface IndexerEntity {
|
|
13
13
|
getContainer(): TypeMemberEntityContainer;
|
14
14
|
isStatic(): boolean;
|
15
15
|
isHidden(): EntityHidingLevel | undefined;
|
16
|
-
|
17
|
-
|
16
|
+
isBasic(): boolean;
|
17
|
+
isOverridden(): boolean;
|
18
18
|
isAbstract(): boolean;
|
19
19
|
getTags(): readonly Tag[];
|
20
20
|
getOverriddenMembers(): readonly types.Indexer[];
|
@@ -51,8 +51,8 @@ export declare class IndexerDeclarationEntity implements SourceIndexerEntity {
|
|
51
51
|
getContainer(): TypeMemberEntityContainer;
|
52
52
|
isStatic(): boolean;
|
53
53
|
isHidden(): EntityHidingLevel | undefined;
|
54
|
-
|
55
|
-
|
54
|
+
isBasic(): boolean;
|
55
|
+
isOverridden(): boolean;
|
56
56
|
isAbstract(): boolean;
|
57
57
|
getTags(): readonly Tag[];
|
58
58
|
getOverriddenMembers(): readonly types.Indexer[];
|
@@ -11,8 +11,8 @@ export interface OperatorEntity {
|
|
11
11
|
getDefinition(): OperatorDefinition;
|
12
12
|
getContainer(): TypeMemberEntityContainer;
|
13
13
|
isStatic(): boolean;
|
14
|
-
|
15
|
-
|
14
|
+
isBasic(): boolean;
|
15
|
+
isOverridden(): boolean;
|
16
16
|
isAbstract(): boolean;
|
17
17
|
isHidden(): EntityHidingLevel | undefined;
|
18
18
|
getTags(): readonly Tag[];
|
@@ -38,8 +38,8 @@ export declare class OperatorDeclarationEntity implements OperatorEntity {
|
|
38
38
|
getDefinition(): OperatorDefinition;
|
39
39
|
getContainer(): TypeMemberEntityContainer;
|
40
40
|
isStatic(): boolean;
|
41
|
-
|
42
|
-
|
41
|
+
isBasic(): boolean;
|
42
|
+
isOverridden(): boolean;
|
43
43
|
isAbstract(): boolean;
|
44
44
|
isHidden(): EntityHidingLevel | undefined;
|
45
45
|
getTags(): readonly Tag[];
|
@@ -15,8 +15,8 @@ export interface FieldEntity extends IVariableEntity {
|
|
15
15
|
readonly subkind: 'field';
|
16
16
|
getContainer(): TypeMemberEntityContainer;
|
17
17
|
isStatic(): boolean;
|
18
|
-
|
19
|
-
|
18
|
+
isBasic(): boolean;
|
19
|
+
isOverridden(): boolean;
|
20
20
|
isAbstract(): boolean;
|
21
21
|
getOverriddenMembers(): readonly types.Variable[];
|
22
22
|
isVariant(): boolean;
|
@@ -48,6 +48,7 @@ interface IVariableEntity {
|
|
48
48
|
isHidden(): EntityHidingLevel | undefined;
|
49
49
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
50
50
|
getTags(): readonly Tag[];
|
51
|
+
ensureAllDiagnosticsReported?(): void;
|
51
52
|
}
|
52
53
|
export type ParameterVariableEntityContainer = ParameterVariableEntityContainer.Entity | ParameterVariableEntityContainer.FunctionLiteral;
|
53
54
|
export declare namespace ParameterVariableEntityContainer {
|
@@ -109,6 +110,7 @@ export declare class PackageVariableDeclarationEntity implements PackageVariable
|
|
109
110
|
readonly subkind = "package";
|
110
111
|
private readonly _typeInferrer;
|
111
112
|
private readonly _modifierFlags;
|
113
|
+
private _hasReportedAllDiagnostics;
|
112
114
|
private get modifierFlags();
|
113
115
|
constructor(_analyzer: Analyzer, _node: tree.PackageVariableDeclaration);
|
114
116
|
getName(): Name;
|
@@ -121,6 +123,7 @@ export declare class PackageVariableDeclarationEntity implements PackageVariable
|
|
121
123
|
isHidden(): EntityHidingLevel | undefined;
|
122
124
|
isSpecial(): SpecialVariableEntityInfo | undefined;
|
123
125
|
getTags(): readonly Tag[];
|
126
|
+
ensureAllDiagnosticsReported(): void;
|
124
127
|
}
|
125
128
|
export declare class ComputedPackageVariableDeclarationEntity implements PackageVariableEntity {
|
126
129
|
readonly kind = EntityKind.Variable;
|
@@ -151,6 +154,7 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
151
154
|
private readonly _typeInferrer;
|
152
155
|
private readonly _overriddenMembers;
|
153
156
|
private readonly _modifierFlags;
|
157
|
+
private _hasReportedAllDiagnostics;
|
154
158
|
private get modifierFlags();
|
155
159
|
constructor(analyzer: Analyzer, node: tree.FieldDeclaration);
|
156
160
|
getName(): Name;
|
@@ -164,11 +168,12 @@ export declare class FieldDeclarationEntity implements FieldEntity {
|
|
164
168
|
getTags(): readonly Tag[];
|
165
169
|
getContainer(): TypeMemberEntityContainer;
|
166
170
|
isStatic(): boolean;
|
167
|
-
|
168
|
-
|
171
|
+
isBasic(): boolean;
|
172
|
+
isOverridden(): boolean;
|
169
173
|
isAbstract(): boolean;
|
170
174
|
getOverriddenMembers(): readonly types.Variable[];
|
171
175
|
isVariant(): boolean;
|
176
|
+
ensureAllDiagnosticsReported(): void;
|
172
177
|
}
|
173
178
|
export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
174
179
|
readonly kind = EntityKind.Variable;
|
@@ -187,8 +192,8 @@ export declare class ComputedFieldDeclarationEntity implements FieldEntity {
|
|
187
192
|
isHidden(): EntityHidingLevel | undefined;
|
188
193
|
isConstant(): boolean;
|
189
194
|
isStatic(): boolean;
|
190
|
-
|
191
|
-
|
195
|
+
isBasic(): boolean;
|
196
|
+
isOverridden(): boolean;
|
192
197
|
isAbstract(): boolean;
|
193
198
|
getDefinition(): VariableEntityDefinition;
|
194
199
|
getGetter(): GetterEntity | undefined;
|
@@ -217,8 +222,8 @@ export declare class VariantDeclarationEntity implements FieldEntity {
|
|
217
222
|
getTags(): readonly Tag[];
|
218
223
|
getContainer(): TypeMemberEntityContainer;
|
219
224
|
isStatic(): boolean;
|
220
|
-
|
221
|
-
|
225
|
+
isBasic(): boolean;
|
226
|
+
isOverridden(): boolean;
|
222
227
|
isAbstract(): boolean;
|
223
228
|
getOverriddenMembers(): readonly types.Variable[];
|
224
229
|
isVariant(): boolean;
|
@@ -229,6 +234,7 @@ export declare class LocalVariableDeclarationEntity implements LocalVariableEnti
|
|
229
234
|
readonly kind = EntityKind.Variable;
|
230
235
|
readonly subkind = "local";
|
231
236
|
private readonly _typeInferrer;
|
237
|
+
private _hasReportedAllDiagnostics;
|
232
238
|
constructor(_analyzer: Analyzer, _node: tree.LocalVariableDeclaration);
|
233
239
|
getName(): Name;
|
234
240
|
getType(): types.Type;
|
@@ -241,6 +247,7 @@ export declare class LocalVariableDeclarationEntity implements LocalVariableEnti
|
|
241
247
|
getTags(): readonly Tag[];
|
242
248
|
getLocalVariableKind(): LocalVariableKind;
|
243
249
|
getContainingEntity(): Entity;
|
250
|
+
ensureAllDiagnosticsReported(): void;
|
244
251
|
}
|
245
252
|
export declare class EnumerationVariableDeclarationEntity implements LocalVariableEntity {
|
246
253
|
private readonly _analyzer;
|
@@ -248,6 +255,7 @@ export declare class EnumerationVariableDeclarationEntity implements LocalVariab
|
|
248
255
|
readonly kind = EntityKind.Variable;
|
249
256
|
readonly subkind = "local";
|
250
257
|
private readonly _typeInferrer;
|
258
|
+
private _hasReportedAllDiagnostics;
|
251
259
|
constructor(_analyzer: Analyzer, _node: tree.EnumerationVariableDeclaration);
|
252
260
|
getName(): Name;
|
253
261
|
getType(): types.Type;
|
@@ -260,6 +268,7 @@ export declare class EnumerationVariableDeclarationEntity implements LocalVariab
|
|
260
268
|
getTags(): readonly Tag[];
|
261
269
|
getLocalVariableKind(): LocalVariableKind;
|
262
270
|
getContainingEntity(): Entity;
|
271
|
+
ensureAllDiagnosticsReported(): void;
|
263
272
|
}
|
264
273
|
export declare class ErrorVariableDeclarationEntity implements LocalVariableEntity {
|
265
274
|
private readonly _analyzer;
|
@@ -285,6 +294,7 @@ export declare class ParameterDeclarationEntity implements ParameterVariableEnti
|
|
285
294
|
readonly kind = EntityKind.Variable;
|
286
295
|
readonly subkind = "parameter";
|
287
296
|
private readonly _typeInferrer;
|
297
|
+
private _hasReportedAllDiagnostics;
|
288
298
|
constructor(_analyzer: Analyzer, _node: tree.ParameterDeclaration);
|
289
299
|
getName(): Name;
|
290
300
|
getType(): types.Type;
|
@@ -298,6 +308,7 @@ export declare class ParameterDeclarationEntity implements ParameterVariableEnti
|
|
298
308
|
getContainer(): ParameterVariableEntityContainer;
|
299
309
|
isOptional(): boolean;
|
300
310
|
isVariadic(): boolean;
|
311
|
+
ensureAllDiagnosticsReported(): void;
|
301
312
|
}
|
302
313
|
export declare class IndexParameterDeclarationEntity implements ParameterVariableEntity {
|
303
314
|
private readonly _analyzer;
|
@@ -308,6 +319,7 @@ export declare class IndexParameterDeclarationEntity implements ParameterVariabl
|
|
308
319
|
readonly subkind = "parameter";
|
309
320
|
private readonly _getterOrSetterParameterDeclaration;
|
310
321
|
private readonly _typeInferrer;
|
322
|
+
private _hasReportedAllDiagnostics;
|
311
323
|
constructor(_analyzer: Analyzer, _getterParameterDeclaration: tree.ParameterDeclaration | undefined, _setterParameterDeclaration: tree.ParameterDeclaration | undefined, _indexerEntity: IndexerEntity);
|
312
324
|
getName(): Name;
|
313
325
|
getType(): types.Type;
|
@@ -321,6 +333,7 @@ export declare class IndexParameterDeclarationEntity implements ParameterVariabl
|
|
321
333
|
getContainer(): ParameterVariableEntityContainer;
|
322
334
|
isOptional(): boolean;
|
323
335
|
isVariadic(): boolean;
|
336
|
+
ensureAllDiagnosticsReported(): void;
|
324
337
|
}
|
325
338
|
export declare class FunctionLiteralParameterDeclarationEntity implements ParameterVariableEntity {
|
326
339
|
private readonly _analyzer;
|
@@ -370,7 +383,7 @@ export declare class IntrinsicFieldEntity implements FieldEntity {
|
|
370
383
|
private readonly _type;
|
371
384
|
private readonly _container;
|
372
385
|
private readonly _isStatic;
|
373
|
-
private readonly
|
386
|
+
private readonly _isBasic;
|
374
387
|
private readonly _isRedefined;
|
375
388
|
private readonly _isAbstract;
|
376
389
|
private readonly _isSpecial;
|
@@ -380,7 +393,7 @@ export declare class IntrinsicFieldEntity implements FieldEntity {
|
|
380
393
|
private readonly _overriddenMembers;
|
381
394
|
readonly kind = EntityKind.Variable;
|
382
395
|
readonly subkind = "field";
|
383
|
-
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean,
|
396
|
+
constructor(_name: Name, _type: types.Type, _container: TypeMemberEntityContainer, _isStatic: boolean, _isBasic: boolean, _isRedefined: boolean, _isAbstract: boolean, _isSpecial: SpecialVariableEntityInfo | undefined, _isHidden: EntityHidingLevel | undefined, _getter: GetterEntity | undefined, _setter: SetterEntity | undefined, _overriddenMembers: readonly types.Variable[]);
|
384
397
|
getName(): Name;
|
385
398
|
getType(): types.Type;
|
386
399
|
getDefinition(): VariableEntityDefinition;
|
@@ -392,8 +405,8 @@ export declare class IntrinsicFieldEntity implements FieldEntity {
|
|
392
405
|
getTags(): readonly Tag[];
|
393
406
|
getContainer(): TypeMemberEntityContainer;
|
394
407
|
isStatic(): boolean;
|
395
|
-
|
396
|
-
|
408
|
+
isBasic(): boolean;
|
409
|
+
isOverridden(): boolean;
|
397
410
|
isAbstract(): boolean;
|
398
411
|
getOverriddenMembers(): readonly types.Variable[];
|
399
412
|
isVariant(): boolean;
|
@@ -77,6 +77,10 @@ export type EntityWithTags = ConstructorEntity | DestructorEntity | IndexerEntit
|
|
77
77
|
export declare function isEntityWithTags(entity: Entity): entity is EntityWithTags;
|
78
78
|
export type TypeMemberEntity = FieldEntity | MethodEntity | OperatorEntity | ConstructorEntity | DestructorEntity | IndexerEntity | DereferenceOperatorEntity;
|
79
79
|
export declare function isTypeMemberEntity(entity: Entity): entity is TypeMemberEntity;
|
80
|
+
export declare namespace TypeMemberEntity {
|
81
|
+
function isAspectTypeMember(entity: TypeMemberEntity): boolean;
|
82
|
+
function isStatic(entity: TypeMemberEntity): boolean;
|
83
|
+
}
|
80
84
|
export declare function entityToStringDecorator<T extends {
|
81
85
|
new (...args: any[]): Entity;
|
82
86
|
}>(constructor: T): void;
|
@@ -38,8 +38,10 @@ export declare class TranslationPackageConfiguration {
|
|
38
38
|
readonly targetPackageName: PackageName;
|
39
39
|
readonly translatedName: PackageName;
|
40
40
|
readonly translationLocale: PackageLocale;
|
41
|
+
readonly locale: PackageLocale;
|
42
|
+
readonly dialect?: PackageDialect | undefined;
|
41
43
|
get name(): PackageName;
|
42
|
-
constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale);
|
44
|
+
constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect | undefined);
|
43
45
|
}
|
44
46
|
export declare class ProgramPackageConfiguration {
|
45
47
|
readonly name: PackageName;
|
@@ -8,7 +8,7 @@ export declare class ConfigurationConverter {
|
|
8
8
|
static convert(configurations: readonly origin.Configuration[], packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ConvertedConfiguration;
|
9
9
|
static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
|
10
10
|
static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
|
11
|
-
static convertTranslationsConfiguration(configuration: origin.Translations): TranslationPackageConfiguration;
|
11
|
+
static convertTranslationsConfiguration(configuration: origin.Translations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TranslationPackageConfiguration;
|
12
12
|
private static convertJavaScriptImplementation;
|
13
13
|
private static convertLanguage;
|
14
14
|
private static convertDialect;
|
@@ -38,26 +38,25 @@ export declare enum KeywordKind {
|
|
38
38
|
Const = 36,
|
39
39
|
Hidden = 37,
|
40
40
|
Abstract = 38,
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
Set = 60
|
41
|
+
Redefined = 39,
|
42
|
+
Async = 40,
|
43
|
+
Static = 41,
|
44
|
+
As = 42,
|
45
|
+
Not = 43,
|
46
|
+
Switch = 44,
|
47
|
+
Case = 45,
|
48
|
+
Dispose = 46,
|
49
|
+
Destruction = 47,
|
50
|
+
InHierarchy = 48,
|
51
|
+
InFile = 49,
|
52
|
+
InPackage = 50,
|
53
|
+
InType = 51,
|
54
|
+
Yes = 52,
|
55
|
+
No = 53,
|
56
|
+
Reference = 54,
|
57
|
+
Translations = 55,
|
58
|
+
Base = 56,
|
59
|
+
None = 57,
|
60
|
+
Get = 58,
|
61
|
+
Set = 59
|
63
62
|
}
|