@artel/artc 0.6.25267 → 0.6.25269

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-QPMUNY52.js";
5
- import "./chunk-PWOY5UD5.js";
4
+ } from "./chunk-A24SR6QN.js";
5
+ import "./chunk-REZSITUH.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-PONDNA47.js";
8
+ } from "./chunk-A5H2QLXZ.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-PWOY5UD5.js";
3
+ } from "../chunk-REZSITUH.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunctionParameter,
@@ -343,7 +343,7 @@ import {
343
343
  withoutQuotes,
344
344
  withoutTemplateQuotes,
345
345
  yieldExecution
346
- } from "../chunk-PONDNA47.js";
346
+ } from "../chunk-A5H2QLXZ.js";
347
347
  export {
348
348
  AccessKind,
349
349
  AccessedFunctionParameter,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-QPMUNY52.js";
10
- import "../chunk-PWOY5UD5.js";
11
- import "../chunk-PONDNA47.js";
9
+ } from "../chunk-A24SR6QN.js";
10
+ import "../chunk-REZSITUH.js";
11
+ import "../chunk-A5H2QLXZ.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-PONDNA47.js";
185
+ } from "../chunk-A5H2QLXZ.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -1993,7 +1993,11 @@ var SyntaxToCode = class _SyntaxToCode {
1993
1993
  } else {
1994
1994
  let value = token.value;
1995
1995
  if (token.tokenKind === 10 /* Identifier */) {
1996
- if (!Scanner.isIdentifier(value) || this.singleWordKeywordValues.has(value)) {
1996
+ if (value.startsWith("'") && value.endsWith("'")) {
1997
+ value = `'${this.escapeLiteralIdentifier(value.substring(1, value.length - 1))}'`;
1998
+ } else if (this.singleWordKeywordValues.has(value)) {
1999
+ value = `'${value}'`;
2000
+ } else if (!Scanner.isIdentifier(value)) {
1997
2001
  value = `'${this.escapeLiteralIdentifier(value)}'`;
1998
2002
  }
1999
2003
  }
@@ -2001,7 +2005,6 @@ var SyntaxToCode = class _SyntaxToCode {
2001
2005
  }
2002
2006
  }
2003
2007
  writeNode(node) {
2004
- ;
2005
2008
  _SyntaxToCode.writeFunctions[node.kind].call(this, node);
2006
2009
  }
2007
2010
  writeNewLineOrWhitespace(newLineCount = 1) {
@@ -2211,9 +2214,11 @@ var SyntaxToCode = class _SyntaxToCode {
2211
2214
  }
2212
2215
  // TODO: перенести метод в другое место (в Scanner)
2213
2216
  escapeLiteralIdentifier(value) {
2214
- return value.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
2217
+ return value.replace(backSlashRegExp, "\\\\").replace(singleQuoteRegExp, "\\'");
2215
2218
  }
2216
2219
  };
2220
+ var backSlashRegExp = /\\/g;
2221
+ var singleQuoteRegExp = /'/g;
2217
2222
  var modifierSortOrder = {
2218
2223
  [37 /* Hidden */]: 0,
2219
2224
  [41 /* Static */]: 1,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-PWOY5UD5.js";
3
+ } from "./chunk-REZSITUH.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-PONDNA47.js";
17
+ } from "./chunk-A5H2QLXZ.js";
18
18
 
19
19
  // source/executor/FileSystemUri.ts
20
20
  import { platform } from "os";