@artel/artc 0.6.25249 → 0.6.25251
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 +10 -4
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +295 -254
- package/build/{chunk-6OPBY3SK.js → chunk-IZHH3TQT.js} +8 -6
- package/build/{chunk-CBYKP5SE.js → chunk-KGZLMBKA.js} +2 -2
- package/build/{chunk-G4UMALLG.js → chunk-XARNKP3Q.js} +2333 -1724
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +4 -4
- package/build/types/analysis/Analyzer.d.ts +23 -14
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +3 -4
- package/build/types/analysis/DiagnosticCollector.d.ts +3 -5
- package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +2 -2
- package/build/types/analysis/Localization.d.ts +1 -1
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +3 -3
- package/build/types/analysis/TypeNarrower.d.ts +1 -1
- package/build/types/analysis/WellKnownDeclarations.d.ts +3 -3
- package/build/types/diagnostic/DiagnosticCode.d.ts +11 -13
- package/build/types/emitter/Emitter.d.ts +4 -8
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/Entities.d.ts +1 -0
- package/build/types/emitter/EntityMap.d.ts +1 -0
- package/build/types/emitter/IrBuilder.d.ts +18 -10
- package/build/types/emitter/IrToJs.d.ts +1 -1
- package/build/types/emitter/Transformer.d.ts +7 -2
- package/build/types/emitter/ir/EmitOptions.d.ts +5 -5
- package/build/types/emitter/ir/Nodes.d.ts +185 -147
- package/build/types/emitter/ir/types.d.ts +3 -3
- package/build/types/entities/LocalizableTextEntity.d.ts +75 -0
- package/build/types/entities/VariableEntity.d.ts +3 -3
- package/build/types/entities/index.d.ts +5 -2
- package/build/types/services/DisplayService.d.ts +4 -3
- package/build/types/tree/KeywordKind.d.ts +1 -1
- package/build/types/tree/NodeKind.d.ts +88 -84
- package/build/types/tree/green/Nodes.d.ts +96 -55
- package/build/types/tree/green/SyntaxFactory.d.ts +6 -6
- package/build/types/tree/red/Nodes.d.ts +137 -92
- package/build/types/ts-interop/Entities.d.ts +0 -1
- package/build/types/ts-interop/TsInteropContext.d.ts +1 -1
- package/build/types/types/ParameterType.d.ts +3 -3
- package/build/types/types/StandardTypes.d.ts +2 -2
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WellKnownDeclarationsLoadError,
|
|
11
11
|
__async,
|
|
12
12
|
createTsInteropInputsForCompilation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XARNKP3Q.js";
|
|
14
14
|
|
|
15
15
|
// source/executor/Compiler.ts
|
|
16
16
|
var Compiler = class {
|
|
@@ -55,7 +55,8 @@ var Compiler = class {
|
|
|
55
55
|
const packages = Array.from(sourcePackageGraph.enumeratePackages(0 /* JavaScript */));
|
|
56
56
|
for (const pkg of packages) {
|
|
57
57
|
for (const sourceFile of pkg.sourceFiles) {
|
|
58
|
-
const
|
|
58
|
+
const diagnosticCollector = new DiagnosticCollector(analyzer, sourceFile);
|
|
59
|
+
const fileDiagnostics = yield diagnosticCollector.collect(cancellationToken);
|
|
59
60
|
for (const diagnostic of fileDiagnostics) {
|
|
60
61
|
diagnostics?.addDiagnostic(diagnostic);
|
|
61
62
|
hasErrorsPreventingCompilation ||= pkg.kind === "program" && fileDiagnostics.some((d) => d.data.kind === 0 /* Error */);
|
|
@@ -73,8 +74,8 @@ var Compiler = class {
|
|
|
73
74
|
), void 0));
|
|
74
75
|
return void 0;
|
|
75
76
|
}
|
|
76
|
-
const emitter =
|
|
77
|
-
yield emitter.emitToFileSystem(outputUri, outputAcceptor);
|
|
77
|
+
const emitter = new Emitter(analyzer, emitOptions);
|
|
78
|
+
yield emitter.emitToFileSystem(outputUri, outputAcceptor, cancellationToken);
|
|
78
79
|
const launchUri = outputUri.append(Emitter.LaunchFileName);
|
|
79
80
|
return launchUri;
|
|
80
81
|
});
|
|
@@ -87,8 +88,9 @@ var Compiler = class {
|
|
|
87
88
|
), void 0));
|
|
88
89
|
return "";
|
|
89
90
|
}
|
|
90
|
-
const emitter =
|
|
91
|
-
|
|
91
|
+
const emitter = new Emitter(analyzer, emitOptions);
|
|
92
|
+
const result = yield emitter.emitToString(cancellationToken);
|
|
93
|
+
return result;
|
|
92
94
|
});
|
|
93
95
|
}
|
|
94
96
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IZHH3TQT.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-XARNKP3Q.js";
|
|
18
18
|
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
|
20
20
|
import { platform } from "os";
|