@artel/artc 0.9.26061-pre-release → 0.9.26062
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 +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +17 -14
- package/build/{chunk-ZYVAYG57.js → chunk-GFFPHR5G.js} +1 -1
- package/build/{chunk-53U5PFPM.js → chunk-JHXUTWHI.js} +614 -659
- package/build/{chunk-6UH5JW67.js → chunk-RUKQMGYY.js} +2 -2
- package/build/types/analysis/Analyzer.d.ts +6 -1
- package/build/types/analysis/NodeOrDiagnosticLocation.d.ts +2 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +1 -0
- package/build/types/diagnostic/Diagnostic.d.ts +2 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +34 -33
- package/build/types/entities/EntityLocalizationContext.d.ts +6 -4
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +1 -2
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -3
- package/build/types/entities/source/a/SourceFunctionTypeEntity.d.ts +1 -2
- package/build/types/entities/source/a/SourcePackageEntity.d.ts +1 -5
- package/build/types/entities/source/m/SourceFunctionTypeEntity.d.ts +1 -2
- package/build/types/entities/source/m/SourcePackageEntity.d.ts +1 -5
- package/build/types/entities/translated/BaseTranslatedTypeMemberAccessorEntity.d.ts +3 -2
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +3 -3
- package/build/types/entities/translated/TranslatedExtensionTypeEntity.d.ts +3 -3
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +3 -3
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +3 -4
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +4 -4
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +1 -3
- package/build/types/entities/translated/TranslatedPackageMemberAccessorEntity.d.ts +3 -2
- package/build/types/entities/translated/TranslatedParameterEntity.d.ts +3 -3
- package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +6 -6
- package/build/types/entities/translated/TranslatedTypeMemberAccessorEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +5 -5
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +3 -3
- package/build/types/entities/translated/source/m/SourceTranslatedIndexerEntity.d.ts +2 -2
- package/build/types/services/common/node-semantic-info/NodeSemanticInfoService.d.ts +2 -2
- package/build/types/ts-interop/TypeEntities.d.ts +0 -1
- package/package.json +1 -1
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-RUKQMGYY.js";
|
|
5
|
+
import "./chunk-GFFPHR5G.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JHXUTWHI.js";
|
|
9
9
|
|
|
10
10
|
// source/Cli.ts
|
|
11
11
|
function main() {
|
package/build/api/Api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler,
|
|
3
3
|
DiagnosticFormatter
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-GFFPHR5G.js";
|
|
5
5
|
import {
|
|
6
6
|
AccessKind,
|
|
7
7
|
AccessedFunction_entity,
|
|
@@ -321,7 +321,7 @@ import {
|
|
|
321
321
|
withoutQuotes,
|
|
322
322
|
withoutTemplateQuotes,
|
|
323
323
|
yieldTask
|
|
324
|
-
} from "../chunk-
|
|
324
|
+
} from "../chunk-JHXUTWHI.js";
|
|
325
325
|
export {
|
|
326
326
|
AccessKind,
|
|
327
327
|
AccessedFunction_entity,
|
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-RUKQMGYY.js";
|
|
10
|
+
import "../chunk-GFFPHR5G.js";
|
|
11
|
+
import "../chunk-JHXUTWHI.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
traverseTreeAsync,
|
|
147
147
|
traverseTreeAsync2,
|
|
148
148
|
yieldTask
|
|
149
|
-
} from "../chunk-
|
|
149
|
+
} from "../chunk-JHXUTWHI.js";
|
|
150
150
|
|
|
151
151
|
// source/services/common/Types.ts
|
|
152
152
|
import * as ls from "vscode-languageserver";
|
|
@@ -4189,15 +4189,15 @@ var DefaultSwitchMatchNodeSemanticInfo = class {
|
|
|
4189
4189
|
|
|
4190
4190
|
// source/services/common/node-semantic-info/NodeSemanticInfoService.ts
|
|
4191
4191
|
var NodeSemanticInfoService = class {
|
|
4192
|
-
static getBetterReferenceTargetsOrPreserve(
|
|
4192
|
+
static getBetterReferenceTargetsOrPreserve(analyzer, info) {
|
|
4193
4193
|
const currentTargets = info.betterTargets ?? info.targets;
|
|
4194
|
-
const betterTargets = currentTargets.map((t) => this.getBetterReferenceTargets(t)).filter((t) => t !== void 0).flat();
|
|
4194
|
+
const betterTargets = currentTargets.map((t) => this.getBetterReferenceTargets(analyzer, t)).filter((t) => t !== void 0).flat();
|
|
4195
4195
|
if (isNonEmptyArray(betterTargets)) {
|
|
4196
4196
|
return new ReferenceNodeSemanticInfo(info.targets, info.isAmbiguous, betterTargets);
|
|
4197
4197
|
}
|
|
4198
4198
|
return info;
|
|
4199
4199
|
}
|
|
4200
|
-
static getBetterReferenceTargets(original) {
|
|
4200
|
+
static getBetterReferenceTargets(analyzer, original) {
|
|
4201
4201
|
let result;
|
|
4202
4202
|
let currentTargets = [original];
|
|
4203
4203
|
let betterTargets;
|
|
@@ -4223,7 +4223,9 @@ var NodeSemanticInfoService = class {
|
|
|
4223
4223
|
let field;
|
|
4224
4224
|
const translation = currentTarget.entity.translation;
|
|
4225
4225
|
if (translation !== void 0) {
|
|
4226
|
-
const localizationContext =
|
|
4226
|
+
const localizationContext = analyzer.getLocalizationContextForPackage(
|
|
4227
|
+
currentTarget.entity.getContainingPackage()
|
|
4228
|
+
);
|
|
4227
4229
|
field = localizationContext.createLocalizedField(
|
|
4228
4230
|
specialVariableInfo.fieldOrBaseConstructorParameter
|
|
4229
4231
|
);
|
|
@@ -4235,7 +4237,9 @@ var NodeSemanticInfoService = class {
|
|
|
4235
4237
|
let parameter;
|
|
4236
4238
|
const translation = currentTarget.entity.translation;
|
|
4237
4239
|
if (translation !== void 0) {
|
|
4238
|
-
const localizationContext =
|
|
4240
|
+
const localizationContext = analyzer.getLocalizationContextForPackage(
|
|
4241
|
+
currentTarget.entity.getContainingPackage()
|
|
4242
|
+
);
|
|
4239
4243
|
parameter = localizationContext.createLocalizedParameter(
|
|
4240
4244
|
specialVariableInfo.fieldOrBaseConstructorParameter
|
|
4241
4245
|
);
|
|
@@ -4283,7 +4287,9 @@ var NodeSemanticInfoService = class {
|
|
|
4283
4287
|
let field;
|
|
4284
4288
|
const translation = currentTarget.parameter.entity.translation;
|
|
4285
4289
|
if (translation !== void 0) {
|
|
4286
|
-
const localizationContext =
|
|
4290
|
+
const localizationContext = analyzer.getLocalizationContextForPackage(
|
|
4291
|
+
currentTarget.parameter.entity.getContainingPackage()
|
|
4292
|
+
);
|
|
4287
4293
|
field = localizationContext.createLocalizedField(
|
|
4288
4294
|
specialVariableInfo.fieldOrBaseConstructorParameter
|
|
4289
4295
|
);
|
|
@@ -4295,7 +4301,9 @@ var NodeSemanticInfoService = class {
|
|
|
4295
4301
|
let parameter;
|
|
4296
4302
|
const translation = currentTarget.parameter.entity.translation;
|
|
4297
4303
|
if (translation !== void 0) {
|
|
4298
|
-
const localizationContext =
|
|
4304
|
+
const localizationContext = analyzer.getLocalizationContextForPackage(
|
|
4305
|
+
currentTarget.parameter.entity.getContainingPackage()
|
|
4306
|
+
);
|
|
4299
4307
|
parameter = localizationContext.createLocalizedParameter(
|
|
4300
4308
|
specialVariableInfo.fieldOrBaseConstructorParameter
|
|
4301
4309
|
);
|
|
@@ -8233,13 +8241,8 @@ var ReferencesService = class {
|
|
|
8233
8241
|
return { name: entity.getName() };
|
|
8234
8242
|
case 2 /* Type */: {
|
|
8235
8243
|
switch (entity.typeEntityKind) {
|
|
8236
|
-
case 0 /* Function */:
|
|
8237
|
-
const naming = entity.getNaming();
|
|
8238
|
-
if (naming.kind === "named") {
|
|
8239
|
-
return { name: naming.value };
|
|
8240
|
-
}
|
|
8244
|
+
case 0 /* Function */:
|
|
8241
8245
|
return void 0;
|
|
8242
|
-
}
|
|
8243
8246
|
case 1 /* Structured */: {
|
|
8244
8247
|
const naming = entity.getNaming();
|
|
8245
8248
|
if (naming.kind === "named") {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
WellKnownDeclarationsLoadError,
|
|
12
12
|
__async,
|
|
13
13
|
createTsInteropInputsForCompilation
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JHXUTWHI.js";
|
|
15
15
|
|
|
16
16
|
// source/diagnostic/DiagnosticFormatter.ts
|
|
17
17
|
var DiagnosticFormatter = class _DiagnosticFormatter {
|