@artel/artc 0.6.26019 → 0.6.26021
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-QBUXIP7E.js → chunk-BUGHCVWW.js} +2 -2
- package/build/{chunk-LYYIQT6J.js → chunk-DWHH53A7.js} +113 -127
- package/build/{chunk-27AIX6Z7.js → chunk-NKLHVPAI.js} +1 -1
- package/build/types/analysis/TypeMemberLookup.d.ts +5 -3
- package/build/types/analysis/a/ReservedNameDictionary.d.ts +5 -9
- package/build/types/analysis/a/semantic-context/SemanticContextBase.d.ts +2 -2
- package/build/types/emitter/Entities.d.ts +1 -1
- package/build/types/entities/interfaces/FunctionEntity.d.ts +0 -5
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +2 -2
- package/build/types/project/SourceFile.d.ts +6 -5
- package/build/types/tree/a/BaseNode.d.ts +1 -2
- package/build/types/tree/a/Nodes.d.ts +2 -4
- package/package.json +2 -2
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-BUGHCVWW.js";
|
|
5
|
+
import "./chunk-NKLHVPAI.js";
|
|
6
6
|
import {
|
|
7
7
|
__async
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DWHH53A7.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-NKLHVPAI.js";
|
|
4
4
|
import {
|
|
5
5
|
AccessKind,
|
|
6
6
|
AccessedFunction_entity,
|
|
@@ -281,7 +281,7 @@ import {
|
|
|
281
281
|
withoutQuotes,
|
|
282
282
|
withoutTemplateQuotes,
|
|
283
283
|
yieldTask
|
|
284
|
-
} from "../chunk-
|
|
284
|
+
} from "../chunk-DWHH53A7.js";
|
|
285
285
|
export {
|
|
286
286
|
AccessKind,
|
|
287
287
|
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-BUGHCVWW.js";
|
|
10
|
+
import "../chunk-NKLHVPAI.js";
|
|
11
|
+
import "../chunk-DWHH53A7.js";
|
|
12
12
|
export {
|
|
13
13
|
CommandLineCompiler,
|
|
14
14
|
FileSystemUri,
|
package/build/api/ApiServices.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NKLHVPAI.js";
|
|
4
4
|
import {
|
|
5
5
|
ArtelVersion,
|
|
6
6
|
Cached,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__async,
|
|
16
16
|
performanceMeasurementStageNames,
|
|
17
17
|
performanceMeasurementStages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-DWHH53A7.js";
|
|
19
19
|
|
|
20
20
|
// source/executor/FileSystemUri.ts
|
|
21
21
|
import { platform } from "os";
|
|
@@ -70,17 +70,17 @@ var __yieldStar = (value) => {
|
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
// source/common/PackageDialect.ts
|
|
73
|
-
var PackageDialect = /* @__PURE__ */ ((
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
73
|
+
var PackageDialect = /* @__PURE__ */ ((PackageDialect27) => {
|
|
74
|
+
PackageDialect27[PackageDialect27["ArtelA"] = 0] = "ArtelA";
|
|
75
|
+
PackageDialect27[PackageDialect27["ArtelM"] = 1] = "ArtelM";
|
|
76
|
+
return PackageDialect27;
|
|
77
77
|
})(PackageDialect || {});
|
|
78
78
|
|
|
79
79
|
// source/common/PackageLocale.ts
|
|
80
|
-
var PackageLocale = /* @__PURE__ */ ((
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return
|
|
80
|
+
var PackageLocale = /* @__PURE__ */ ((PackageLocale56) => {
|
|
81
|
+
PackageLocale56[PackageLocale56["En"] = 0] = "En";
|
|
82
|
+
PackageLocale56[PackageLocale56["Ru"] = 1] = "Ru";
|
|
83
|
+
return PackageLocale56;
|
|
84
84
|
})(PackageLocale || {});
|
|
85
85
|
var locales = [
|
|
86
86
|
{ locale: 0 /* En */, code: "en", names: ["english", "\u0430\u043D\u0433\u043B\u0438\u0439\u0441\u043A\u0438\u0439"] },
|
|
@@ -764,7 +764,7 @@ var UniqueWithComparatorQuery = class extends Query {
|
|
|
764
764
|
};
|
|
765
765
|
|
|
766
766
|
// source/common/Constants.ts
|
|
767
|
-
var ArtelVersion = true ? "0.6.
|
|
767
|
+
var ArtelVersion = true ? "0.6.26021" : "";
|
|
768
768
|
var ArtelSourceFileExtensions = [".\u0430\u0440\u0442", ".\u0430\u0440\u0442\u0435\u043B\u044C", ".art", ".artel", ".\u0430\u0440\u0442\u043C", ".\u0430\u0440\u0442\u0435\u043B\u044C\u043C", ".artm", ".artelm"];
|
|
769
769
|
var ArtelSourceFileExtensionSet = new Set(ArtelSourceFileExtensions);
|
|
770
770
|
var ArtelSourceAndConfigurationFileExtensionSet = new Set(ArtelSourceFileExtensionSet).add(".json");
|
|
@@ -2709,21 +2709,21 @@ var ReservedNameKind = /* @__PURE__ */ ((ReservedNameKind3) => {
|
|
|
2709
2709
|
ReservedNameKind3[ReservedNameKind3["Value"] = 1] = "Value";
|
|
2710
2710
|
return ReservedNameKind3;
|
|
2711
2711
|
})(ReservedNameKind || {});
|
|
2712
|
-
var reservedNamedRu =
|
|
2712
|
+
var reservedNamedRu = {
|
|
2713
2713
|
[0 /* Result */]: new Name("\u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442"),
|
|
2714
2714
|
[1 /* Value */]: new Name("\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435")
|
|
2715
|
-
}
|
|
2716
|
-
var reservedNamesEn =
|
|
2715
|
+
};
|
|
2716
|
+
var reservedNamesEn = {
|
|
2717
2717
|
[0 /* Result */]: new Name("result"),
|
|
2718
2718
|
[1 /* Value */]: new Name("value")
|
|
2719
|
-
}
|
|
2720
|
-
var reservedNamesByLocale =
|
|
2721
|
-
[1 /* Ru */]: reservedNamedRu
|
|
2722
|
-
[0 /* En */]: reservedNamesEn
|
|
2723
|
-
}
|
|
2724
|
-
var reservedNameKindByNameKey =
|
|
2719
|
+
};
|
|
2720
|
+
var reservedNamesByLocale = {
|
|
2721
|
+
[1 /* Ru */]: reservedNamedRu,
|
|
2722
|
+
[0 /* En */]: reservedNamesEn
|
|
2723
|
+
};
|
|
2724
|
+
var reservedNameKindByNameKey = Object.fromEntries(
|
|
2725
2725
|
Query.from(Object.entries(reservedNamesByLocale)).map((e) => [e[0], new Map(Object.entries(e[1]).map((e2) => [e2[1], parseInt(e2[0])]))])
|
|
2726
|
-
)
|
|
2726
|
+
);
|
|
2727
2727
|
|
|
2728
2728
|
// source/tree/a/KeywordKind.ts
|
|
2729
2729
|
var KeywordKind = /* @__PURE__ */ ((KeywordKind2) => {
|
|
@@ -3475,7 +3475,7 @@ var LocalizationHelperA = class extends LocalizationHelper {
|
|
|
3475
3475
|
return "";
|
|
3476
3476
|
}
|
|
3477
3477
|
static localizeReservedName(kind, locale) {
|
|
3478
|
-
return reservedNamesByLocale
|
|
3478
|
+
return reservedNamesByLocale[locale][kind].unescapedOriginal;
|
|
3479
3479
|
}
|
|
3480
3480
|
static localizeOperatorKind(kind, locale, dialect) {
|
|
3481
3481
|
if (isOperatorDefinedByToken2(kind)) {
|
|
@@ -5001,9 +5001,6 @@ var BaseNode = class {
|
|
|
5001
5001
|
get locale() {
|
|
5002
5002
|
return this.sourceFile.locale;
|
|
5003
5003
|
}
|
|
5004
|
-
get dialect() {
|
|
5005
|
-
return this.sourceFile.dialect;
|
|
5006
|
-
}
|
|
5007
5004
|
get rangeWithTrivia() {
|
|
5008
5005
|
if (this.rangeWithTrivia_ === void 0) {
|
|
5009
5006
|
const rangeStart = this.getStartWithTrivia();
|
|
@@ -5684,11 +5681,10 @@ function isAnonymousStructuredTypeDeclaration(node) {
|
|
|
5684
5681
|
|
|
5685
5682
|
// source/tree/a/Nodes.ts
|
|
5686
5683
|
var SourceFile = class extends BaseNode {
|
|
5687
|
-
constructor(packageImportDirectiveList, declarationList, endOfFileToken, locale,
|
|
5684
|
+
constructor(packageImportDirectiveList, declarationList, endOfFileToken, locale, diagnostics, rangeWithTrivia) {
|
|
5688
5685
|
super(rangeWithTrivia);
|
|
5689
5686
|
this.kind = 1 /* SourceFile */;
|
|
5690
5687
|
this.locale_ = locale;
|
|
5691
|
-
this.dialect_ = dialect;
|
|
5692
5688
|
this.diagnostics = diagnostics;
|
|
5693
5689
|
this.children = [packageImportDirectiveList, declarationList, endOfFileToken];
|
|
5694
5690
|
this.setParentForChildren();
|
|
@@ -5698,9 +5694,6 @@ var SourceFile = class extends BaseNode {
|
|
|
5698
5694
|
get locale() {
|
|
5699
5695
|
return this.locale_;
|
|
5700
5696
|
}
|
|
5701
|
-
get dialect() {
|
|
5702
|
-
return this.dialect_;
|
|
5703
|
-
}
|
|
5704
5697
|
get parent() {
|
|
5705
5698
|
return void 0;
|
|
5706
5699
|
}
|
|
@@ -9957,7 +9950,6 @@ var SyntaxFactory = class {
|
|
|
9957
9950
|
declarationList,
|
|
9958
9951
|
endOfFileToken,
|
|
9959
9952
|
DefaultLocale,
|
|
9960
|
-
DefaultDialect,
|
|
9961
9953
|
[],
|
|
9962
9954
|
void 0
|
|
9963
9955
|
);
|
|
@@ -13469,7 +13461,6 @@ var TextParser = class {
|
|
|
13469
13461
|
declarationList,
|
|
13470
13462
|
endOfFileToken,
|
|
13471
13463
|
this.locale,
|
|
13472
|
-
this.dialect,
|
|
13473
13464
|
this.diagnostics,
|
|
13474
13465
|
this.rangeFrom(sourceFileStart)
|
|
13475
13466
|
);
|
|
@@ -17588,6 +17579,12 @@ var SourceFile2 = class extends BaseNode2 {
|
|
|
17588
17579
|
|
|
17589
17580
|
// source/project/SourceFile.ts
|
|
17590
17581
|
var BaseSourceFile = class extends TextFile {
|
|
17582
|
+
// TODO: M (удалить параметр parserDialect)
|
|
17583
|
+
constructor(text, uri, version, parserDialect) {
|
|
17584
|
+
super(text, uri, version);
|
|
17585
|
+
this.parserDialect = parserDialect;
|
|
17586
|
+
this.name = uri.lastSegment ?? "";
|
|
17587
|
+
}
|
|
17591
17588
|
get package() {
|
|
17592
17589
|
Debug.assert(this.package_ !== void 0, "'package' field accessed before source file is finished.");
|
|
17593
17590
|
return this.package_;
|
|
@@ -17595,10 +17592,6 @@ var BaseSourceFile = class extends TextFile {
|
|
|
17595
17592
|
get locale() {
|
|
17596
17593
|
return this.package.locale;
|
|
17597
17594
|
}
|
|
17598
|
-
constructor(text, uri, version) {
|
|
17599
|
-
super(text, uri, version);
|
|
17600
|
-
this.name = uri.lastSegment ?? "";
|
|
17601
|
-
}
|
|
17602
17595
|
/**
|
|
17603
17596
|
* Данный метод должен вызываться только пакетом этого исходного файла.
|
|
17604
17597
|
*/
|
|
@@ -17611,11 +17604,12 @@ var BaseSourceFile = class extends TextFile {
|
|
|
17611
17604
|
}
|
|
17612
17605
|
};
|
|
17613
17606
|
var SourceFileA = class _SourceFileA extends BaseSourceFile {
|
|
17614
|
-
|
|
17615
|
-
|
|
17607
|
+
// TODO: M (удалить параметр parserDialect)
|
|
17608
|
+
constructor(text, uri, version, node, parserDialect) {
|
|
17609
|
+
super(text, uri, version, parserDialect);
|
|
17616
17610
|
this.dialect = 0 /* ArtelA */;
|
|
17617
17611
|
if (node === void 0) {
|
|
17618
|
-
this.node = new Lazy(() => new Parser(this.text, this.locale, this.
|
|
17612
|
+
this.node = new Lazy(() => new Parser(this.text, this.locale, this.parserDialect).parse());
|
|
17619
17613
|
} else {
|
|
17620
17614
|
this.node = Lazy.immediate(node);
|
|
17621
17615
|
}
|
|
@@ -17634,16 +17628,17 @@ var SourceFileA = class _SourceFileA extends BaseSourceFile {
|
|
|
17634
17628
|
getSyntaxNodeIfParsed() {
|
|
17635
17629
|
return this.node.getCachedValue();
|
|
17636
17630
|
}
|
|
17637
|
-
static create(text, uri, version) {
|
|
17638
|
-
return new _SourceFileA(text, uri, version, void 0);
|
|
17631
|
+
static create(text, uri, version, parserDialect) {
|
|
17632
|
+
return new _SourceFileA(text, uri, version, void 0, parserDialect ?? 0 /* ArtelA */);
|
|
17639
17633
|
}
|
|
17640
17634
|
createCopy() {
|
|
17641
|
-
return new _SourceFileA(this.text, this.uri, this.version, this.node.getCachedValue());
|
|
17635
|
+
return new _SourceFileA(this.text, this.uri, this.version, this.node.getCachedValue(), this.parserDialect);
|
|
17642
17636
|
}
|
|
17643
17637
|
};
|
|
17644
17638
|
var SourceFileM = class _SourceFileM extends BaseSourceFile {
|
|
17645
|
-
|
|
17646
|
-
|
|
17639
|
+
// TODO: M (удалить параметр parserDialect)
|
|
17640
|
+
constructor(text, uri, version, node, parserDialect) {
|
|
17641
|
+
super(text, uri, version, parserDialect);
|
|
17647
17642
|
this.dialect = 1 /* ArtelM */;
|
|
17648
17643
|
if (node === void 0) {
|
|
17649
17644
|
this.node = new Lazy(() => new SourceFile2(this.locale, 1 /* ArtelM */, [], void 0));
|
|
@@ -17665,11 +17660,11 @@ var SourceFileM = class _SourceFileM extends BaseSourceFile {
|
|
|
17665
17660
|
getSyntaxNodeIfParsed() {
|
|
17666
17661
|
return this.node.getCachedValue();
|
|
17667
17662
|
}
|
|
17668
|
-
static create(text, uri, version) {
|
|
17669
|
-
return new _SourceFileM(text, uri, version, void 0);
|
|
17663
|
+
static create(text, uri, version, parserDialect) {
|
|
17664
|
+
return new _SourceFileM(text, uri, version, void 0, parserDialect ?? 1 /* ArtelM */);
|
|
17670
17665
|
}
|
|
17671
17666
|
createCopy() {
|
|
17672
|
-
return new _SourceFileM(this.text, this.uri, this.version, this.node.getCachedValue());
|
|
17667
|
+
return new _SourceFileM(this.text, this.uri, this.version, this.node.getCachedValue(), this.parserDialect);
|
|
17673
17668
|
}
|
|
17674
17669
|
};
|
|
17675
17670
|
var SourceFile3;
|
|
@@ -17677,9 +17672,9 @@ var SourceFile3;
|
|
|
17677
17672
|
function create(text, uri, version, dialect) {
|
|
17678
17673
|
switch (dialect) {
|
|
17679
17674
|
case 0 /* ArtelA */:
|
|
17680
|
-
return SourceFileA.create(text, uri, version);
|
|
17675
|
+
return SourceFileA.create(text, uri, version, dialect);
|
|
17681
17676
|
case 1 /* ArtelM */:
|
|
17682
|
-
return
|
|
17677
|
+
return SourceFileA.create(text, uri, version, dialect);
|
|
17683
17678
|
default:
|
|
17684
17679
|
Debug.never(dialect);
|
|
17685
17680
|
}
|
|
@@ -19759,7 +19754,7 @@ var DisplayService = class {
|
|
|
19759
19754
|
case 0 /* ArtelA */:
|
|
19760
19755
|
return this.a;
|
|
19761
19756
|
case 1 /* ArtelM */:
|
|
19762
|
-
|
|
19757
|
+
return this.a;
|
|
19763
19758
|
default:
|
|
19764
19759
|
Debug.never(this.dialect);
|
|
19765
19760
|
}
|
|
@@ -20280,7 +20275,7 @@ var IntrinsicPackageVariableEntity = class {
|
|
|
20280
20275
|
return this.name;
|
|
20281
20276
|
}
|
|
20282
20277
|
getType() {
|
|
20283
|
-
return
|
|
20278
|
+
return MaybeLazy.getValue(this.type);
|
|
20284
20279
|
}
|
|
20285
20280
|
getDefinition() {
|
|
20286
20281
|
return { kind: 1 /* Intrinsic */ };
|
|
@@ -22688,10 +22683,10 @@ var ProgramPackage;
|
|
|
22688
22683
|
return new ProgramPackageA(uri, configuration, sourceFiles);
|
|
22689
22684
|
case 1 /* ArtelM */:
|
|
22690
22685
|
Debug.assert(
|
|
22691
|
-
sourceFiles.every((f) => f.dialect ===
|
|
22686
|
+
sourceFiles.every((f) => f.dialect === 0 /* ArtelA */),
|
|
22692
22687
|
"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0442\u0430\u043A\u043E\u0439 \u0436\u0435 \u0434\u0438\u0430\u043B\u0435\u043A\u0442, \u043A\u0430\u043A \u043F\u0430\u043A\u0435\u0442."
|
|
22693
22688
|
);
|
|
22694
|
-
return new
|
|
22689
|
+
return new ProgramPackageA(uri, configuration, sourceFiles);
|
|
22695
22690
|
default:
|
|
22696
22691
|
Debug.never(configuration.dialect);
|
|
22697
22692
|
}
|
|
@@ -22741,10 +22736,10 @@ var TranslationPackage;
|
|
|
22741
22736
|
return new TranslationPackageA(uri, configuration, sourceFiles);
|
|
22742
22737
|
case 1 /* ArtelM */:
|
|
22743
22738
|
Debug.assert(
|
|
22744
|
-
sourceFiles.every((f) => f.dialect ===
|
|
22739
|
+
sourceFiles.every((f) => f.dialect === 0 /* ArtelA */),
|
|
22745
22740
|
"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0442\u0430\u043A\u043E\u0439 \u0436\u0435 \u0434\u0438\u0430\u043B\u0435\u043A\u0442, \u043A\u0430\u043A \u043F\u0430\u043A\u0435\u0442."
|
|
22746
22741
|
);
|
|
22747
|
-
return new
|
|
22742
|
+
return new TranslationPackageA(uri, configuration, sourceFiles);
|
|
22748
22743
|
default:
|
|
22749
22744
|
Debug.never(configuration.dialect);
|
|
22750
22745
|
}
|
|
@@ -22803,10 +22798,10 @@ var TextTranslationPackage;
|
|
|
22803
22798
|
return new TextTranslationPackageA(uri, configuration, sourceFiles);
|
|
22804
22799
|
case 1 /* ArtelM */:
|
|
22805
22800
|
Debug.assert(
|
|
22806
|
-
sourceFiles.every((f) => f.dialect ===
|
|
22801
|
+
sourceFiles.every((f) => f.dialect === 0 /* ArtelA */),
|
|
22807
22802
|
"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B \u0434\u043E\u043B\u0436\u043D\u044B \u0438\u043C\u0435\u0442\u044C \u0442\u0430\u043A\u043E\u0439 \u0436\u0435 \u0434\u0438\u0430\u043B\u0435\u043A\u0442, \u043A\u0430\u043A \u043F\u0430\u043A\u0435\u0442."
|
|
22808
22803
|
);
|
|
22809
|
-
return new
|
|
22804
|
+
return new TextTranslationPackageA(uri, configuration, sourceFiles);
|
|
22810
22805
|
default:
|
|
22811
22806
|
Debug.never(configuration.dialect);
|
|
22812
22807
|
}
|
|
@@ -25560,16 +25555,7 @@ var FSTreeCompilationLoader = class {
|
|
|
25560
25555
|
if (sourceFile?.version === file2.version && sourceFile.locale === locale && sourceFile.dialect === dialect) {
|
|
25561
25556
|
result = sourceFile.createCopy();
|
|
25562
25557
|
} else {
|
|
25563
|
-
|
|
25564
|
-
case 0 /* ArtelA */:
|
|
25565
|
-
result = SourceFileA.create(file2.text, file2.uri, file2.version);
|
|
25566
|
-
break;
|
|
25567
|
-
case 1 /* ArtelM */:
|
|
25568
|
-
result = SourceFileM.create(file2.text, file2.uri, file2.version);
|
|
25569
|
-
break;
|
|
25570
|
-
default:
|
|
25571
|
-
Debug.never(dialect);
|
|
25572
|
-
}
|
|
25558
|
+
result = SourceFile3.create(file2.text, file2.uri, file2.version, dialect);
|
|
25573
25559
|
}
|
|
25574
25560
|
return result;
|
|
25575
25561
|
}
|
|
@@ -26013,7 +25999,7 @@ var FunctionEntityDetails = class {
|
|
|
26013
25999
|
this.isTypeExtensionMemberAddedToPrototype = false;
|
|
26014
26000
|
this.isAbstract = false;
|
|
26015
26001
|
this.isStatic = false;
|
|
26016
|
-
this.originalFunctionEntityKind = 0 /*
|
|
26002
|
+
this.originalFunctionEntityKind = 0 /* Ordinary */;
|
|
26017
26003
|
this.isJavaScriptIteratorMethod = false;
|
|
26018
26004
|
this.hasObjectParameter = false;
|
|
26019
26005
|
}
|
|
@@ -28860,7 +28846,7 @@ var EntityMap = class _EntityMap {
|
|
|
28860
28846
|
}
|
|
28861
28847
|
if (result === void 0) {
|
|
28862
28848
|
const operatorKind = entity.subkind === "method" ? entity.getOperatorKind() : void 0;
|
|
28863
|
-
const functionEntityKind = operatorKind !== void 0 ? 4 /* Operator */ : 0 /*
|
|
28849
|
+
const functionEntityKind = operatorKind !== void 0 ? 4 /* Operator */ : 0 /* Ordinary */;
|
|
28864
28850
|
result = new MappedFunctionEntity(entity, functionEntityKind);
|
|
28865
28851
|
this.functions.set(entity, result);
|
|
28866
28852
|
result.name = this.getEntityNameText(entity);
|
|
@@ -29644,7 +29630,7 @@ var MappedVariableEntity = class {
|
|
|
29644
29630
|
var MappedFunctionEntity = class {
|
|
29645
29631
|
constructor(originalEntity, functionEntityKind) {
|
|
29646
29632
|
this.kind = "method";
|
|
29647
|
-
this.functionEntityKind = 0 /*
|
|
29633
|
+
this.functionEntityKind = 0 /* Ordinary */;
|
|
29648
29634
|
this.name = "";
|
|
29649
29635
|
this.parameters = [];
|
|
29650
29636
|
this.ifTypeMemberThenContainingType = void 0;
|
|
@@ -30346,7 +30332,7 @@ function fieldAccessorEntity(name, parameters, returnType, containingPackage, ov
|
|
|
30346
30332
|
}
|
|
30347
30333
|
function packageFunctionEntity(name, parameters, returnType, containingPackage, isAsync, isPackageConstructor, isPackageEntryPoint, isIntrinsic, hasObjectParameter) {
|
|
30348
30334
|
const result = new IntrinsicFunctionEntity(
|
|
30349
|
-
0 /*
|
|
30335
|
+
0 /* Ordinary */,
|
|
30350
30336
|
name,
|
|
30351
30337
|
parameters,
|
|
30352
30338
|
returnType,
|
|
@@ -32744,7 +32730,7 @@ var ImplicitImplementationLowering = class {
|
|
|
32744
32730
|
));
|
|
32745
32731
|
const computedNameInfo = implementingMethod.details.hasComputedName !== void 0 ? { ...implementingMethod.details.hasComputedName } : void 0;
|
|
32746
32732
|
const methodEntity = typeMemberFunctionEntity(
|
|
32747
|
-
0 /*
|
|
32733
|
+
0 /* Ordinary */,
|
|
32748
32734
|
implementingMethod.name,
|
|
32749
32735
|
parameterEntities,
|
|
32750
32736
|
implementingMethod.returnType,
|
|
@@ -32862,13 +32848,13 @@ var CompoundDeclarationsAndOperatorsLowering = class {
|
|
|
32862
32848
|
} else if (d.kind === 25 /* PackageVariableGetterDeclaration */) {
|
|
32863
32849
|
memberEntities.delete(d.variableEntity);
|
|
32864
32850
|
memberEntities.add(d.entity);
|
|
32865
|
-
d.entity.functionEntityKind = 0 /*
|
|
32851
|
+
d.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32866
32852
|
d = packageFunctionDeclaration(d.entity, [], d.body, false, d.sourceLocation);
|
|
32867
32853
|
return d;
|
|
32868
32854
|
} else if (d.kind === 26 /* PackageVariableSetterDeclaration */) {
|
|
32869
32855
|
memberEntities.delete(d.variableEntity);
|
|
32870
32856
|
memberEntities.add(d.entity);
|
|
32871
|
-
d.entity.functionEntityKind = 0 /*
|
|
32857
|
+
d.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32872
32858
|
const parameters = [parameterDeclaration(d.valueLocalVariableEntity, void 0, false)];
|
|
32873
32859
|
d = packageFunctionDeclaration(d.entity, parameters, d.body, false, d.sourceLocation);
|
|
32874
32860
|
return d;
|
|
@@ -32882,11 +32868,11 @@ var CompoundDeclarationsAndOperatorsLowering = class {
|
|
|
32882
32868
|
lowerPackageTypeDeclaration(declaration) {
|
|
32883
32869
|
declaration.members = declaration.members.map((m) => {
|
|
32884
32870
|
if (m.kind === 52 /* IndexedElementGetterDeclaration */) {
|
|
32885
|
-
m.entity.functionEntityKind = 0 /*
|
|
32871
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32886
32872
|
const method = methodDeclaration(m.entity, m.parameters, m.body, false, m.sourceLocation).withDecorators(m.decorators);
|
|
32887
32873
|
return method;
|
|
32888
32874
|
} else if (m.kind === 53 /* IndexedElementSetterDeclaration */) {
|
|
32889
|
-
m.entity.functionEntityKind = 0 /*
|
|
32875
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32890
32876
|
m.entity.parameters = m.entity.parameters.concat(m.valueLocalVariableEntity);
|
|
32891
32877
|
const parameters = Array.from(m.parameters);
|
|
32892
32878
|
parameters.push(parameterDeclaration(m.valueLocalVariableEntity, void 0, false));
|
|
@@ -32894,11 +32880,11 @@ var CompoundDeclarationsAndOperatorsLowering = class {
|
|
|
32894
32880
|
return method;
|
|
32895
32881
|
}
|
|
32896
32882
|
if (m.kind === 93 /* DereferencedVariableGetterDeclaration */) {
|
|
32897
|
-
m.entity.functionEntityKind = 0 /*
|
|
32883
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32898
32884
|
const method = methodDeclaration(m.entity, [], m.body, false, m.sourceLocation).withDecorators(m.decorators);
|
|
32899
32885
|
return method;
|
|
32900
32886
|
} else if (m.kind === 94 /* DereferencedVariableSetterDeclaration */) {
|
|
32901
|
-
m.entity.functionEntityKind = 0 /*
|
|
32887
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32902
32888
|
m.entity.parameters = [m.valueLocalVariableEntity];
|
|
32903
32889
|
const parameters = [parameterDeclaration(m.valueLocalVariableEntity, void 0, false)];
|
|
32904
32890
|
const method = methodDeclaration(m.entity, parameters, m.body, false, m.sourceLocation).withDecorators(m.decorators);
|
|
@@ -33134,7 +33120,7 @@ var AspectsLowering = class {
|
|
|
33134
33120
|
affectsDerivedMembers: false
|
|
33135
33121
|
};
|
|
33136
33122
|
const functionEntity = typeMemberFunctionEntity(
|
|
33137
|
-
0 /*
|
|
33123
|
+
0 /* Ordinary */,
|
|
33138
33124
|
targetFunctionEntity.name,
|
|
33139
33125
|
parameterEntities,
|
|
33140
33126
|
targetFunctionEntity.returnType,
|
|
@@ -33386,7 +33372,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33386
33372
|
Debug.assertNotNull(containingType);
|
|
33387
33373
|
const targetParameterEntity = this.createTargetParameter(containingType, node.entity.containingPackage);
|
|
33388
33374
|
node.entity.parameters = [targetParameterEntity, ...node.entity.parameters];
|
|
33389
|
-
node.entity.functionEntityKind = 0 /*
|
|
33375
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33390
33376
|
node.entity.details.isStatic = true;
|
|
33391
33377
|
node.entity.details.isAliasTypeOrExtensionMemberThatRequiresLowering = true;
|
|
33392
33378
|
const modifiers = node.modifiers;
|
|
@@ -33411,7 +33397,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33411
33397
|
node.entity.details.isStatic = true;
|
|
33412
33398
|
const targetParameterEntity = this.createTargetParameter(containingType, node.entity.containingPackage);
|
|
33413
33399
|
node.entity.parameters = [targetParameterEntity];
|
|
33414
|
-
node.entity.functionEntityKind = 0 /*
|
|
33400
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33415
33401
|
node.entity.details.isAliasTypeOrExtensionMemberThatRequiresLowering = true;
|
|
33416
33402
|
const parameterDeclarations = [parameterDeclaration(targetParameterEntity, void 0, false)];
|
|
33417
33403
|
this.lowerSubprogramBody(node.body, targetParameterEntity);
|
|
@@ -33424,7 +33410,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33424
33410
|
node.entity.details.isStatic = true;
|
|
33425
33411
|
const targetParameterEntity = this.createTargetParameter(containingType, node.entity.containingPackage);
|
|
33426
33412
|
node.entity.parameters = [targetParameterEntity, node.valueLocalVariableEntity];
|
|
33427
|
-
node.entity.functionEntityKind = 0 /*
|
|
33413
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33428
33414
|
node.entity.details.isAliasTypeOrExtensionMemberThatRequiresLowering = true;
|
|
33429
33415
|
const parameterDeclarations = [
|
|
33430
33416
|
parameterDeclaration(targetParameterEntity, void 0, false),
|
|
@@ -33434,7 +33420,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33434
33420
|
return methodDeclaration(node.entity, parameterDeclarations, node.body, false, node.sourceLocation).withDecorators(node.decorators);
|
|
33435
33421
|
}
|
|
33436
33422
|
lowerConstructorDeclaration(node) {
|
|
33437
|
-
node.entity.functionEntityKind = 0 /*
|
|
33423
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33438
33424
|
node.entity.details.isStatic = true;
|
|
33439
33425
|
this.lowerConstructorBody(node.body, node.entity);
|
|
33440
33426
|
return methodDeclaration(node.entity, node.parameters, node.body, false, node.sourceLocation).withDecorators(node.decorators);
|
|
@@ -33694,7 +33680,7 @@ var StructureConstructorsLowering = class {
|
|
|
33694
33680
|
lowerConstructorDeclaration(node, defaultConstructor) {
|
|
33695
33681
|
const containingType = node.entity.ifTypeMemberThenContainingType;
|
|
33696
33682
|
Debug.assertNotNull(containingType);
|
|
33697
|
-
node.entity.functionEntityKind = 0 /*
|
|
33683
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33698
33684
|
node.entity.details.isStatic = true;
|
|
33699
33685
|
const newThisVariable = localVariableEntity(
|
|
33700
33686
|
EmitPhaseName.ofStructureMethodNewThisVariable(node.entity.containingPackage.locale),
|
|
@@ -40195,7 +40181,7 @@ var TypeMemberRenamer = class {
|
|
|
40195
40181
|
} else if (entity.kind === "method") {
|
|
40196
40182
|
const functionEntityKind = entity.functionEntityKind;
|
|
40197
40183
|
switch (functionEntityKind) {
|
|
40198
|
-
case 0 /*
|
|
40184
|
+
case 0 /* Ordinary */:
|
|
40199
40185
|
case 1 /* GetterOrSetter */:
|
|
40200
40186
|
case 3 /* Destructor */:
|
|
40201
40187
|
case 4 /* Operator */:
|
|
@@ -47785,7 +47771,7 @@ var PackageAliasTypeDeclarationEntity = class {
|
|
|
47785
47771
|
return this.node.locale;
|
|
47786
47772
|
}
|
|
47787
47773
|
getDialect() {
|
|
47788
|
-
return
|
|
47774
|
+
return 0 /* ArtelA */;
|
|
47789
47775
|
}
|
|
47790
47776
|
getOriginalEntity() {
|
|
47791
47777
|
return this;
|
|
@@ -47863,7 +47849,7 @@ var ConstructorDeclarationEntity = class {
|
|
|
47863
47849
|
return this.node.locale;
|
|
47864
47850
|
}
|
|
47865
47851
|
getDialect() {
|
|
47866
|
-
return
|
|
47852
|
+
return 0 /* ArtelA */;
|
|
47867
47853
|
}
|
|
47868
47854
|
getOriginalEntity() {
|
|
47869
47855
|
return this;
|
|
@@ -48841,7 +48827,7 @@ var DereferenceOperatorDeclarationEntity = class {
|
|
|
48841
48827
|
return this.getterOrSetterDeclaration.locale;
|
|
48842
48828
|
}
|
|
48843
48829
|
getDialect() {
|
|
48844
|
-
return
|
|
48830
|
+
return 0 /* ArtelA */;
|
|
48845
48831
|
}
|
|
48846
48832
|
getOriginalEntity() {
|
|
48847
48833
|
return this;
|
|
@@ -48935,7 +48921,7 @@ var DestructorDeclarationEntity = class {
|
|
|
48935
48921
|
return this.node.locale;
|
|
48936
48922
|
}
|
|
48937
48923
|
getDialect() {
|
|
48938
|
-
return
|
|
48924
|
+
return 0 /* ArtelA */;
|
|
48939
48925
|
}
|
|
48940
48926
|
getOriginalEntity() {
|
|
48941
48927
|
return this;
|
|
@@ -50399,7 +50385,7 @@ var PackageFunctionDeclarationEntity = class {
|
|
|
50399
50385
|
return this.node.locale;
|
|
50400
50386
|
}
|
|
50401
50387
|
getDialect() {
|
|
50402
|
-
return
|
|
50388
|
+
return 0 /* ArtelA */;
|
|
50403
50389
|
}
|
|
50404
50390
|
getOriginalEntity() {
|
|
50405
50391
|
return this;
|
|
@@ -50520,7 +50506,7 @@ var MethodDeclarationEntity = class {
|
|
|
50520
50506
|
return this.node.locale;
|
|
50521
50507
|
}
|
|
50522
50508
|
getDialect() {
|
|
50523
|
-
return
|
|
50509
|
+
return 0 /* ArtelA */;
|
|
50524
50510
|
}
|
|
50525
50511
|
getOperatorKind() {
|
|
50526
50512
|
return this.operatorKind;
|
|
@@ -50637,7 +50623,7 @@ var NestedFunctionDeclarationEntity = class {
|
|
|
50637
50623
|
return this.node.locale;
|
|
50638
50624
|
}
|
|
50639
50625
|
getDialect() {
|
|
50640
|
-
return
|
|
50626
|
+
return 0 /* ArtelA */;
|
|
50641
50627
|
}
|
|
50642
50628
|
getOriginalEntity() {
|
|
50643
50629
|
return this;
|
|
@@ -50740,7 +50726,7 @@ var FunctionLiteralEntity = class {
|
|
|
50740
50726
|
return this.node.locale;
|
|
50741
50727
|
}
|
|
50742
50728
|
getDialect() {
|
|
50743
|
-
return
|
|
50729
|
+
return 0 /* ArtelA */;
|
|
50744
50730
|
}
|
|
50745
50731
|
getOriginalEntity() {
|
|
50746
50732
|
return this;
|
|
@@ -50876,7 +50862,7 @@ var FunctionBlockLiteralEntity = class {
|
|
|
50876
50862
|
return this.node.locale;
|
|
50877
50863
|
}
|
|
50878
50864
|
getDialect() {
|
|
50879
|
-
return
|
|
50865
|
+
return 0 /* ArtelA */;
|
|
50880
50866
|
}
|
|
50881
50867
|
getOriginalEntity() {
|
|
50882
50868
|
return this;
|
|
@@ -50978,7 +50964,7 @@ var AnonymousFunctionTypeDeclarationEntity = class {
|
|
|
50978
50964
|
return this.node.locale;
|
|
50979
50965
|
}
|
|
50980
50966
|
getDialect() {
|
|
50981
|
-
return
|
|
50967
|
+
return 0 /* ArtelA */;
|
|
50982
50968
|
}
|
|
50983
50969
|
getOriginalEntity() {
|
|
50984
50970
|
return this;
|
|
@@ -51028,7 +51014,7 @@ var PackageVariableGetterDeclarationEntity = class {
|
|
|
51028
51014
|
return this.node.locale;
|
|
51029
51015
|
}
|
|
51030
51016
|
getDialect() {
|
|
51031
|
-
return
|
|
51017
|
+
return 0 /* ArtelA */;
|
|
51032
51018
|
}
|
|
51033
51019
|
getOriginalEntity() {
|
|
51034
51020
|
return this;
|
|
@@ -51076,7 +51062,7 @@ var FieldGetterDeclarationEntity = class {
|
|
|
51076
51062
|
return this.node.locale;
|
|
51077
51063
|
}
|
|
51078
51064
|
getDialect() {
|
|
51079
|
-
return
|
|
51065
|
+
return 0 /* ArtelA */;
|
|
51080
51066
|
}
|
|
51081
51067
|
getOriginalEntity() {
|
|
51082
51068
|
return this;
|
|
@@ -51124,7 +51110,7 @@ var IndexedElementGetterDeclarationEntity = class {
|
|
|
51124
51110
|
return this.node.locale;
|
|
51125
51111
|
}
|
|
51126
51112
|
getDialect() {
|
|
51127
|
-
return
|
|
51113
|
+
return 0 /* ArtelA */;
|
|
51128
51114
|
}
|
|
51129
51115
|
getOriginalEntity() {
|
|
51130
51116
|
return this;
|
|
@@ -51172,7 +51158,7 @@ var DereferencedVariableGetterDeclarationEntity = class {
|
|
|
51172
51158
|
return this.node.locale;
|
|
51173
51159
|
}
|
|
51174
51160
|
getDialect() {
|
|
51175
|
-
return
|
|
51161
|
+
return 0 /* ArtelA */;
|
|
51176
51162
|
}
|
|
51177
51163
|
getOriginalEntity() {
|
|
51178
51164
|
return this;
|
|
@@ -51287,7 +51273,7 @@ var IndexerDeclarationEntity = class {
|
|
|
51287
51273
|
return this.getterOrSetterDeclaration.locale;
|
|
51288
51274
|
}
|
|
51289
51275
|
getDialect() {
|
|
51290
|
-
return
|
|
51276
|
+
return 0 /* ArtelA */;
|
|
51291
51277
|
}
|
|
51292
51278
|
getOriginalEntity() {
|
|
51293
51279
|
return this;
|
|
@@ -51347,7 +51333,7 @@ var AliasedPackageImportEntity = class {
|
|
|
51347
51333
|
return this.node.locale;
|
|
51348
51334
|
}
|
|
51349
51335
|
getDialect() {
|
|
51350
|
-
return
|
|
51336
|
+
return 0 /* ArtelA */;
|
|
51351
51337
|
}
|
|
51352
51338
|
getOriginalEntity() {
|
|
51353
51339
|
return this;
|
|
@@ -51377,7 +51363,7 @@ var SourcePackageEntity = class {
|
|
|
51377
51363
|
return this.package_.configuration.locale;
|
|
51378
51364
|
}
|
|
51379
51365
|
getDialect() {
|
|
51380
|
-
return
|
|
51366
|
+
return 0 /* ArtelA */;
|
|
51381
51367
|
}
|
|
51382
51368
|
getMembers() {
|
|
51383
51369
|
return this.members.getOrInsertWith(() => this.createPackageMembers());
|
|
@@ -51711,7 +51697,7 @@ var PackageReducedTypeDeclarationEntity = class {
|
|
|
51711
51697
|
return this.node.locale;
|
|
51712
51698
|
}
|
|
51713
51699
|
getDialect() {
|
|
51714
|
-
return
|
|
51700
|
+
return 0 /* ArtelA */;
|
|
51715
51701
|
}
|
|
51716
51702
|
getOriginalEntity() {
|
|
51717
51703
|
return this;
|
|
@@ -51844,7 +51830,7 @@ var PackageVariableSetterDeclarationEntity = class {
|
|
|
51844
51830
|
return this.node.locale;
|
|
51845
51831
|
}
|
|
51846
51832
|
getDialect() {
|
|
51847
|
-
return
|
|
51833
|
+
return 0 /* ArtelA */;
|
|
51848
51834
|
}
|
|
51849
51835
|
getOriginalEntity() {
|
|
51850
51836
|
return this;
|
|
@@ -51889,7 +51875,7 @@ var FieldSetterDeclarationEntity = class {
|
|
|
51889
51875
|
return this.node.locale;
|
|
51890
51876
|
}
|
|
51891
51877
|
getDialect() {
|
|
51892
|
-
return
|
|
51878
|
+
return 0 /* ArtelA */;
|
|
51893
51879
|
}
|
|
51894
51880
|
getOriginalEntity() {
|
|
51895
51881
|
return this;
|
|
@@ -51934,7 +51920,7 @@ var IndexedElementSetterDeclarationEntity = class {
|
|
|
51934
51920
|
return this.node.locale;
|
|
51935
51921
|
}
|
|
51936
51922
|
getDialect() {
|
|
51937
|
-
return
|
|
51923
|
+
return 0 /* ArtelA */;
|
|
51938
51924
|
}
|
|
51939
51925
|
getOriginalEntity() {
|
|
51940
51926
|
return this;
|
|
@@ -51979,7 +51965,7 @@ var DereferencedVariableSetterDeclarationEntity = class {
|
|
|
51979
51965
|
return this.node.locale;
|
|
51980
51966
|
}
|
|
51981
51967
|
getDialect() {
|
|
51982
|
-
return
|
|
51968
|
+
return 0 /* ArtelA */;
|
|
51983
51969
|
}
|
|
51984
51970
|
getOriginalEntity() {
|
|
51985
51971
|
return this;
|
|
@@ -52051,7 +52037,7 @@ var PackageStructuredTypeDeclarationEntity = class {
|
|
|
52051
52037
|
return this.node.locale;
|
|
52052
52038
|
}
|
|
52053
52039
|
getDialect() {
|
|
52054
|
-
return
|
|
52040
|
+
return 0 /* ArtelA */;
|
|
52055
52041
|
}
|
|
52056
52042
|
getOriginalEntity() {
|
|
52057
52043
|
return this;
|
|
@@ -52118,7 +52104,7 @@ var AnonymousStructuredTypeDeclarationEntity = class {
|
|
|
52118
52104
|
return this.node.locale;
|
|
52119
52105
|
}
|
|
52120
52106
|
getDialect() {
|
|
52121
|
-
return
|
|
52107
|
+
return 0 /* ArtelA */;
|
|
52122
52108
|
}
|
|
52123
52109
|
getOriginalEntity() {
|
|
52124
52110
|
return this;
|
|
@@ -52485,7 +52471,7 @@ var TextTranslationDeclarationEntity = class {
|
|
|
52485
52471
|
return this.node.locale;
|
|
52486
52472
|
}
|
|
52487
52473
|
getDialect() {
|
|
52488
|
-
return
|
|
52474
|
+
return 0 /* ArtelA */;
|
|
52489
52475
|
}
|
|
52490
52476
|
isHidden() {
|
|
52491
52477
|
return void 0;
|
|
@@ -52775,7 +52761,7 @@ var SourceTypeExtensionEntity = class {
|
|
|
52775
52761
|
return this.node.locale;
|
|
52776
52762
|
}
|
|
52777
52763
|
getDialect() {
|
|
52778
|
-
return
|
|
52764
|
+
return 0 /* ArtelA */;
|
|
52779
52765
|
}
|
|
52780
52766
|
getOriginalEntity() {
|
|
52781
52767
|
return this;
|
|
@@ -52945,7 +52931,7 @@ var SourceTypeParameterEntity = class {
|
|
|
52945
52931
|
return this.node.locale;
|
|
52946
52932
|
}
|
|
52947
52933
|
getDialect() {
|
|
52948
|
-
return
|
|
52934
|
+
return 0 /* ArtelA */;
|
|
52949
52935
|
}
|
|
52950
52936
|
getOriginalEntity() {
|
|
52951
52937
|
return this;
|
|
@@ -53066,7 +53052,7 @@ var PackageVariableDeclarationEntity = class {
|
|
|
53066
53052
|
return this.node.locale;
|
|
53067
53053
|
}
|
|
53068
53054
|
getDialect() {
|
|
53069
|
-
return
|
|
53055
|
+
return 0 /* ArtelA */;
|
|
53070
53056
|
}
|
|
53071
53057
|
getOriginalEntity() {
|
|
53072
53058
|
return this;
|
|
@@ -53147,7 +53133,7 @@ var ComputedPackageVariableDeclarationEntity = class {
|
|
|
53147
53133
|
return this.getterOrSetterDeclaration.locale;
|
|
53148
53134
|
}
|
|
53149
53135
|
getDialect() {
|
|
53150
|
-
return
|
|
53136
|
+
return 0 /* ArtelA */;
|
|
53151
53137
|
}
|
|
53152
53138
|
getOriginalEntity() {
|
|
53153
53139
|
return this;
|
|
@@ -53278,7 +53264,7 @@ var FieldDeclarationEntity = class {
|
|
|
53278
53264
|
return this.node.locale;
|
|
53279
53265
|
}
|
|
53280
53266
|
getDialect() {
|
|
53281
|
-
return
|
|
53267
|
+
return 0 /* ArtelA */;
|
|
53282
53268
|
}
|
|
53283
53269
|
getOriginalEntity() {
|
|
53284
53270
|
return this;
|
|
@@ -53417,7 +53403,7 @@ var ComputedFieldDeclarationEntity = class {
|
|
|
53417
53403
|
return this.getterOrSetterDeclaration.locale;
|
|
53418
53404
|
}
|
|
53419
53405
|
getDialect() {
|
|
53420
|
-
return
|
|
53406
|
+
return 0 /* ArtelA */;
|
|
53421
53407
|
}
|
|
53422
53408
|
getOriginalEntity() {
|
|
53423
53409
|
return this;
|
|
@@ -53538,7 +53524,7 @@ var VariantValueDeclarationEntity = class {
|
|
|
53538
53524
|
return this.node.locale;
|
|
53539
53525
|
}
|
|
53540
53526
|
getDialect() {
|
|
53541
|
-
return
|
|
53527
|
+
return 0 /* ArtelA */;
|
|
53542
53528
|
}
|
|
53543
53529
|
getOriginalEntity() {
|
|
53544
53530
|
return this;
|
|
@@ -53605,7 +53591,7 @@ var LocalVariableDeclarationEntity = class {
|
|
|
53605
53591
|
return this.node.locale;
|
|
53606
53592
|
}
|
|
53607
53593
|
getDialect() {
|
|
53608
|
-
return
|
|
53594
|
+
return 0 /* ArtelA */;
|
|
53609
53595
|
}
|
|
53610
53596
|
getOriginalEntity() {
|
|
53611
53597
|
return this;
|
|
@@ -53682,7 +53668,7 @@ var ForStatementElementVariableDeclarationEntity = class {
|
|
|
53682
53668
|
return this.node.locale;
|
|
53683
53669
|
}
|
|
53684
53670
|
getDialect() {
|
|
53685
|
-
return
|
|
53671
|
+
return 0 /* ArtelA */;
|
|
53686
53672
|
}
|
|
53687
53673
|
getOriginalEntity() {
|
|
53688
53674
|
return this;
|
|
@@ -53753,7 +53739,7 @@ var ForStatementIndexVariableDeclarationEntity = class {
|
|
|
53753
53739
|
return this.node.locale;
|
|
53754
53740
|
}
|
|
53755
53741
|
getDialect() {
|
|
53756
|
-
return
|
|
53742
|
+
return 0 /* ArtelA */;
|
|
53757
53743
|
}
|
|
53758
53744
|
getOriginalEntity() {
|
|
53759
53745
|
return this;
|
|
@@ -53811,7 +53797,7 @@ var ErrorVariableDeclarationEntity = class {
|
|
|
53811
53797
|
return this.node.locale;
|
|
53812
53798
|
}
|
|
53813
53799
|
getDialect() {
|
|
53814
|
-
return
|
|
53800
|
+
return 0 /* ArtelA */;
|
|
53815
53801
|
}
|
|
53816
53802
|
getOriginalEntity() {
|
|
53817
53803
|
return this;
|
|
@@ -53905,7 +53891,7 @@ var ParameterDeclarationEntity = class {
|
|
|
53905
53891
|
return this.node.locale;
|
|
53906
53892
|
}
|
|
53907
53893
|
getDialect() {
|
|
53908
|
-
return
|
|
53894
|
+
return 0 /* ArtelA */;
|
|
53909
53895
|
}
|
|
53910
53896
|
isObjectParameter() {
|
|
53911
53897
|
let result = (this.node.name.flags & 2048 /* ObjectParameterName */) !== 0;
|
|
@@ -54016,7 +54002,7 @@ var IndexParameterDeclarationEntity = class {
|
|
|
54016
54002
|
return this.getterOrSetterParameterDeclaration.locale;
|
|
54017
54003
|
}
|
|
54018
54004
|
getDialect() {
|
|
54019
|
-
return
|
|
54005
|
+
return 0 /* ArtelA */;
|
|
54020
54006
|
}
|
|
54021
54007
|
isObjectParameter() {
|
|
54022
54008
|
let result = (this.getterOrSetterParameterDeclaration.name.flags & 2048 /* ObjectParameterName */) !== 0;
|
|
@@ -54118,7 +54104,7 @@ var FunctionLiteralParameterDeclarationEntity = class {
|
|
|
54118
54104
|
return this.node.locale;
|
|
54119
54105
|
}
|
|
54120
54106
|
getDialect() {
|
|
54121
|
-
return
|
|
54107
|
+
return 0 /* ArtelA */;
|
|
54122
54108
|
}
|
|
54123
54109
|
getOriginalEntity() {
|
|
54124
54110
|
return this;
|
|
@@ -54195,7 +54181,7 @@ var TranslationTextTemplateParameterEntity = class {
|
|
|
54195
54181
|
return this.node.locale;
|
|
54196
54182
|
}
|
|
54197
54183
|
getDialect() {
|
|
54198
|
-
return
|
|
54184
|
+
return 0 /* ArtelA */;
|
|
54199
54185
|
}
|
|
54200
54186
|
isObjectParameter() {
|
|
54201
54187
|
return false;
|
|
@@ -54288,7 +54274,7 @@ var PackageVariantDeclarationEntity = class {
|
|
|
54288
54274
|
return this.node.locale;
|
|
54289
54275
|
}
|
|
54290
54276
|
getDialect() {
|
|
54291
|
-
return
|
|
54277
|
+
return 0 /* ArtelA */;
|
|
54292
54278
|
}
|
|
54293
54279
|
getOriginalEntity() {
|
|
54294
54280
|
return this;
|
|
@@ -62786,7 +62772,7 @@ var Analyzer = class {
|
|
|
62786
62772
|
if (isNodeA(node)) {
|
|
62787
62773
|
result = this.dialectA.semanticContext.containing(typeEntityDefinition.node).getDiagnosticArgumentFactory();
|
|
62788
62774
|
} else if (isNodeM(node)) {
|
|
62789
|
-
|
|
62775
|
+
result = new DiagnosticArgumentFactory(this, type.getLocale(), type.getDialect(), void 0);
|
|
62790
62776
|
} else {
|
|
62791
62777
|
Debug.never(node);
|
|
62792
62778
|
}
|
|
@@ -72411,10 +72397,10 @@ var Analyzer3 = class extends Analyzer {
|
|
|
72411
72397
|
return result;
|
|
72412
72398
|
}
|
|
72413
72399
|
checkIdentifierNameIsReserved(name, locale) {
|
|
72414
|
-
return reservedNameKindByNameKey
|
|
72400
|
+
return reservedNameKindByNameKey[locale].get(name.key);
|
|
72415
72401
|
}
|
|
72416
72402
|
getReservedName(reservedNameKind, locale) {
|
|
72417
|
-
return reservedNamesByLocale
|
|
72403
|
+
return reservedNamesByLocale[locale][reservedNameKind];
|
|
72418
72404
|
}
|
|
72419
72405
|
createNameFromIdentifier(node) {
|
|
72420
72406
|
let result = this.nameByIdentifierText.get(node.value);
|
|
@@ -3,7 +3,6 @@ import { PackageEntity, TypeEntity, TypeExtensionEntity, TypeOrExtensionEntity }
|
|
|
3
3
|
import { SourceFile } from '../project/SourceFile.js';
|
|
4
4
|
import * as types from '../types/index.js';
|
|
5
5
|
import { Analyzer } from './Analyzer.js';
|
|
6
|
-
import { SemanticContext } from './a/semantic-context/SemanticContext.js';
|
|
7
6
|
export declare class TypeMemberLookup {
|
|
8
7
|
private readonly analyzer;
|
|
9
8
|
private readonly typeOrExtension;
|
|
@@ -39,10 +38,13 @@ export declare class TypeMemberLookupContext {
|
|
|
39
38
|
readonly sourceFile: SourceFile | undefined;
|
|
40
39
|
readonly packageEntity: PackageEntity | undefined;
|
|
41
40
|
readonly locale: PackageLocale | undefined;
|
|
42
|
-
readonly typeExtensionLookup:
|
|
43
|
-
constructor(typeOrExtensionEntity: TypeOrExtensionEntity | undefined, sourceFile: SourceFile | undefined, packageEntity: PackageEntity | undefined, locale: PackageLocale | undefined, typeExtensionLookup:
|
|
41
|
+
readonly typeExtensionLookup: TypeExtensionLookup | undefined;
|
|
42
|
+
constructor(typeOrExtensionEntity: TypeOrExtensionEntity | undefined, sourceFile: SourceFile | undefined, packageEntity: PackageEntity | undefined, locale: PackageLocale | undefined, typeExtensionLookup: TypeExtensionLookup | undefined);
|
|
44
43
|
affectsAccessibility(): boolean;
|
|
45
44
|
}
|
|
45
|
+
export interface TypeExtensionLookup {
|
|
46
|
+
getTypeExtensionsByType(type: TypeEntity): readonly TypeExtensionEntity[];
|
|
47
|
+
}
|
|
46
48
|
export declare enum TypeMemberLookupOptions {
|
|
47
49
|
None = 0,
|
|
48
50
|
OnlyInstanceMembers = 1,
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { Lazy } from '../../common/Lazy.js';
|
|
2
1
|
import { Name } from '../../common/Name.js';
|
|
3
2
|
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
4
3
|
export declare const enum ReservedNameKind {
|
|
5
4
|
Result = 0,
|
|
6
5
|
Value = 1
|
|
7
6
|
}
|
|
8
|
-
export declare const reservedNamesByLocale:
|
|
9
|
-
[T in PackageLocale]: {
|
|
10
|
-
[T in ReservedNameKind]: Name;
|
|
7
|
+
export declare const reservedNamesByLocale: {
|
|
8
|
+
readonly [T in PackageLocale]: {
|
|
9
|
+
readonly [T in ReservedNameKind]: Name;
|
|
11
10
|
};
|
|
12
|
-
}
|
|
13
|
-
export declare const reservedNameKindByNameKey:
|
|
14
|
-
0: ReadonlyMap<string, ReservedNameKind>;
|
|
15
|
-
1: ReadonlyMap<string, ReservedNameKind>;
|
|
16
|
-
}>;
|
|
11
|
+
};
|
|
12
|
+
export declare const reservedNameKindByNameKey: { readonly [T in PackageLocale]: ReadonlyMap<string, ReservedNameKind>; };
|
|
@@ -5,11 +5,11 @@ import * as tree from '../../../tree/a/index.js';
|
|
|
5
5
|
import * as types from '../../../types/index.js';
|
|
6
6
|
import { DiagnosticArgumentFactory } from '../../DiagnosticArgumentFactory.js';
|
|
7
7
|
import { PackageMemberLookupContext } from '../../PackageMemberLookup.js';
|
|
8
|
-
import { TypeMemberLookupContext } from '../../TypeMemberLookup.js';
|
|
8
|
+
import { TypeExtensionLookup, TypeMemberLookupContext } from '../../TypeMemberLookup.js';
|
|
9
9
|
import { Analyzer } from '../Analyzer.js';
|
|
10
10
|
import { NamedDeclaration, TypeOrContainerWithTypes } from './Declarations.js';
|
|
11
11
|
import { SemanticContext } from './SemanticContext.js';
|
|
12
|
-
export declare abstract class SemanticContextBase {
|
|
12
|
+
export declare abstract class SemanticContextBase implements TypeExtensionLookup {
|
|
13
13
|
static readonly emptyTypesOrContainersWithTypes: readonly TypeOrContainerWithTypes[];
|
|
14
14
|
static readonly emptyNamedDeclarations: readonly NamedDeclaration[];
|
|
15
15
|
static readonly emptyTypeExtensions: readonly TypeExtensionEntity[];
|
|
@@ -42,11 +42,6 @@ export interface NestedFunctionEntity extends IFunctionEntity {
|
|
|
42
42
|
getName(): Name;
|
|
43
43
|
getOriginalEntity(): NestedFunctionEntity;
|
|
44
44
|
}
|
|
45
|
-
export interface NestedFunctionEntity extends IFunctionEntity {
|
|
46
|
-
readonly subkind: 'nested';
|
|
47
|
-
getName(): Name;
|
|
48
|
-
getOriginalEntity(): NestedFunctionEntity;
|
|
49
|
-
}
|
|
50
45
|
export interface AnonymousFunctionEntity extends IFunctionEntity {
|
|
51
46
|
readonly subkind: 'anonymous';
|
|
52
47
|
getOriginalEntity(): AnonymousFunctionEntity;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MaybeLazy, Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
2
2
|
import * as types from '../../types/index.js';
|
|
3
3
|
import { TypeWithMembersOrExtensionEntity } from '../Entity.js';
|
|
4
4
|
import { EntityHidingLevel } from '../EntityHiding.js';
|
|
@@ -16,7 +16,7 @@ export declare class IntrinsicPackageVariableEntity implements PackageVariableEn
|
|
|
16
16
|
private readonly setter;
|
|
17
17
|
readonly kind = EntityKind.Variable;
|
|
18
18
|
readonly subkind = "package";
|
|
19
|
-
constructor(name: Name, type:
|
|
19
|
+
constructor(name: Name, type: MaybeLazy<types.Type>, containingPackage: PackageEntity, isSpecial_: SpecialVariableEntityInfo | undefined, isHidden_: EntityHidingLevel | undefined, getter: GetterEntity | undefined, setter: SetterEntity | undefined);
|
|
20
20
|
getName(): Name;
|
|
21
21
|
getType(): types.Type;
|
|
22
22
|
getDefinition(): VariableEntityDefinition;
|
|
@@ -5,11 +5,12 @@ import * as treeM from '../tree/m/index.js';
|
|
|
5
5
|
import { SourcePackage, SourcePackageA, SourcePackageM } from './SourcePackage.js';
|
|
6
6
|
import { TextFile } from './TextFile.js';
|
|
7
7
|
export declare abstract class BaseSourceFile extends TextFile {
|
|
8
|
+
protected readonly parserDialect: PackageDialect;
|
|
8
9
|
readonly name: string;
|
|
9
10
|
private package_;
|
|
10
11
|
get package(): SourcePackage;
|
|
11
12
|
get locale(): PackageLocale;
|
|
12
|
-
protected constructor(text: string, uri: Uri, version: number);
|
|
13
|
+
protected constructor(text: string, uri: Uri, version: number, parserDialect: PackageDialect);
|
|
13
14
|
abstract getSyntaxNode(): tree.SourceFile;
|
|
14
15
|
abstract parse(): tree.SourceFile;
|
|
15
16
|
abstract getSyntaxNodeIfParsed(): tree.SourceFile | undefined;
|
|
@@ -23,22 +24,22 @@ export declare class SourceFileA extends BaseSourceFile {
|
|
|
23
24
|
readonly dialect = PackageDialect.ArtelA;
|
|
24
25
|
private readonly node;
|
|
25
26
|
get package(): SourcePackageA;
|
|
26
|
-
protected constructor(text: string, uri: Uri, version: number, node: treeA.SourceFile | undefined);
|
|
27
|
+
protected constructor(text: string, uri: Uri, version: number, node: treeA.SourceFile | undefined, parserDialect: PackageDialect);
|
|
27
28
|
getSyntaxNode(): treeA.SourceFile;
|
|
28
29
|
parse(): treeA.SourceFile;
|
|
29
30
|
getSyntaxNodeIfParsed(): treeA.SourceFile | undefined;
|
|
30
|
-
static create(text: string, uri: Uri, version: number): SourceFileA;
|
|
31
|
+
static create(text: string, uri: Uri, version: number, parserDialect?: PackageDialect): SourceFileA;
|
|
31
32
|
createCopy(): SourceFileA;
|
|
32
33
|
}
|
|
33
34
|
export declare class SourceFileM extends BaseSourceFile {
|
|
34
35
|
readonly dialect = PackageDialect.ArtelM;
|
|
35
36
|
private readonly node;
|
|
36
37
|
get package(): SourcePackageM;
|
|
37
|
-
protected constructor(text: string, uri: Uri, version: number, node: treeM.SourceFile | undefined);
|
|
38
|
+
protected constructor(text: string, uri: Uri, version: number, node: treeM.SourceFile | undefined, parserDialect: PackageDialect);
|
|
38
39
|
getSyntaxNode(): treeM.SourceFile;
|
|
39
40
|
parse(): treeM.SourceFile;
|
|
40
41
|
getSyntaxNodeIfParsed(): treeM.SourceFile | undefined;
|
|
41
|
-
static create(text: string, uri: Uri, version: number): SourceFileM;
|
|
42
|
+
static create(text: string, uri: Uri, version: number, parserDialect?: PackageDialect): SourceFileM;
|
|
42
43
|
createCopy(): SourceFileM;
|
|
43
44
|
}
|
|
44
45
|
export type SourceFile = SourceFileA | SourceFileM;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PackageLocale, Range } from '../../common/index.js';
|
|
2
2
|
import { Node, SourceFile } from './Nodes.js';
|
|
3
3
|
import { Token } from './Token.js';
|
|
4
4
|
export declare abstract class BaseNode {
|
|
@@ -13,7 +13,6 @@ export declare abstract class BaseNode {
|
|
|
13
13
|
get parent(): Node | undefined;
|
|
14
14
|
get sourceFile(): SourceFile;
|
|
15
15
|
get locale(): PackageLocale;
|
|
16
|
-
get dialect(): PackageDialect;
|
|
17
16
|
get rangeWithTrivia(): Range;
|
|
18
17
|
get rangeWithoutTrivia(): Range;
|
|
19
18
|
get debuggerDisplay(): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PackageLocale, Query, Range } from '../../common/index.js';
|
|
2
2
|
import { ParserDiagnostic } from '../../parser/ParserDiagnostic.js';
|
|
3
3
|
import { BaseNode } from './BaseNode.js';
|
|
4
4
|
import { KeywordFlags } from './KeywordFlags.js';
|
|
@@ -22,15 +22,13 @@ export declare class SourceFile extends BaseNode {
|
|
|
22
22
|
];
|
|
23
23
|
readonly diagnostics: readonly ParserDiagnostic[];
|
|
24
24
|
private readonly locale_;
|
|
25
|
-
private readonly dialect_;
|
|
26
25
|
get locale(): PackageLocale;
|
|
27
|
-
get dialect(): PackageDialect;
|
|
28
26
|
get parent(): undefined;
|
|
29
27
|
get packageImportDirectiveList(): PackageImportDirectiveList;
|
|
30
28
|
get declarationList(): PackageMemberDeclarationList;
|
|
31
29
|
get endOfFileToken(): Token<TokenKind.EndOfFile>;
|
|
32
30
|
protected get thisAsNode(): Node;
|
|
33
|
-
constructor(packageImportDirectiveList: PackageImportDirectiveList, declarationList: PackageMemberDeclarationList, endOfFileToken: Token<TokenKind.EndOfFile>, locale: PackageLocale,
|
|
31
|
+
constructor(packageImportDirectiveList: PackageImportDirectiveList, declarationList: PackageMemberDeclarationList, endOfFileToken: Token<TokenKind.EndOfFile>, locale: PackageLocale, diagnostics: readonly ParserDiagnostic[], rangeWithTrivia: Range | undefined);
|
|
34
32
|
}
|
|
35
33
|
export declare class Keyword<TKind extends KeywordKind = KeywordKind> extends BaseNode {
|
|
36
34
|
readonly kind = NodeKind.Keyword;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artel/artc",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.26021",
|
|
4
4
|
"description": "Артель Компилятор | Artel Compiler",
|
|
5
5
|
"author": "Nezaboodka Team <contact@nezaboodka.com>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/types": "7.27.3",
|
|
45
45
|
"@vscode/l10n": "0.0.18",
|
|
46
46
|
"jsonc-parser": "3.3.1",
|
|
47
|
-
"reactronic": "^0.96.
|
|
47
|
+
"reactronic": "^0.96.26015",
|
|
48
48
|
"typescript": "5.9.3",
|
|
49
49
|
"vscode-json-languageservice": "5.4.2",
|
|
50
50
|
"vscode-languageserver": "9.0.1",
|