@artel/artc 0.9.26076-pre-release → 0.9.26078-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 +3 -3
- package/build/api/Api.js +2 -2
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +20 -1
- package/build/{chunk-U4C4P2DL.js → chunk-OGGZ7IU4.js} +2 -2
- package/build/{chunk-BJOOKURD.js → chunk-SM3F77D3.js} +258 -986
- package/build/{chunk-CXVLWQXS.js → chunk-ZBDLVQSK.js} +1 -1
- package/build/types/parser/Scanner.d.ts +2 -0
- package/build/types/services/m/CompletionService.d.ts +1 -0
- package/build/types/tree/m/Nodes.d.ts +3 -1
- package/package.json +1 -1
- package/build/types/parser/m/Scanner.d.ts +0 -56
- package/build/types/parser/m/TokenKind.d.ts +0 -80
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-OGGZ7IU4.js";
|
|
5
|
+
import "./chunk-ZBDLVQSK.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SM3F77D3.js";
|
|
9
9
|
|
|
10
10
|
// source/Cli.ts
|
|
11
11
|
function main() {
|
package/build/api/Api.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
ImportEmitKind,
|
|
9
9
|
NotEmittedPackageInfo,
|
|
10
10
|
SourceMapMode
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-ZBDLVQSK.js";
|
|
12
12
|
import {
|
|
13
13
|
AccessKind,
|
|
14
14
|
AccessedFunction_entity,
|
|
@@ -329,7 +329,7 @@ import {
|
|
|
329
329
|
withoutQuotes,
|
|
330
330
|
withoutTemplateQuotes,
|
|
331
331
|
yieldTask
|
|
332
|
-
} from "../chunk-
|
|
332
|
+
} from "../chunk-SM3F77D3.js";
|
|
333
333
|
export {
|
|
334
334
|
AccessKind,
|
|
335
335
|
AccessedFunction_entity,
|
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-OGGZ7IU4.js";
|
|
10
|
+
import "../chunk-ZBDLVQSK.js";
|
|
11
|
+
import "../chunk-SM3F77D3.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
traverseTreeAsync,
|
|
148
148
|
traverseTreeAsync2,
|
|
149
149
|
yieldTask
|
|
150
|
-
} from "../chunk-
|
|
150
|
+
} from "../chunk-SM3F77D3.js";
|
|
151
151
|
|
|
152
152
|
// source/services/common/Types.ts
|
|
153
153
|
import * as ls from "vscode-languageserver";
|
|
@@ -16615,6 +16615,9 @@ var CompletionServiceM = class {
|
|
|
16615
16615
|
if (this.isFromKeywordContext(positionDescription)) {
|
|
16616
16616
|
kinds.add(1017 /* From */);
|
|
16617
16617
|
}
|
|
16618
|
+
if (this.isVarKeywordInForStatementContext(positionDescription)) {
|
|
16619
|
+
kinds.add(1035 /* Var */);
|
|
16620
|
+
}
|
|
16618
16621
|
if (syntaxContext.expressionContext !== void 0) {
|
|
16619
16622
|
if (!this.isTypeCallCompletionContext(positionDescription)) {
|
|
16620
16623
|
kinds.add(1024 /* Not */).add(1037 /* Yes */).add(1023 /* No */).add(1025 /* Null */).add(1018 /* Function */).add(1006 /* Cond */);
|
|
@@ -16818,6 +16821,22 @@ var CompletionServiceM = class {
|
|
|
16818
16821
|
}
|
|
16819
16822
|
return false;
|
|
16820
16823
|
}
|
|
16824
|
+
isVarKeywordInForStatementContext(positionDescription) {
|
|
16825
|
+
if (positionDescription.kind !== "after-token-or-keyword") {
|
|
16826
|
+
return false;
|
|
16827
|
+
}
|
|
16828
|
+
const tokenOrKeyword = positionDescription.tokenOrKeyword;
|
|
16829
|
+
if (tokenOrKeyword.isKeyword(1016 /* For */) && tokenOrKeyword.parent.kind === 1035 /* ForStatement */) {
|
|
16830
|
+
return true;
|
|
16831
|
+
}
|
|
16832
|
+
if (tokenOrKeyword.isToken(1026 /* Comma */) && tokenOrKeyword.parent.kind === 1035 /* ForStatement */) {
|
|
16833
|
+
return true;
|
|
16834
|
+
}
|
|
16835
|
+
if (tokenOrKeyword.isToken(1039 /* Identifier */) && tokenOrKeyword.parent.kind === 1036 /* ForStatementVariableDeclaration */ && tokenOrKeyword.parent === tokenOrKeyword.parent.parent.elementVariableDeclaration) {
|
|
16836
|
+
return true;
|
|
16837
|
+
}
|
|
16838
|
+
return false;
|
|
16839
|
+
}
|
|
16821
16840
|
isFromKeywordContext(positionDescription) {
|
|
16822
16841
|
if (!(positionDescription.kind === "after-token-or-keyword" && positionDescription.tokenOrKeyword.isToken(1039 /* Identifier */))) {
|
|
16823
16842
|
return false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler,
|
|
3
3
|
DiagnosticFormatter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZBDLVQSK.js";
|
|
5
5
|
import {
|
|
6
6
|
ArtelVersion,
|
|
7
7
|
Cached,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
__async,
|
|
17
17
|
performanceMeasurementStageNames,
|
|
18
18
|
performanceMeasurementStages
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-SM3F77D3.js";
|
|
20
20
|
|
|
21
21
|
// source/executor/FileSystemUri.ts
|
|
22
22
|
import { platform } from "os";
|