@artel/artc 0.9.26077-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 +1 -1
- package/build/{chunk-N4YNWLSJ.js → chunk-OGGZ7IU4.js} +2 -2
- package/build/{chunk-ZNWXZVWW.js → chunk-SM3F77D3.js} +13 -2
- package/build/{chunk-HIER4KMR.js → chunk-ZBDLVQSK.js} +1 -1
- package/build/types/parser/Scanner.d.ts +2 -0
- 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-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
|
@@ -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";
|
|
@@ -785,7 +785,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
|
785
785
|
};
|
|
786
786
|
|
|
787
787
|
// source/common/Constants.ts
|
|
788
|
-
var ArtelVersion = true ? "0.9.
|
|
788
|
+
var ArtelVersion = true ? "0.9.26078-pre-release" : "";
|
|
789
789
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel", ".\u043A\u043E\u0434", ".kod"];
|
|
790
790
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
|
791
791
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
|
@@ -1731,12 +1731,21 @@ var Scanner = class _Scanner {
|
|
|
1731
1731
|
this.braceBalance = 0;
|
|
1732
1732
|
this.textTemplateBraceBalanceStack = [];
|
|
1733
1733
|
this.uniqueTokenValues = /* @__PURE__ */ new Map();
|
|
1734
|
-
this.token = this.
|
|
1734
|
+
this.token = new Token(0 /* Unknown */, "", this.currentPosition);
|
|
1735
|
+
this.hasToken = false;
|
|
1735
1736
|
}
|
|
1736
1737
|
getToken() {
|
|
1738
|
+
this.ensureHasToken();
|
|
1737
1739
|
return this.token;
|
|
1738
1740
|
}
|
|
1741
|
+
ensureHasToken() {
|
|
1742
|
+
if (!this.hasToken) {
|
|
1743
|
+
this.token = this.nextToken();
|
|
1744
|
+
this.hasToken = true;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1739
1747
|
lookAhead(callback) {
|
|
1748
|
+
this.ensureHasToken();
|
|
1740
1749
|
const savedToken = this.token;
|
|
1741
1750
|
const savedCurrentPosition = this.currentPosition;
|
|
1742
1751
|
const savedBraceBalance = this.braceBalance;
|
|
@@ -1757,6 +1766,7 @@ var Scanner = class _Scanner {
|
|
|
1757
1766
|
return result;
|
|
1758
1767
|
}
|
|
1759
1768
|
tryScan(callback) {
|
|
1769
|
+
this.ensureHasToken();
|
|
1760
1770
|
const savedToken = this.token;
|
|
1761
1771
|
const savedCurrentPosition = this.currentPosition;
|
|
1762
1772
|
const savedBraceBalance = this.braceBalance;
|
|
@@ -32430,6 +32440,7 @@ var TextParser = class {
|
|
|
32430
32440
|
if (this.tokenQueue.length > 0) {
|
|
32431
32441
|
result = this.tokenQueue.shift();
|
|
32432
32442
|
} else {
|
|
32443
|
+
this.scanner.ensureHasToken();
|
|
32433
32444
|
const tokenStart = this.scanner.getToken().startPosition;
|
|
32434
32445
|
const leadingTrivia = this.scanLeadingTrivia();
|
|
32435
32446
|
const scannerToken = this.scanner.getToken();
|
|
@@ -28,6 +28,7 @@ export declare class Scanner {
|
|
|
28
28
|
readonly dialect: PackageDialect;
|
|
29
29
|
readonly onError: TokenErrorCallback | undefined;
|
|
30
30
|
private token;
|
|
31
|
+
private hasToken;
|
|
31
32
|
private skipWhitespace;
|
|
32
33
|
private endPosition;
|
|
33
34
|
private currentPosition;
|
|
@@ -36,6 +37,7 @@ export declare class Scanner {
|
|
|
36
37
|
private readonly uniqueTokenValues;
|
|
37
38
|
constructor(text: string, dialect: PackageDialect, options?: ScannerOptions, onError?: TokenErrorCallback);
|
|
38
39
|
getToken(): Token;
|
|
40
|
+
ensureHasToken(): void;
|
|
39
41
|
lookAhead(callback: () => boolean): boolean;
|
|
40
42
|
tryScan<T>(callback: () => T): T | undefined;
|
|
41
43
|
nextToken(): Token;
|
package/package.json
CHANGED