@artel/artc 0.6.25280 → 0.6.25281
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 +30 -19
- package/build/{chunk-YIFO3FBO.js → chunk-7OXU5662.js} +2 -2
- package/build/{chunk-W3UL6UED.js → chunk-NVHCHE3R.js} +3 -2
- package/build/{chunk-LLI2DYRX.js → chunk-TIWNEKIS.js} +398 -346
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +3 -3
- package/build/types/analysis/Analyzer.d.ts +10 -15
- package/build/types/analysis/{PackageMemberNameConflictsValidator.d.ts → PackageMemberConflictsValidator.d.ts} +7 -3
- package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +9 -0
- package/build/types/analysis/SourceFileMembers.d.ts +9 -2
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +4 -0
- package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +1 -1
- package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +1 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +11 -11
- package/build/types/entities/Entity.d.ts +1 -1
- package/build/types/entities/EntityLocalizationContext.d.ts +2 -1
- package/build/types/entities/PackageMembers.d.ts +10 -3
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +2 -1
- package/build/types/entities/source/SourceTextTranslationEntity.d.ts +2 -1
- package/build/types/entities/source/SourceTypeExtensionEntity.d.ts +4 -0
- 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/EvaluatableExpressionService.d.ts +1 -1
- package/package.json +1 -1
- package/build/types/analysis/AnalyzedTextTranslationPackage.d.ts +0 -20
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-7OXU5662.js";
|
|
5
|
+
import "./chunk-NVHCHE3R.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TIWNEKIS.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-NVHCHE3R.js";
|
|
4
4
|
import {
|
|
5
5
|
AccessKind,
|
|
6
6
|
AccessedFunctionParameter,
|
|
@@ -339,7 +339,7 @@ import {
|
|
|
339
339
|
withoutQuotes,
|
|
340
340
|
withoutTemplateQuotes,
|
|
341
341
|
yieldTask
|
|
342
|
-
} from "../chunk-
|
|
342
|
+
} from "../chunk-TIWNEKIS.js";
|
|
343
343
|
export {
|
|
344
344
|
AccessKind,
|
|
345
345
|
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-7OXU5662.js";
|
|
10
|
+
import "../chunk-NVHCHE3R.js";
|
|
11
|
+
import "../chunk-TIWNEKIS.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
unwrapParenthesizedExpressions,
|
|
189
189
|
visitChildren,
|
|
190
190
|
yieldTask
|
|
191
|
-
} from "../chunk-
|
|
191
|
+
} from "../chunk-TIWNEKIS.js";
|
|
192
192
|
|
|
193
193
|
// source/services/CustomRequests.ts
|
|
194
194
|
import * as ls from "vscode-languageserver";
|
|
@@ -2558,6 +2558,7 @@ var TranslationsGenerator = class _TranslationsGenerator {
|
|
|
2558
2558
|
return this.createPackageTypeWithMembersTranslation(entity);
|
|
2559
2559
|
}
|
|
2560
2560
|
case 11 /* TypeExtension */:
|
|
2561
|
+
case 13 /* TextTranslation */:
|
|
2561
2562
|
return void 0;
|
|
2562
2563
|
default:
|
|
2563
2564
|
Debug.never(entity);
|
|
@@ -7812,8 +7813,8 @@ var EvaluatableExpressionService = class {
|
|
|
7812
7813
|
}
|
|
7813
7814
|
break;
|
|
7814
7815
|
default: {
|
|
7815
|
-
const
|
|
7816
|
-
if (
|
|
7816
|
+
const namedDeclarationName = this.ifNamedDeclarationThenName(parent);
|
|
7817
|
+
if (namedDeclarationName === node) {
|
|
7817
7818
|
return node;
|
|
7818
7819
|
}
|
|
7819
7820
|
}
|
|
@@ -7830,39 +7831,49 @@ var EvaluatableExpressionService = class {
|
|
|
7830
7831
|
return false;
|
|
7831
7832
|
}
|
|
7832
7833
|
}
|
|
7833
|
-
|
|
7834
|
+
ifNamedDeclarationThenName(node) {
|
|
7834
7835
|
switch (node.kind) {
|
|
7835
7836
|
case 58 /* ForStatementVariableDeclaration */:
|
|
7836
|
-
return { nameIdentifier: node.name };
|
|
7837
7837
|
case 20 /* PackageAliasTypeDeclaration */:
|
|
7838
|
-
return { nameIdentifier: node.name };
|
|
7839
7838
|
case 25 /* PackageFunctionDeclaration */:
|
|
7840
|
-
return { nameIdentifier: node.name };
|
|
7841
7839
|
case 26 /* PackageFunctionTypeDeclaration */:
|
|
7842
|
-
return { nameIdentifier: node.name };
|
|
7843
7840
|
case 31 /* PackageStructuredTypeDeclaration */:
|
|
7844
|
-
return { nameIdentifier: node.name };
|
|
7845
7841
|
case 33 /* PackageVariableDeclaration */:
|
|
7846
|
-
return { nameIdentifier: node.name };
|
|
7847
7842
|
case 36 /* PackageVariantTypeDeclaration */:
|
|
7848
|
-
return { nameIdentifier: node.name };
|
|
7849
7843
|
case 56 /* NestedFunctionDeclaration */:
|
|
7850
|
-
return { nameIdentifier: node.name };
|
|
7851
7844
|
case 57 /* LocalVariableDeclaration */:
|
|
7852
|
-
return { nameIdentifier: node.name };
|
|
7853
7845
|
case 149 /* ParameterDeclaration */:
|
|
7854
|
-
return { nameIdentifier: node.name };
|
|
7855
7846
|
case 50 /* MethodDeclaration */:
|
|
7856
|
-
return { nameIdentifier: node.name };
|
|
7857
7847
|
case 52 /* FieldDeclaration */:
|
|
7858
|
-
return { nameIdentifier: node.name };
|
|
7859
7848
|
case 148 /* TypeParameterDeclaration */:
|
|
7860
|
-
return { nameIdentifier: node.name };
|
|
7861
7849
|
case 147 /* VariantDeclaration */:
|
|
7862
|
-
return { nameIdentifier: node.name };
|
|
7863
7850
|
case 102 /* ErrorVariableDeclaration */:
|
|
7864
|
-
|
|
7851
|
+
case 34 /* PackageVariableGetterDeclaration */:
|
|
7852
|
+
case 35 /* PackageVariableSetterDeclaration */:
|
|
7853
|
+
case 53 /* FieldGetterDeclaration */:
|
|
7854
|
+
case 54 /* FieldSetterDeclaration */:
|
|
7855
|
+
case 51 /* OperatorDeclaration */:
|
|
7856
|
+
case 146 /* TranslationTextTemplateParameter */:
|
|
7857
|
+
return node.name;
|
|
7858
|
+
case 89 /* IdentifierExpression */:
|
|
7859
|
+
case 76 /* MemberAccessExpression */:
|
|
7860
|
+
case 150 /* Argument */:
|
|
7861
|
+
case 125 /* TranslationParameterList */:
|
|
7862
|
+
case 130 /* TranslationTypeParameterList */:
|
|
7863
|
+
case 132 /* PackageFunctionTranslationDeclaration */:
|
|
7864
|
+
case 134 /* FunctionTypeTranslationDeclaration */:
|
|
7865
|
+
case 136 /* PackageVariableTranslationDeclaration */:
|
|
7866
|
+
case 137 /* FieldOrVariantTranslation */:
|
|
7867
|
+
case 139 /* TypeTranslationDeclaration */:
|
|
7868
|
+
case 135 /* QualifiedName */:
|
|
7869
|
+
case 133 /* MethodTranslation */:
|
|
7870
|
+
case 8 /* PackageImport */:
|
|
7871
|
+
case 9 /* PackageName */:
|
|
7872
|
+
case 3 /* Keyword */:
|
|
7873
|
+
return void 0;
|
|
7865
7874
|
default:
|
|
7875
|
+
Debug.typeIsAssignableTo();
|
|
7876
|
+
Debug.typeIsAssignableTo();
|
|
7866
7877
|
return void 0;
|
|
7867
7878
|
}
|
|
7868
7879
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NVHCHE3R.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-TIWNEKIS.js";
|
|
19
19
|
|
|
20
20
|
// source/executor/FileSystemUri.ts
|
|
21
21
|
import { platform } from "os";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
WellKnownDeclarationsLoadError,
|
|
11
11
|
__async,
|
|
12
12
|
createTsInteropInputsForCompilation
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TIWNEKIS.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
|
}
|