@artel/artc 0.6.25226 → 0.6.25228
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 +12 -56
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +204 -109
- package/build/{chunk-VRQPLLYS.js → chunk-5GSDYTF6.js} +6405 -5358
- package/build/{chunk-YNR2KYMJ.js → chunk-F5OW64UA.js} +3 -3
- package/build/{chunk-MHPX52MT.js → chunk-FHJJX7JY.js} +3 -3
- package/build/types/analysis/Analyzer.d.ts +32 -71
- package/build/types/analysis/AssignmentChecker.d.ts +11 -0
- package/build/types/analysis/CallExpressionMeaning.d.ts +2 -0
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +8 -3
- package/build/types/analysis/DiagnosticCollector.d.ts +15 -5
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +6 -6
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +3 -3
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +9 -9
- package/build/types/analysis/NamedTypeResolver.d.ts +3 -2
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +3 -2
- package/build/types/analysis/NodeTypeUtils.d.ts +3 -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/TagMeaning.d.ts +3 -2
- package/build/types/analysis/TypeInferrer.d.ts +2 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +11 -11
- package/build/types/analysis/TypeNarrower.d.ts +0 -69
- package/build/types/analysis/control-flow/GraphBuilder.d.ts +6 -2
- package/build/types/analysis/control-flow/NarrowableReference.d.ts +73 -0
- package/build/types/analysis/control-flow/Nodes.d.ts +9 -0
- package/build/types/analysis/control-flow/index.d.ts +1 -0
- package/build/types/analysis/semantic-context/Declarations.d.ts +117 -0
- package/build/types/analysis/semantic-context/FieldWithInitializerSemanticContext.d.ts +22 -0
- package/build/types/analysis/semantic-context/SemanticContext.d.ts +13 -0
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +168 -0
- package/build/types/analysis/semantic-context/SemanticContextBasedEntityHidingMatcher.d.ts +14 -0
- package/build/types/analysis/semantic-context/SemanticContextBuilder.d.ts +84 -0
- package/build/types/analysis/semantic-context/SemanticContextValidatingNameConflicts.d.ts +45 -0
- package/build/types/analysis/semantic-context/SemanticContextWithParent.d.ts +9 -0
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +42 -0
- package/build/types/analysis/semantic-context/SpecialLocalDeclarationsBuilder.d.ts +23 -0
- package/build/types/analysis/semantic-context/SubprogramBodyAndParametersSemanticContext.d.ts +89 -0
- package/build/types/analysis/semantic-context/SubprogramSemanticContext.d.ts +114 -0
- package/build/types/analysis/semantic-context/TypeSemanticContext.d.ts +94 -0
- package/build/types/analysis/semantic-context/index.d.ts +10 -0
- package/build/types/api/Api.d.ts +3 -5
- package/build/types/common/Cached.d.ts +1 -0
- package/build/types/common/Errors.d.ts +2 -0
- package/build/types/common/Lazy.d.ts +4 -0
- package/build/types/common/Query.d.ts +2 -1
- package/build/types/common/WithDiagnostics.d.ts +4 -3
- package/build/types/common/index.d.ts +1 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +89 -68
- package/build/types/emitter/IrBuilder.d.ts +1 -1
- package/build/types/emitter/Transformer.d.ts +1 -1
- package/build/types/entities/FunctionEntity.d.ts +2 -2
- package/build/types/entities/VariableEntity.d.ts +48 -19
- package/build/types/entities/index.d.ts +4 -0
- package/build/types/services/DefinitionService.d.ts +3 -0
- package/build/types/tree/KeywordKind.d.ts +31 -30
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/green/Nodes.d.ts +33 -29
- package/build/types/tree/red/Nodes.d.ts +25 -24
- package/build/types/types/TypeFactory.d.ts +0 -2
- package/package.json +1 -1
- package/build/types/analysis/Lookup.d.ts +0 -28
- package/build/types/analysis/Scope.d.ts +0 -205
- package/build/types/analysis/SemanticContext.d.ts +0 -367
- package/build/types/analysis/SemanticContextBuilder.d.ts +0 -59
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +0 -26
package/build/Cli.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
2
|
import {
|
3
3
|
CommandLineCompiler
|
4
|
-
} from "./chunk-
|
5
|
-
import "./chunk-
|
4
|
+
} from "./chunk-FHJJX7JY.js";
|
5
|
+
import "./chunk-F5OW64UA.js";
|
6
6
|
import {
|
7
7
|
__async
|
8
|
-
} from "./chunk-
|
8
|
+
} from "./chunk-5GSDYTF6.js";
|
9
9
|
|
10
10
|
// source/Cli.ts
|
11
11
|
function main() {
|
package/build/api/Api.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
Compiler
|
3
|
-
} from "../chunk-
|
3
|
+
} from "../chunk-F5OW64UA.js";
|
4
4
|
import {
|
5
5
|
AccessKind,
|
6
6
|
AccessedFunctionValueParameter,
|
@@ -27,7 +27,6 @@ import {
|
|
27
27
|
BoundTypeMemberLookup,
|
28
28
|
Cached,
|
29
29
|
CancelledError,
|
30
|
-
CatchClauseSemanticContext,
|
31
30
|
CharacterCodes,
|
32
31
|
Compilation,
|
33
32
|
CompilationKind,
|
@@ -41,7 +40,6 @@ import {
|
|
41
40
|
ConfigurationFileParser,
|
42
41
|
ConstructorDeclarationEntity,
|
43
42
|
ConstructorParameterInitializingFieldInfo,
|
44
|
-
ConstructorSemanticContext,
|
45
43
|
Debug,
|
46
44
|
DeclaredTypeMemberEntities,
|
47
45
|
DefaultConstructorEntity,
|
@@ -57,7 +55,6 @@ import {
|
|
57
55
|
DereferencedVariableGetterDeclarationEntity,
|
58
56
|
DereferencedVariableSetterDeclarationEntity,
|
59
57
|
DestructorDeclarationEntity,
|
60
|
-
DestructorSemanticContext,
|
61
58
|
Diagnostic,
|
62
59
|
DiagnosticCode,
|
63
60
|
DiagnosticCollector,
|
@@ -85,21 +82,14 @@ import {
|
|
85
82
|
FieldDeclarationEntity,
|
86
83
|
FieldGetterDeclarationEntity,
|
87
84
|
FieldSetterDeclarationEntity,
|
88
|
-
FieldWithInitializerSemanticContext,
|
89
85
|
FileSystemTree_exports,
|
90
|
-
ForStatementSemanticContext,
|
91
86
|
FoundAnonymousDeclaration,
|
92
87
|
FoundNamedDeclaration,
|
93
|
-
FunctionBlockSemanticContext,
|
94
88
|
FunctionLiteralParameterDeclarationEntity,
|
95
|
-
FunctionLiteralSemanticContext,
|
96
|
-
FunctionTypeParameterSemanticContext,
|
97
|
-
FunctionValueParameterSemanticContext,
|
98
89
|
GeneratedSourceFileScheme,
|
99
90
|
GenericCancellationToken,
|
100
91
|
GetMultipleTranslationTargetsResult,
|
101
92
|
GetSingleTranslationTargetResult,
|
102
|
-
GetterSemanticContext,
|
103
93
|
ImplicitFunctionBlockParameterSpecialVariableEntityInfo,
|
104
94
|
ImportEmitKind,
|
105
95
|
ImportedPackage,
|
@@ -109,7 +99,6 @@ import {
|
|
109
99
|
IndexedElementGetterDeclarationEntity,
|
110
100
|
IndexedElementSetterDeclarationEntity,
|
111
101
|
IndexerDeclarationEntity,
|
112
|
-
IndexerSemanticContext,
|
113
102
|
InterfacePackageEntityInfo,
|
114
103
|
Interner,
|
115
104
|
IntrinsicConstructorEntity,
|
@@ -129,12 +118,11 @@ import {
|
|
129
118
|
JsonConfigurationFileNameSet,
|
130
119
|
JsonConfigurationFileNamesByLocale,
|
131
120
|
KeywordPart,
|
132
|
-
LastSemanticContextOfFunction,
|
133
|
-
LastSemanticContextOfType,
|
134
121
|
Lazy,
|
135
122
|
LinkedMultiPlatformPackage,
|
136
123
|
LinkedTypeWithMembers,
|
137
124
|
LocalVariableDeclarationEntity,
|
125
|
+
LocalVariableKind,
|
138
126
|
LocaleByConfigurationDirectoryName,
|
139
127
|
LocaleByJsonConfigurationFileName,
|
140
128
|
Localization,
|
@@ -144,9 +132,9 @@ import {
|
|
144
132
|
LocalizedSubprogramSignature,
|
145
133
|
LocalizedTypeHeader,
|
146
134
|
Logger,
|
147
|
-
Lookup,
|
148
135
|
MatchResult,
|
149
136
|
MatchResultValueParameter,
|
137
|
+
MaybeLazy,
|
150
138
|
MethodDeclarationEntity,
|
151
139
|
Name,
|
152
140
|
NameFlags,
|
@@ -155,15 +143,12 @@ import {
|
|
155
143
|
NodeTypeUtils,
|
156
144
|
OperatorDeclarationEntity,
|
157
145
|
OperatorKind,
|
158
|
-
OperatorSemanticContext,
|
159
146
|
Option,
|
160
147
|
PackageAliasTypeDeclarationEntity,
|
161
148
|
PackageConfigurationEn_exports,
|
162
149
|
PackageConfigurationRu_exports,
|
163
|
-
PackageConstructorSemanticContext,
|
164
150
|
PackageContent_exports,
|
165
151
|
PackageDialect,
|
166
|
-
PackageEntryPointSemanticContext,
|
167
152
|
PackageFromDtsConfig,
|
168
153
|
PackageFunctionDeclarationEntity,
|
169
154
|
PackageFunctionTypeDeclarationEntity,
|
@@ -189,6 +174,7 @@ import {
|
|
189
174
|
ProgramPackageConfiguration,
|
190
175
|
Query,
|
191
176
|
Range,
|
177
|
+
RecursiveAnalysisError,
|
192
178
|
RequiredJsLibraryConfig,
|
193
179
|
RequiredJsLibraryConfigs,
|
194
180
|
RequiredPackageConfig,
|
@@ -196,20 +182,15 @@ import {
|
|
196
182
|
Result,
|
197
183
|
ResultSpecialVariableEntityInfo,
|
198
184
|
Scanner,
|
199
|
-
ScopeChain,
|
200
185
|
SearchName,
|
201
|
-
SetterSemanticContext,
|
202
186
|
SourceFile2 as SourceFile,
|
203
187
|
SourceFileMembers,
|
204
|
-
SourceFileSemanticContext,
|
205
188
|
SourceMapMode,
|
206
189
|
SourcePackageDependencyGraph,
|
207
190
|
SourcePackageEntity,
|
208
191
|
SourcePackageStructuredTypeDeclarationData,
|
209
192
|
SourceTypeExtensionEntity,
|
210
193
|
SourceTypeParameterEntity,
|
211
|
-
StatementBlockSemanticContext,
|
212
|
-
SubprogramInfo,
|
213
194
|
SubstitutedFunction_entity,
|
214
195
|
SubstitutedFunction_typeMember,
|
215
196
|
SubstitutionApplicationMode,
|
@@ -237,18 +218,14 @@ import {
|
|
237
218
|
TranslationPackageConfiguration,
|
238
219
|
TraversalController,
|
239
220
|
TreeQuery,
|
240
|
-
TryStatementClausesInfo,
|
241
221
|
TsInteropInputs,
|
242
222
|
TypeAssignabilityFlags,
|
243
|
-
TypeBodySemanticContext,
|
244
223
|
TypeEntityKind,
|
245
|
-
|
224
|
+
TypeMemberEntity,
|
246
225
|
TypeMemberEntityContainer,
|
247
226
|
TypeMemberLookup,
|
248
227
|
TypeMemberLookupOptions,
|
249
|
-
TypeOrTypeExtension,
|
250
228
|
TypeParameterConstraint,
|
251
|
-
TypeParametersOfTypeSemanticContext,
|
252
229
|
TypeUtils,
|
253
230
|
UnfinishedIntrinsicAnonymousFunctionTypeEntity,
|
254
231
|
UnfinishedIntrinsicAnonymousStructuredTypeEntity,
|
@@ -319,6 +296,7 @@ import {
|
|
319
296
|
reservedIdentifiersByLocale,
|
320
297
|
reservedIdentifiersKindByValue,
|
321
298
|
reservedJavaScriptIdentifiers,
|
299
|
+
semantic_context_exports,
|
322
300
|
setUserLocale,
|
323
301
|
tokenTextByOperatorKind,
|
324
302
|
traverseTree,
|
@@ -335,7 +313,7 @@ import {
|
|
335
313
|
withoutQuotes,
|
336
314
|
withoutTemplateQuotes,
|
337
315
|
yieldExecution
|
338
|
-
} from "../chunk-
|
316
|
+
} from "../chunk-5GSDYTF6.js";
|
339
317
|
export {
|
340
318
|
AccessKind,
|
341
319
|
AccessedFunctionValueParameter,
|
@@ -362,7 +340,6 @@ export {
|
|
362
340
|
BoundTypeMemberLookup,
|
363
341
|
Cached,
|
364
342
|
CancelledError,
|
365
|
-
CatchClauseSemanticContext,
|
366
343
|
CharacterCodes,
|
367
344
|
Compilation,
|
368
345
|
CompilationKind,
|
@@ -377,7 +354,6 @@ export {
|
|
377
354
|
ConfigurationFileParser,
|
378
355
|
ConstructorDeclarationEntity,
|
379
356
|
ConstructorParameterInitializingFieldInfo,
|
380
|
-
ConstructorSemanticContext,
|
381
357
|
Debug,
|
382
358
|
DeclaredTypeMemberEntities,
|
383
359
|
DefaultConstructorEntity,
|
@@ -393,7 +369,6 @@ export {
|
|
393
369
|
DereferencedVariableGetterDeclarationEntity,
|
394
370
|
DereferencedVariableSetterDeclarationEntity,
|
395
371
|
DestructorDeclarationEntity,
|
396
|
-
DestructorSemanticContext,
|
397
372
|
Diagnostic,
|
398
373
|
DiagnosticCode,
|
399
374
|
DiagnosticCollector,
|
@@ -421,20 +396,13 @@ export {
|
|
421
396
|
FieldDeclarationEntity,
|
422
397
|
FieldGetterDeclarationEntity,
|
423
398
|
FieldSetterDeclarationEntity,
|
424
|
-
FieldWithInitializerSemanticContext,
|
425
|
-
ForStatementSemanticContext,
|
426
399
|
FoundAnonymousDeclaration,
|
427
400
|
FoundNamedDeclaration,
|
428
|
-
FunctionBlockSemanticContext,
|
429
401
|
FunctionLiteralParameterDeclarationEntity,
|
430
|
-
FunctionLiteralSemanticContext,
|
431
|
-
FunctionTypeParameterSemanticContext,
|
432
|
-
FunctionValueParameterSemanticContext,
|
433
402
|
GeneratedSourceFileScheme,
|
434
403
|
GenericCancellationToken,
|
435
404
|
GetMultipleTranslationTargetsResult,
|
436
405
|
GetSingleTranslationTargetResult,
|
437
|
-
GetterSemanticContext,
|
438
406
|
ImplicitFunctionBlockParameterSpecialVariableEntityInfo,
|
439
407
|
ImportEmitKind,
|
440
408
|
ImportedPackage,
|
@@ -444,7 +412,6 @@ export {
|
|
444
412
|
IndexedElementGetterDeclarationEntity,
|
445
413
|
IndexedElementSetterDeclarationEntity,
|
446
414
|
IndexerDeclarationEntity,
|
447
|
-
IndexerSemanticContext,
|
448
415
|
InterfacePackageEntityInfo,
|
449
416
|
Interner,
|
450
417
|
IntrinsicConstructorEntity,
|
@@ -464,12 +431,11 @@ export {
|
|
464
431
|
JsonConfigurationFileNameSet,
|
465
432
|
JsonConfigurationFileNamesByLocale,
|
466
433
|
KeywordPart,
|
467
|
-
LastSemanticContextOfFunction,
|
468
|
-
LastSemanticContextOfType,
|
469
434
|
Lazy,
|
470
435
|
LinkedMultiPlatformPackage,
|
471
436
|
LinkedTypeWithMembers,
|
472
437
|
LocalVariableDeclarationEntity,
|
438
|
+
LocalVariableKind,
|
473
439
|
LocaleByConfigurationDirectoryName,
|
474
440
|
LocaleByJsonConfigurationFileName,
|
475
441
|
Localization,
|
@@ -479,9 +445,9 @@ export {
|
|
479
445
|
LocalizedSubprogramSignature,
|
480
446
|
LocalizedTypeHeader,
|
481
447
|
Logger,
|
482
|
-
Lookup,
|
483
448
|
MatchResult,
|
484
449
|
MatchResultValueParameter,
|
450
|
+
MaybeLazy,
|
485
451
|
MethodDeclarationEntity,
|
486
452
|
Name,
|
487
453
|
NameFlags,
|
@@ -490,12 +456,9 @@ export {
|
|
490
456
|
NodeTypeUtils,
|
491
457
|
OperatorDeclarationEntity,
|
492
458
|
OperatorKind,
|
493
|
-
OperatorSemanticContext,
|
494
459
|
Option,
|
495
460
|
PackageAliasTypeDeclarationEntity,
|
496
|
-
PackageConstructorSemanticContext,
|
497
461
|
PackageDialect,
|
498
|
-
PackageEntryPointSemanticContext,
|
499
462
|
PackageFromDtsConfig,
|
500
463
|
PackageFunctionDeclarationEntity,
|
501
464
|
PackageFunctionTypeDeclarationEntity,
|
@@ -521,6 +484,7 @@ export {
|
|
521
484
|
ProgramPackageConfiguration,
|
522
485
|
Query,
|
523
486
|
Range,
|
487
|
+
RecursiveAnalysisError,
|
524
488
|
RequiredJsLibraryConfig,
|
525
489
|
RequiredJsLibraryConfigs,
|
526
490
|
RequiredPackageConfig,
|
@@ -529,20 +493,15 @@ export {
|
|
529
493
|
ResultSpecialVariableEntityInfo,
|
530
494
|
Scanner,
|
531
495
|
TokenKind as ScannerTokenKind,
|
532
|
-
ScopeChain,
|
533
496
|
SearchName,
|
534
|
-
SetterSemanticContext,
|
535
497
|
SourceFile,
|
536
498
|
SourceFileMembers,
|
537
|
-
SourceFileSemanticContext,
|
538
499
|
SourceMapMode,
|
539
500
|
SourcePackageDependencyGraph,
|
540
501
|
SourcePackageEntity,
|
541
502
|
SourcePackageStructuredTypeDeclarationData,
|
542
503
|
SourceTypeExtensionEntity,
|
543
504
|
SourceTypeParameterEntity,
|
544
|
-
StatementBlockSemanticContext,
|
545
|
-
SubprogramInfo,
|
546
505
|
SubstitutedFunction_entity,
|
547
506
|
SubstitutedFunction_typeMember,
|
548
507
|
SubstitutionApplicationMode,
|
@@ -569,18 +528,14 @@ export {
|
|
569
528
|
TranslationPackageConfiguration,
|
570
529
|
TraversalController,
|
571
530
|
TreeQuery,
|
572
|
-
TryStatementClausesInfo,
|
573
531
|
TsInteropInputs,
|
574
532
|
TypeAssignabilityFlags,
|
575
|
-
TypeBodySemanticContext,
|
576
533
|
TypeEntityKind,
|
577
|
-
|
534
|
+
TypeMemberEntity,
|
578
535
|
TypeMemberEntityContainer,
|
579
536
|
TypeMemberLookup,
|
580
537
|
TypeMemberLookupOptions,
|
581
|
-
TypeOrTypeExtension,
|
582
538
|
TypeParameterConstraint,
|
583
|
-
TypeParametersOfTypeSemanticContext,
|
584
539
|
TypeUtils,
|
585
540
|
UnfinishedIntrinsicAnonymousFunctionTypeEntity,
|
586
541
|
UnfinishedIntrinsicAnonymousStructuredTypeEntity,
|
@@ -655,6 +610,7 @@ export {
|
|
655
610
|
reservedIdentifiersByLocale,
|
656
611
|
reservedIdentifiersKindByValue,
|
657
612
|
reservedJavaScriptIdentifiers,
|
613
|
+
semantic_context_exports as semanticContext,
|
658
614
|
setUserLocale,
|
659
615
|
tokenTextByOperatorKind,
|
660
616
|
traverseTree,
|
package/build/api/ApiNodeJS.js
CHANGED
@@ -6,9 +6,9 @@ import {
|
|
6
6
|
PhysicalFileSystem,
|
7
7
|
PhysicalTypeScriptLibrariesProvider,
|
8
8
|
PrintingDiagnosticAcceptor
|
9
|
-
} from "../chunk-
|
10
|
-
import "../chunk-
|
11
|
-
import "../chunk-
|
9
|
+
} from "../chunk-FHJJX7JY.js";
|
10
|
+
import "../chunk-F5OW64UA.js";
|
11
|
+
import "../chunk-5GSDYTF6.js";
|
12
12
|
export {
|
13
13
|
CommandLineCompiler,
|
14
14
|
FileSystemUri,
|