@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 +3 -3
- package/build/api/Api.js +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +9 -4
- package/build/{chunk-QPMUNY52.js → chunk-A24SR6QN.js} +2 -2
- package/build/{chunk-PONDNA47.js → chunk-A5H2QLXZ.js} +14321 -14577
- package/build/{chunk-PWOY5UD5.js → chunk-REZSITUH.js} +1 -1
- package/build/types/analysis/TagMeaning.d.ts +2 -1
- package/build/types/analysis/Tags.d.ts +6 -2
- package/build/types/analysis/Utils.d.ts +3 -2
- package/build/types/emitter/Emitter.d.ts +0 -1
- package/build/types/emitter/EmitterContext.d.ts +2 -2
- package/build/types/emitter/ErrorBoundary.d.ts +3 -3
- package/build/types/emitter/IrFactory.d.ts +51 -36
- package/build/types/emitter/IrToJs.d.ts +0 -1
- package/build/types/emitter/Transformer.d.ts +0 -2
- package/build/types/emitter/ir/Nodes.d.ts +109 -95
- package/build/types/emitter/ir/types.d.ts +2 -2
- package/package.json +1 -1
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-A24SR6QN.js";
|
|
5
|
+
import "./chunk-REZSITUH.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
346
|
+
} from "../chunk-A5H2QLXZ.js";
|
|
347
347
|
export {
|
|
348
348
|
AccessKind,
|
|
349
349
|
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-A24SR6QN.js";
|
|
10
|
+
import "../chunk-REZSITUH.js";
|
|
11
|
+
import "../chunk-A5H2QLXZ.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -182,7 +182,7 @@ import {
|
|
|
182
182
|
unwrapParenthesizedExpressions,
|
|
183
183
|
visitChildren,
|
|
184
184
|
yieldExecution
|
|
185
|
-
} from "../chunk-
|
|
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 (
|
|
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(
|
|
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-
|
|
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-
|
|
17
|
+
} from "./chunk-A5H2QLXZ.js";
|
|
18
18
|
|
|
19
19
|
// source/executor/FileSystemUri.ts
|
|
20
20
|
import { platform } from "os";
|