@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 CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-U4C4P2DL.js";
5
- import "./chunk-CXVLWQXS.js";
4
+ } from "./chunk-OGGZ7IU4.js";
5
+ import "./chunk-ZBDLVQSK.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-BJOOKURD.js";
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-CXVLWQXS.js";
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-BJOOKURD.js";
332
+ } from "../chunk-SM3F77D3.js";
333
333
  export {
334
334
  AccessKind,
335
335
  AccessedFunction_entity,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-U4C4P2DL.js";
10
- import "../chunk-CXVLWQXS.js";
11
- import "../chunk-BJOOKURD.js";
9
+ } from "../chunk-OGGZ7IU4.js";
10
+ import "../chunk-ZBDLVQSK.js";
11
+ import "../chunk-SM3F77D3.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -147,7 +147,7 @@ import {
147
147
  traverseTreeAsync,
148
148
  traverseTreeAsync2,
149
149
  yieldTask
150
- } from "../chunk-BJOOKURD.js";
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-CXVLWQXS.js";
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-BJOOKURD.js";
19
+ } from "./chunk-SM3F77D3.js";
20
20
 
21
21
  // source/executor/FileSystemUri.ts
22
22
  import { platform } from "os";