@artel/artc 0.9.26037-pre-release → 0.9.26038-pre-release

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-U6LB6G47.js";
5
- import "./chunk-QH5QQEEL.js";
4
+ } from "./chunk-NRZEWWTT.js";
5
+ import "./chunk-3I4SQIYG.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-HOYH73XP.js";
8
+ } from "./chunk-62UH22KS.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-QH5QQEEL.js";
3
+ } from "../chunk-3I4SQIYG.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunction_entity,
@@ -311,7 +311,7 @@ import {
311
311
  withoutQuotes,
312
312
  withoutTemplateQuotes,
313
313
  yieldTask
314
- } from "../chunk-HOYH73XP.js";
314
+ } from "../chunk-62UH22KS.js";
315
315
  export {
316
316
  AccessKind,
317
317
  AccessedFunction_entity,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-U6LB6G47.js";
10
- import "../chunk-QH5QQEEL.js";
11
- import "../chunk-HOYH73XP.js";
9
+ } from "../chunk-NRZEWWTT.js";
10
+ import "../chunk-3I4SQIYG.js";
11
+ import "../chunk-62UH22KS.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -141,7 +141,7 @@ import {
141
141
  traverseTreeAsync,
142
142
  traverseTreeAsync2,
143
143
  yieldTask
144
- } from "../chunk-HOYH73XP.js";
144
+ } from "../chunk-62UH22KS.js";
145
145
 
146
146
  // source/services/common/Types.ts
147
147
  import * as ls from "vscode-languageserver";
