@artel/artc 0.6.25248 → 0.6.25249

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 CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-CBZMJHSW.js";
5
- import "./chunk-JKFASNU3.js";
4
+ } from "./chunk-CBYKP5SE.js";
5
+ import "./chunk-6OPBY3SK.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-CWGZOWF7.js";
8
+ } from "./chunk-G4UMALLG.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-JKFASNU3.js";
3
+ } from "../chunk-6OPBY3SK.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunctionValueParameter,
@@ -332,7 +332,7 @@ import {
332
332
  withoutQuotes,
333
333
  withoutTemplateQuotes,
334
334
  yieldExecution
335
- } from "../chunk-CWGZOWF7.js";
335
+ } from "../chunk-G4UMALLG.js";
336
336
  export {
337
337
  AccessKind,
338
338
  AccessedFunctionValueParameter,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-CBZMJHSW.js";
10
- import "../chunk-JKFASNU3.js";
11
- import "../chunk-CWGZOWF7.js";
9
+ } from "../chunk-CBYKP5SE.js";
10
+ import "../chunk-6OPBY3SK.js";
11
+ import "../chunk-G4UMALLG.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -178,7 +178,7 @@ import {
178
178
  unwrapParenthesizedExpressions,
179
179
  visitChildren,
180
180
  yieldExecution
181
- } from "../chunk-CWGZOWF7.js";
181
+ } from "../chunk-G4UMALLG.js";
182
182
 
183
183
  // source/services/CustomCommand.ts
184
184
  import * as ls from "vscode-languageserver";
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-CWGZOWF7.js";
13
+ } from "./chunk-G4UMALLG.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-JKFASNU3.js";
3
+ } from "./chunk-6OPBY3SK.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-CWGZOWF7.js";
17
+ } from "./chunk-G4UMALLG.js";
18
18
 
19
19
  // source/executor/FileSystemUri.ts
20
20
  import { platform } from "os";
@@ -620,7 +620,7 @@ var UniqueWithComparatorQuery = class extends Query {
620
620
  };
621
621
 
622
622
  // source/common/Constants.ts
623
- var ArtelVersion = true ? "0.6.25248" : "";
623
+ var ArtelVersion = true ? "0.6.25249" : "";
624
624
  var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel"];
625
625
  var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
626
626
  var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
@@ -2403,7 +2403,8 @@ var russianHelperPhrases = {
2403
2403
  [5 /* PackageNameSegment */]: "\u0447\u0430\u0441\u0442\u044C \u0438\u043C\u0435\u043D\u0438 \u043F\u0430\u043A\u0435\u0442\u0430",
2404
2404
  [6 /* Variable */]: "\u043F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u0430\u044F",
2405
2405
  [7 /* Overloads */]: "\u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u043A\u0438",
2406
- [8 /* EnumeratorMethodName */]: "\u043F\u0435\u0440\u0435\u0431\u043E\u0440"
2406
+ [8 /* EnumeratorMethodName */]: "\u043F\u0435\u0440\u0435\u0431\u043E\u0440",
2407
+ [9 /* InvokeMethodName */]: "\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C"
2407
2408
  };
