@artel/artc 0.6.25261 → 0.6.25262
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 +1 -1
- package/build/{chunk-7OS2G5WZ.js → chunk-3LDKXMHH.js} +1 -1
- package/build/{chunk-UWQKBRAT.js → chunk-C32OUNTY.js} +2 -2
- package/build/{chunk-66RH6JKB.js → chunk-LV35QVOW.js} +12 -3
- package/build/types/analysis/TypeArgumentInferrer.d.ts +1 -0
- 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-C32OUNTY.js";
|
|
5
|
+
import "./chunk-3LDKXMHH.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LV35QVOW.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-3LDKXMHH.js";
|
|
4
4
|
import {
|
|
5
5
|
AccessKind,
|
|
6
6
|
AccessedFunctionParameter,
|
|
@@ -344,7 +344,7 @@ import {
|
|
|
344
344
|
withoutQuotes,
|
|
345
345
|
withoutTemplateQuotes,
|
|
346
346
|
yieldExecution
|
|
347
|
-
} from "../chunk-
|
|
347
|
+
} from "../chunk-LV35QVOW.js";
|
|
348
348
|
export {
|
|
349
349
|
AccessKind,
|
|
350
350
|
AccessedFunctionParameter,
|
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-C32OUNTY.js";
|
|
10
|
+
import "../chunk-3LDKXMHH.js";
|
|
11
|
+
import "../chunk-LV35QVOW.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3LDKXMHH.js";
|
|
4
4
|
import {
|
|
5
5
|
ArtelVersion,
|
|
6
6
|
Cached,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__async,
|
|
15
15
|
performanceMeasurementStageNames,
|
|
16
16
|
performanceMeasurementStages
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-LV35QVOW.js";
|
|
18
18
|
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
|
20
20
|
import { platform } from "os";
|
|
@@ -690,7 +690,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
|
690
690
|
};
|
|
691
691
|
|
|
692
692
|
// source/common/Constants.ts
|
|
693
|
-
var ArtelVersion = true ? "0.6.
|
|
693
|
+
var ArtelVersion = true ? "0.6.25262" : "";
|
|
694
694
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel"];
|
|
695
695
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
|
696
696
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
|
@@ -32302,12 +32302,16 @@ var TypeArgumentInferrer = class {
|
|
|
32302
32302
|
inferFromTypes(sourceType, targetType, priority) {
|
|
32303
32303
|
if (targetType.kind === "parameter") {
|
|
32304
32304
|
this.inferToParameterType(sourceType, targetType, priority);
|
|
32305
|
+
} else if (sourceType.kind === "alias" || targetType.kind === "alias") {
|
|
32306
|
+
this.inferFromTypes(unaliasType(sourceType), unaliasType(targetType), priority);
|
|
32307
|
+
} else if (targetType.kind === "union") {
|
|
32308
|
+
this.inferToUnionType(sourceType, targetType, priority);
|
|
32309
|
+
} else if (sourceType.kind === "union") {
|
|
32310
|
+
this.inferFromUnionType(sourceType, targetType, priority);
|
|
32305
32311
|
} else if (targetType.kind === "structured") {
|
|
32306
32312
|
this.inferToStructuredType(sourceType, targetType, priority);
|
|
32307
32313
|
} else if (sourceType.kind === "function" && targetType.kind === "function") {
|
|
32308
32314
|
this.inferFromFunctionTypes(sourceType, targetType, priority);
|
|
32309
|
-
} else if (targetType.kind === "union") {
|
|
32310
|
-
this.inferToUnionType(sourceType, targetType, priority);
|
|
32311
32315
|
}
|
|
32312
32316
|
}
|
|
32313
32317
|
inferToParameterType(sourceType, targetType, priority) {
|
|
@@ -32374,6 +32378,11 @@ var TypeArgumentInferrer = class {
|
|
|
32374
32378
|
}
|
|
32375
32379
|
this.inferFromTypes(sourceType.getReturnType(), targetType.getReturnType(), priority);
|
|
32376
32380
|
}
|
|
32381
|
+
inferFromUnionType(sourceType, targetType, priority) {
|
|
32382
|
+
for (const constituentType of sourceType.originalTypes) {
|
|
32383
|
+
this.inferFromTypes(constituentType, targetType, priority);
|
|
32384
|
+
}
|
|
32385
|
+
}
|
|
32377
32386
|
createSubstitutions(untilIndex) {
|
|
32378
32387
|
const typeArguments = new Array();
|
|
32379
32388
|
let i = 0;
|
|
@@ -39,6 +39,7 @@ export declare class TypeArgumentInferrer {
|
|
|
39
39
|
private inferFromSubstitutions;
|
|
40
40
|
private inferToUnionType;
|
|
41
41
|
private inferFromFunctionTypes;
|
|
42
|
+
private inferFromUnionType;
|
|
42
43
|
private createSubstitutions;
|
|
43
44
|
private inferFromTargetTypeDependentExpression;
|
|
44
45
|
private tryGetInferredType;
|