@artel/artc 0.6.25265 → 0.6.25266
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 +11 -5
- package/build/{chunk-ZL6MDCED.js → chunk-2Y343AG7.js} +1 -1
- package/build/{chunk-7MWYN6O7.js → chunk-4YMBG4SM.js} +1352 -1479
- package/build/{chunk-H4KRG6OZ.js → chunk-MHMPJB2Y.js} +2 -2
- package/build/types/emitter/EmitterContext.d.ts +1 -0
- package/build/types/emitter/IrBuilder.d.ts +4 -2
- package/build/types/emitter/IrFactory.d.ts +107 -1
- package/build/types/emitter/Transformer.d.ts +0 -2
- package/build/types/emitter/ir/Nodes.d.ts +142 -143
- 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-MHMPJB2Y.js";
|
|
5
|
+
import "./chunk-2Y343AG7.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4YMBG4SM.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-2Y343AG7.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-4YMBG4SM.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-MHMPJB2Y.js";
|
|
10
|
+
import "../chunk-2Y343AG7.js";
|
|
11
|
+
import "../chunk-4YMBG4SM.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-4YMBG4SM.js";
|
|
186
186
|
|
|
187
187
|
// source/services/CustomCommand.ts
|
|
188
188
|
import * as ls from "vscode-languageserver";
|
|
@@ -5230,7 +5230,7 @@ var SyntaxContextFactory = class {
|
|
|
5230
5230
|
const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.right);
|
|
5231
5231
|
return { isExpressionContext: { expressionRole }, isStatementContext: false };
|
|
5232
5232
|
}
|
|
5233
|
-
if (tokenOrKeyword.isToken(7 /* TextTemplateHead */) && tokenOrKeyword.parent.kind === 79 /* TextTemplateLiteral */) {
|
|
5233
|
+
if (tokenOrKeyword.isToken(7 /* TextTemplateHead */) && (tokenOrKeyword.parent.kind === 79 /* TextTemplateLiteral */ || tokenOrKeyword.parent.kind === 80 /* LocalizableTextTemplateLiteral */)) {
|
|
5234
5234
|
const expressionRole = new ExpressionRole_other(tokenOrKeyword.parent.spanList.spans.at(0)?.expression);
|
|
5235
5235
|
return { isExpressionContext: { expressionRole }, isStatementContext: false };
|
|
5236
5236
|
}
|
|
@@ -8455,9 +8455,15 @@ var SelectionRangeService = class {
|
|
|
8455
8455
|
if (!this.nodeShouldBeSkipped(child) && !child.rangeWithoutTrivia.equals(result.range)) {
|
|
8456
8456
|
result = new SelectionRange(child.rangeWithoutTrivia, result);
|
|
8457
8457
|
}
|
|
8458
|
-
if (child.kind === 0 /* Token */ && (child.tokenKind === 6 /* TextLiteral */ || child.tokenKind === 7 /* TextTemplateHead */ || child.tokenKind === 8 /* TextTemplatePart */ || child.tokenKind === 9 /* TextTemplateTail */ || child.tokenKind === 5 /* CharLiteral */)
|
|
8459
|
-
|
|
8460
|
-
|
|
8458
|
+
if (child.kind === 0 /* Token */ && (child.tokenKind === 6 /* TextLiteral */ || child.tokenKind === 7 /* TextTemplateHead */ || child.tokenKind === 8 /* TextTemplatePart */ || child.tokenKind === 9 /* TextTemplateTail */ || child.tokenKind === 5 /* CharLiteral */)) {
|
|
8459
|
+
let textContentStart = child.rangeWithoutTrivia.start + 1;
|
|
8460
|
+
let textContentEnd = child.rangeWithoutTrivia.end - 1;
|
|
8461
|
+
if ((child.flags & 128 /* StartsWithTilde */) !== 0) {
|
|
8462
|
+
textContentStart += 1;
|
|
8463
|
+
}
|
|
8464
|
+
if ((child.flags & 256 /* EndsWithTilde */) !== 0) {
|
|
8465
|
+
textContentEnd -= 1;
|
|
8466
|
+
}
|
|
8461
8467
|
if (offset >= textContentStart && offset < textContentEnd) {
|
|
8462
8468
|
result = new SelectionRange(new Range(textContentStart, textContentEnd), result);
|
|
8463
8469
|
}
|