2408
2409
  var englishHelperPhrases = {
2409
2410
  [0 /* Unresolved */]: "unresolved",
@@ -2414,7 +2415,8 @@ var englishHelperPhrases = {
2414
2415
  [5 /* PackageNameSegment */]: "package name segment",
2415
2416
  [6 /* Variable */]: "variable",
2416
2417
  [7 /* Overloads */]: "overloads",
2417
- [8 /* EnumeratorMethodName */]: "enumerator"
2418
+ [8 /* EnumeratorMethodName */]: "enumerator",
2419
+ [9 /* InvokeMethodName */]: "invoke"
2418
2420
  };
2419
2421
  var helperPhrases = {
2420
2422
  [1 /* Ru */]: russianHelperPhrases,
@@ -3395,7 +3397,9 @@ function parseBinaryInteger(text) {
3395
3397
  function withoutQuotes(text) {
3396
3398
  let start = 0;
3397
3399
  let end = text.length;
3398
- if (text.startsWith('"') || text.startsWith("'")) {
3400
+ if (text.startsWith('~"')) {
3401
+ start += 2;
3402
+ } else if (text.startsWith('"') || text.startsWith("'")) {
3399
3403
  start += 1;
3400
3404
  }
3401
3405
  if (text.endsWith('"') || text.endsWith("'")) {
@@ -3406,7 +3410,9 @@ function withoutQuotes(text) {
3406
3410
  function withoutTemplateQuotes(text) {
3407
3411
  let start = 0;
3408
3412
  let end = text.length;
3409
- if (text.startsWith('"') || text.startsWith("{") || text.startsWith("}")) {
3413
+ if (text.startsWith('~"')) {
3414
+ start += 2;
3415
+ } else if (text.startsWith('"') || text.startsWith("{") || text.startsWith("}")) {
3410
3416
  start += 1;
3411
3417
  }
3412
3418
  if (text.endsWith('"') || text.endsWith("{") || text.endsWith("}")) {
@@ -19798,14 +19804,7 @@ var ExpressionParser = class {
19798
19804
  }
19799
19805
  case 27 /* Dot */: {
19800
19806
  const dotToken = this.parser.parseExpectedToken(27 /* Dot */);
19801
- let memberName;
19802
- const runKeyword = this.parser.parseOptionalKeyword(7 /* Run */);
19803
- if (runKeyword !== void 0) {
19804
- Debug.assert(runKeyword.tokens.length === 1);
19805
- memberName = runKeyword.tokens[0];
19806
- } else {
19807
- memberName = this.parser.parseIdentifier();
19808
- }
19807
+ const memberName = this.parser.parseIdentifier();
19809
19808
  expression = this.parser.intern(
19810
19809
  new MemberAccessExpression2(expression, dotToken, memberName),
19811
19810
  expressionStart
@@ -23900,7 +23899,11 @@ var TsTypeMembersCreator = class {
23900
23899
  if (this._symbolsToForceStatic !== void 0) {
23901
23900
  createMembers(this._symbolsToForceStatic, true);
23902
23901
  }
23903
- if (this._typeSymbolDeclarations !== void 0 && this.getNamedMembersFromTypeToMergeWith(Analyzer.enumeratorMethodName) === void 0) {
23902
+ const enumeratorMethodName = LocalizationHelper.localizeHelperPhrase(
23903
+ 8 /* EnumeratorMethodName */,
23904
+ this._typeEntity.getLocalization().locale
23905
+ );
23906
+ if (this._typeSymbolDeclarations !== void 0 && this.getNamedMembersFromTypeToMergeWith(enumeratorMethodName) === void 0) {
23904
23907
  const enumeratorMethod = this.createEnumeratorMethodIfIteratorMethodExists(this._typeSymbolDeclarations);
23905
23908
  if (enumeratorMethod !== void 0) {
23906
23909
  namedMembersFromSymbols.push(enumeratorMethod);
@@ -25290,7 +25293,11 @@ var TsIteratorFunctionEntity = class {
25290
25293
  this._overriddenMembers = new Cached();
25291
25294
  }
25292
25295
  getName() {
25293
- return this._tsctx.getName(Analyzer.enumeratorMethodName, "method");
25296
+ const locale = this.getLocalization().locale;
25297
+ return this._tsctx.getName(
25298
+ LocalizationHelper.localizeHelperPhrase(8 /* EnumeratorMethodName */, locale),
25299
+ "method"
25300
+ );
25294
25301
  }
25295
25302
  getTypeParameters() {
25296
25303
  return [];
@@ -42891,7 +42898,7 @@ var ParametersOfFunctionTypeSemanticContext = class extends SemanticContextValid
42891
42898
  };
42892
42899
 
42893
42900
  // source/analysis/Analyzer.ts
42894
- var Analyzer = class _Analyzer {
42901
+ var Analyzer12 = class {
42895
42902
  constructor(compilation, tsInteropInputs) {
42896
42903
  this._tsInterop = new Cached();
42897
42904
  this._memberAccessExpressionResolutionResults = /* @__PURE__ */ new Map();
@@ -42959,12 +42966,6 @@ var Analyzer = class _Analyzer {
42959
42966
  this.originalStandardTypes = new StandardTypes(this, this.originalWellKnownDeclarations);
42960
42967
  this._localizedStandardTypes.set(1 /* Ru */, this.originalStandardTypes);
42961
42968
  }
42962
- static {
42963
- this.enumeratorMethodName = "\u043F\u0435\u0440\u0435\u0431\u043E\u0440";
42964
- }
42965
- static {
42966
- this.functionTypeInvokeMethodName = "\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C";
42967
- }
42968
42969
  get tsInterop() {
42969
42970
  return this._tsInterop.getOrInsertWith(() => this.createTsInterop());
42970
42971
  }
@@ -43742,7 +43743,10 @@ var Analyzer = class _Analyzer {
43742
43743
  return Query.from(this.compilation.allPackages).mapAndFilter((p) => p.kind === "translation" ? this.getAnalyzedTranslationPackageIfTargetResolved(p) : void 0).toArray();
43743
43744
  }
43744
43745
  createFunctionTypeInvokeMethod(entity) {
43745
- const name = new Name(_Analyzer.functionTypeInvokeMethodName);
43746
+ const name = new Name(LocalizationHelper.localizeHelperPhrase(
43747
+ 9 /* InvokeMethodName */,
43748
+ entity.getLocalization().locale
43749
+ ));
43746
43750
  const valueParameters = entity.getValueParameters();
43747
43751
  const returnType = entity.getReturnType();
43748
43752
  const method = new IntrinsicMethodEntity(
@@ -69125,7 +69129,7 @@ export {
69125
69129
  SourceFileMembers,
69126
69130
  TargetTypeHint,
69127
69131
  semantic_context_exports,
69128
- Analyzer,
69132
+ Analyzer12 as Analyzer,
69129
69133
  TsInteropInputs,
69130
69134
  SyntacticAccessKind,
69131
69135
  ExpressionCanBeUsedInForLoopCheckResult,
@@ -43,8 +43,6 @@ import * as controlFlow from './control-flow/index.js';
43
43
  import { WellKnownDeclarations } from './index.js';
44
44
  import * as semanticContext from './semantic-context/index.js';
45
45
  export declare class Analyzer {
46
- static readonly enumeratorMethodName = "\u043F\u0435\u0440\u0435\u0431\u043E\u0440";
47
- static readonly functionTypeInvokeMethodName = "\u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u044C";
48
46
  readonly compilation: project.Compilation;
49
47
  /**
50
48
  * Пакет с именем 'Артель', содержащий стандартные типы.
@@ -8,6 +8,7 @@ export declare const enum HelperPhraseKind {
8
8
  PackageNameSegment = 5,
9
9
  Variable = 6,
10
10
  Overloads = 7,
11
- EnumeratorMethodName = 8
11
+ EnumeratorMethodName = 8,
12
+ InvokeMethodName = 9
12
13
  }
13
14
  export declare function getHelperPhrase(kind: HelperPhraseKind, locale: PackageLocale): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.6.25248",
3
+ "version": "0.6.25249",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "LGPL-3.0-or-later",