@@ -10186,12 +10186,14 @@ var EntityToSyntax2 = class {
10186
10186
  const getterEntity = entity.getGetter();
10187
10187
  if (getterEntity !== void 0) {
10188
10188
  const parameters = this.convertParameters(getterEntity.getParameters());
10189
- result.push(SyntaxFactory2.packageVariableGetterDeclaration(tags, name, parameters, type, void 0));
10189
+ const body = SyntaxFactory2.emptyFunctionBlock();
10190
+ result.push(SyntaxFactory2.packageVariableGetterDeclaration(tags, name, parameters, type, body));
10190
10191
  }
10191
10192
  const setterEntity = entity.getSetter();
10192
10193
  if (setterEntity !== void 0) {
10193
10194
  const parameters = this.convertParameters(setterEntity.getParameters());
10194
- result.push(SyntaxFactory2.packageVariableSetterDeclaration(tags, name, parameters, void 0));
10195
+ const body = SyntaxFactory2.emptyFunctionBlock();
10196
+ result.push(SyntaxFactory2.packageVariableSetterDeclaration(tags, name, parameters, body));
10195
10197
  }
10196
10198
  } else {
10197
10199
  result = SyntaxFactory2.packageVariableDeclaration(tags, name, type, void 0);
@@ -10204,14 +10206,8 @@ var EntityToSyntax2 = class {
10204
10206
  const typeParameters = this.convertTypeParameters(entity.getTypeParameters());
10205
10207
  const parameters = this.convertParameters(entity.getParameters());
10206
10208
  const returnType = this.convertTypeIfNotNullType(entity.getReturnType());
10207
- return SyntaxFactory2.packageFunctionDeclaration(
10208
- tags,
10209
- name,
10210
- typeParameters,
10211
- parameters,
10212
- returnType,
10213
- void 0
10214
- );
10209
+ const body = SyntaxFactory2.emptyFunctionBlock();
10210
+ return SyntaxFactory2.packageFunctionDeclaration(tags, name, typeParameters, parameters, returnType, body);
10215
10211
  }
10216
10212
  convertPackageType(entity) {
10217
10213
  switch (entity.typeEntityKind) {
@@ -10333,7 +10329,8 @@ var EntityToSyntax2 = class {
10333
10329
  const typeParameters = this.convertTypeParameters(entity.getTypeParameters());
10334
10330
  const parameters = this.convertParameters(entity.getParameters());
10335
10331
  const returnType = this.convertTypeIfNotNullType(entity.getReturnType());
10336
- return SyntaxFactory2.methodDeclaration(tags, name, typeParameters, parameters, returnType, void 0);
10332
+ const body = SyntaxFactory2.emptyFunctionBlock();
10333
+ return SyntaxFactory2.methodDeclaration(tags, name, typeParameters, parameters, returnType, body);
10337
10334
  }
10338
10335
  case 5 /* Accessor */:
10339
10336
  return this.convertTypeMemberAccessor(entity);
@@ -10380,7 +10377,8 @@ var EntityToSyntax2 = class {
10380
10377
  const name = this.getEntityName(owningEntity);
10381
10378
  const type = this.convertType(entity.getReturnType());
10382
10379
  const parameters = this.convertParameters(entity.getParameters());
10383
- return SyntaxFactory2.fieldGetterDeclaration(tags, name, parameters, type, void 0);
10380
+ const body = SyntaxFactory2.emptyFunctionBlock();
10381
+ return SyntaxFactory2.fieldGetterDeclaration(tags, name, parameters, type, body);
10384
10382
  }
10385
10383
  case 3 /* FieldSetter */: {
10386
10384
  const owningEntity = entity.getAccessorOwner();
@@ -10389,12 +10387,14 @@ var EntityToSyntax2 = class {
10389
10387
  }
10390
10388
  const name = this.getEntityName(owningEntity);
10391
10389
  const parameters = this.convertParameters(entity.getParameters());
10392
- return SyntaxFactory2.fieldSetterDeclaration(tags, name, parameters, void 0);
10390
+ const body = SyntaxFactory2.emptyFunctionBlock();
10391
+ return SyntaxFactory2.fieldSetterDeclaration(tags, name, parameters, body);
10393
10392
  }
10394
10393
  case 4 /* IndexedElementGetter */: {
10395
10394
  const parameters = this.convertParameters(entity.getParameters());
10396
10395
  const type = this.convertType(entity.getReturnType());
10397
- return SyntaxFactory2.indexedElementGetterDeclaration(tags, parameters, type, void 0);
10396
+ const body = SyntaxFactory2.emptyFunctionBlock();
10397
+ return SyntaxFactory2.indexedElementGetterDeclaration(tags, parameters, type, body);
10398
10398
  }
10399
10399
  case 5 /* IndexedElementSetter */: {
10400
10400
  const owningEntity = entity.getAccessorOwner();
@@ -10403,7 +10403,8 @@ var EntityToSyntax2 = class {
10403
10403
  }
10404
10404
  const parameterEntities = entity.getParameters();
10405
10405
  const parameters = this.convertParameters(parameterEntities);
10406
- return SyntaxFactory2.indexedElementSetterDeclaration(tags, parameters, void 0);
10406
+ const body = SyntaxFactory2.emptyFunctionBlock();
10407
+ return SyntaxFactory2.indexedElementSetterDeclaration(tags, parameters, body);
10407
10408
  }
10408
10409
  case 6 /* DereferencedVariableGetter */:
10409
10410
  case 7 /* DereferencedVariableSetter */:
@@ -10,7 +10,7 @@ import {
10
10
  WellKnownDeclarationsLoadError,
11
11
  __async,
12
12
  createTsInteropInputsForCompilation
13
- } from "./chunk-HOYH73XP.js";
13
+ } from "./chunk-62UH22KS.js";
14
14
 
15
15
  // source/executor/Compiler.ts
16
16
  var Compiler = class {
@@ -780,7 +780,7 @@ var UniqueWithComparatorQuery = class extends Query {
780
780
  };
781
781
 
782
782
  // source/common/Constants.ts
783
- var ArtelVersion = true ? "0.9.26037-pre-release" : "";
783
+ var ArtelVersion = true ? "0.9.26038-pre-release" : "";
784
784
  var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel", ".\u0430\u0440\u0442\u043C", ".\u0430\u0440\u0442\u0435\u043B\u044C\u043C", ".artm", ".artelm"];
785
785
  var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
786
786
  var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
@@ -17720,6 +17720,10 @@ var SyntaxFactory2 = class {
17720
17720
  void 0
17721
17721
  );
17722
17722
  }
17723
+ static emptyFunctionBlock() {
17724
+ const endKeyword = this.keyword(1011 /* End */);
17725
+ return new FunctionBlock2(void 0, new StatementList2([], void 0), void 0, endKeyword, void 0);
17726
+ }
17723
17727
  static localStructuredTypeDeclaration(name, baseTypes, members) {
17724
17728
  const typeKeyword = this.keyword(1033 /* Type */);
17725
17729
  const nameIdentifier = this.identifier(name);
@@ -19595,7 +19599,16 @@ var SyntaxToCode2 = class _SyntaxToCode {
19595
19599
  if (addLeadingNewLineOrWhitespace) {
19596
19600
  this.writeNewLineOrWhitespace();
19597
19601
  }
19598
- this.writeNodeDefault(node);
19602
+ if (node.openBraceToken !== void 0) {
19603
+ this.writeToken(node.openBraceToken);
19604
+ this.writeNewLineOrWhitespace();
19605
+ }
19606
+ this.writeNodeDefault(node.statementList);
19607
+ if (node.closeBraceToken !== void 0) {
19608
+ this.writeToken(node.closeBraceToken);
19609
+ } else if (node.endKeyword !== void 0) {
19610
+ this.writeKeyword(node.endKeyword);
19611
+ }
19599
19612
  }
19600
19613
  writeVariableInitializer(node) {
19601
19614
  this.writeWhitespace();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-QH5QQEEL.js";
3
+ } from "./chunk-3I4SQIYG.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -16,7 +16,7 @@ import {
16
16
  __async,
17
17
  performanceMeasurementStageNames,
18
18
  performanceMeasurementStages
19
- } from "./chunk-HOYH73XP.js";
19
+ } from "./chunk-62UH22KS.js";
20
20
 
21
21
  // source/executor/FileSystemUri.ts
22
22
  import { platform } from "os";
@@ -18,6 +18,7 @@ export declare class SyntaxFactory {
18
18
  static methodDeclaration(tags: readonly tree.Tag[] | tree.TagList, name: tree.Identifier | string, typeParameters: readonly tree.TypeParameterDeclaration[] | tree.TypeParameterDeclarationList | undefined, parameters: readonly tree.ParameterDeclaration[] | tree.ParameterList, returnTypeSpecifier: tree.TypeSpecifier | undefined, body: tree.FunctionBlock | undefined): tree.MethodDeclaration;
19
19
  static indexedElementGetterDeclaration(tags: readonly tree.Tag[] | tree.TagList, parameters: readonly tree.ParameterDeclaration[] | tree.ParameterList, typeSpecifier: tree.TypeSpecifier, body: tree.FunctionBlock | undefined): tree.IndexedElementGetterDeclaration;
20
20
  static indexedElementSetterDeclaration(tags: readonly tree.Tag[] | tree.TagList, parameters: readonly tree.ParameterDeclaration[] | tree.ParameterList, body: tree.FunctionBlock | undefined): tree.IndexedElementSetterDeclaration;
21
+ static emptyFunctionBlock(): tree.FunctionBlock;
21
22
  static localStructuredTypeDeclaration(name: tree.Identifier | string, baseTypes: readonly tree.NamedTypeSpecifier[] | undefined, members: readonly tree.TypeMemberDeclaration[] | tree.TypeMemberDeclarationList): tree.LocalStructuredTypeDeclaration;
22
23
  static localFunctionTypeDeclaration(parameters: readonly tree.ParameterDeclaration[] | tree.ParameterList, returnTypeSpecifier: tree.TypeSpecifier | undefined): tree.LocalFunctionTypeDeclaration;
23
24
  static namedTypeSpecifier(name: tree.Identifier | string | readonly (tree.Identifier | string)[], typeArguments?: readonly tree.TypeSpecifier[]): tree.NamedTypeSpecifier;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artel/artc",
3
- "version": "0.9.26037-pre-release",
3
+ "version": "0.9.26038-pre-release",
4
4
  "description": "Артель Компилятор | Artel Compiler",
5
5
  "author": "Nezaboodka Team <contact@nezaboodka.com>",
6
6
  "license": "Apache-2.0",