@artel/artc 0.6.25280 → 0.6.25282
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 +16 -10
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +315 -219
- package/build/{chunk-YIFO3FBO.js → chunk-3DN3M64Y.js} +3 -3
- package/build/{chunk-W3UL6UED.js → chunk-DURHSZYF.js} +5 -4
- package/build/{chunk-LLI2DYRX.js → chunk-VVFLEWSA.js} +3236 -3331
- package/build/types/analysis/AccessedFunction.d.ts +4 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -3
- package/build/types/analysis/Analyzer.d.ts +35 -48
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +5 -5
- package/build/types/analysis/BaseExpressionMeaning.d.ts +8 -18
- package/build/types/analysis/CallExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +3 -4
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +4 -8
- package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +8 -16
- package/build/types/analysis/NamedTypeResolver.d.ts +4 -4
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +4 -4
- package/build/types/analysis/NodeTypeUtils.d.ts +1 -1
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +4 -9
- package/build/types/analysis/{PackageMemberNameConflictsValidator.d.ts → PackageMemberConflictsValidator.d.ts} +8 -4
- package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +9 -0
- package/build/types/analysis/SourceFileAnalyzer.d.ts +1 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +4 -0
- package/build/types/analysis/SubstitutedFunction.d.ts +3 -0
- package/build/types/analysis/TagMeaning.d.ts +4 -4
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/UserDefinableUnaryOperatorResolver.d.ts +4 -3
- package/build/types/analysis/Utils.d.ts +1 -0
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +1 -1
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +8 -4
- package/build/types/api/Api.d.ts +4 -5
- package/build/types/common/ArrayUtils.d.ts +3 -1
- package/build/types/common/Displayable.d.ts +4 -4
- package/build/types/common/FormatString.d.ts +1 -1
- package/build/types/common/index.d.ts +3 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +238 -238
- package/build/types/diagnostic/DiagnosticData.d.ts +2 -2
- package/build/types/emitter/IrBuilder.d.ts +3 -1
- package/build/types/emitter/IrFactory.d.ts +2 -2
- package/build/types/emitter/Transformer.d.ts +3 -3
- package/build/types/emitter/ir/Nodes.d.ts +6 -6
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/build/types/entities/Entity.d.ts +1 -1
- package/build/types/entities/EntityLocalizationContext.d.ts +2 -1
- package/build/types/entities/PackageEntityMembers.d.ts +22 -0
- package/build/types/entities/index.d.ts +1 -1
- package/build/types/entities/interfaces/PackageEntity.d.ts +1 -2
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -1
- package/build/types/entities/interfaces/VariableEntity.d.ts +1 -1
- package/build/types/entities/source/SourcePackageEntity.d.ts +1 -2
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +2 -1
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +4 -0
- package/build/types/entities/source/SourceVariableEntity.d.ts +2 -2
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +2 -3
- package/build/types/project/PackageContent.d.ts +1 -1
- 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 +4 -4
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +4 -4
- package/build/types/services/AddBlockToScriptService.d.ts +17 -0
- package/build/types/services/CustomRequests.d.ts +11 -2
- package/build/types/services/DisplayService.d.ts +1 -2
- package/build/types/services/EvaluatableExpressionService.d.ts +1 -1
- package/build/types/services/LanguageServer.d.ts +3 -1
- package/build/types/services/SourceFileItemsService.d.ts +1 -1
- package/build/types/tree/NodeKind.d.ts +1 -1
- package/build/types/tree/Nodes.d.ts +6 -6
- package/build/types/tree/SyntaxFactory.d.ts +1 -1
- package/build/types/tree/SyntaxToCode.d.ts +1 -1
- package/build/types/tree/Token.d.ts +4 -3
- package/build/types/tree/TokenKind.d.ts +58 -60
- package/build/types/types/AliasType.d.ts +1 -1
- package/build/types/types/FunctionType.d.ts +2 -2
- package/build/types/types/IntersectionType.d.ts +1 -1
- package/build/types/types/ParameterType.d.ts +1 -1
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +1 -4
- package/build/types/types/TypeMembers.d.ts +8 -8
- package/build/types/types/UnionType.d.ts +1 -1
- package/build/types/types/VariantType.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +0 -20
- package/build/types/analysis/SourceFileMembers.d.ts +0 -22
- package/build/types/entities/PackageMembers.d.ts +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DURHSZYF.js";
|
|
4
4
|
import {
|
|
5
5
|
ArtelVersion,
|
|
6
6
|
Cached,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__async,
|
|
16
16
|
performanceMeasurementStageNames,
|
|
17
17
|
performanceMeasurementStages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-VVFLEWSA.js";
|
|
19
19
|
|
|
20
20
|
// source/executor/FileSystemUri.ts
|
|
21
21
|
import { platform } from "os";
|
|
@@ -217,7 +217,7 @@ var NodeCompiler = class {
|
|
|
217
217
|
const standardLibraryUri = yield this.findStandardTypeScriptLibrary(nodeModulesSearchPaths, defaultTsLibraryPath);
|
|
218
218
|
if (standardLibraryUri === void 0) {
|
|
219
219
|
const diagnostic = new Diagnostic(DiagnosticData.withCode(
|
|
220
|
-
|
|
220
|
+
3e3 /* CannotFindTsLibDirectoryBaseSearchPaths0 */,
|
|
221
221
|
[nodeModulesSearchPaths.map((p) => `'${p}'`).join(", ")]
|
|
222
222
|
), void 0);
|
|
223
223
|
diagnostics?.addDiagnostic(diagnostic);
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WellKnownDeclarationsLoadError,
|
|
11
11
|
__async,
|
|
12
12
|
createTsInteropInputsForCompilation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VVFLEWSA.js";
|
|
14
14
|
|
|
15
15
|
// source/executor/Compiler.ts
|
|
16
16
|
var Compiler = class {
|
|
@@ -54,12 +54,13 @@ var Compiler = class {
|
|
|
54
54
|
const sourcePackageGraph = new SourcePackageDependencyGraph(analyzer);
|
|
55
55
|
const packages = Array.from(sourcePackageGraph.packagesForTargetPlatform(0 /* JavaScript */));
|
|
56
56
|
for (const pkg of packages) {
|
|
57
|
+
const isProgramOrTextTranslationPackage = pkg.kind === "program" || pkg.kind === "text-translation";
|
|
57
58
|
for (const sourceFile of pkg.sourceFiles) {
|
|
58
59
|
const sourceFileAnalyzer = new SourceFileAnalyzer(analyzer, sourceFile);
|
|
59
60
|
const fileDiagnostics = yield sourceFileAnalyzer.analyze(taskController);
|
|
60
61
|
for (const diagnostic of fileDiagnostics) {
|
|
61
62
|
diagnostics?.addDiagnostic(diagnostic);
|
|
62
|
-
hasErrorsPreventingCompilation ||=
|
|
63
|
+
hasErrorsPreventingCompilation ||= isProgramOrTextTranslationPackage && diagnostic.data.kind === 0 /* Error */;
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
}
|
|
@@ -70,7 +71,7 @@ var Compiler = class {
|
|
|
70
71
|
return __async(this, null, function* () {
|
|
71
72
|
if (analyzer.compilation.mainPackage === void 0) {
|
|
72
73
|
diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
|
|
73
|
-
|
|
74
|
+
3002 /* ProgramWithoutMainPackageCannotBeCompiled */
|
|
74
75
|
), void 0));
|
|
75
76
|
return void 0;
|
|
76
77
|
}
|
|
@@ -84,7 +85,7 @@ var Compiler = class {
|
|
|
84
85
|
return __async(this, null, function* () {
|
|
85
86
|
if (analyzer.compilation.mainPackage === void 0) {
|
|
86
87
|
_diagnostics?.addDiagnostic(new Diagnostic(DiagnosticData.withCode(
|
|
87
|
-
|
|
88
|
+
3002 /* ProgramWithoutMainPackageCannotBeCompiled */
|
|
88
89
|
), void 0));
|
|
89
90
|
return "";
|
|
90
91
|
}
|