@artel/artc 0.6.26020 → 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-TRWZ4MA5.js → chunk-BUGHCVWW.js} +2 -2
- package/build/{chunk-PPQK5MBM.js → chunk-DWHH53A7.js} +83 -92
- package/build/{chunk-BVAJ2ZQZ.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/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
|
);
|
|
@@ -20284,7 +20275,7 @@ var IntrinsicPackageVariableEntity = class {
|
|
|
20284
20275
|
return this.name;
|
|
20285
20276
|
}
|
|
20286
20277
|
getType() {
|
|
20287
|
-
return
|
|
20278
|
+
return MaybeLazy.getValue(this.type);
|
|
20288
20279
|
}
|
|
20289
20280
|
getDefinition() {
|
|
20290
20281
|
return { kind: 1 /* Intrinsic */ };
|
|
@@ -26008,7 +25999,7 @@ var FunctionEntityDetails = class {
|
|
|
26008
25999
|
this.isTypeExtensionMemberAddedToPrototype = false;
|
|
26009
26000
|
this.isAbstract = false;
|
|
26010
26001
|
this.isStatic = false;
|
|
26011
|
-
this.originalFunctionEntityKind = 0 /*
|
|
26002
|
+
this.originalFunctionEntityKind = 0 /* Ordinary */;
|
|
26012
26003
|
this.isJavaScriptIteratorMethod = false;
|
|
26013
26004
|
this.hasObjectParameter = false;
|
|
26014
26005
|
}
|
|
@@ -28855,7 +28846,7 @@ var EntityMap = class _EntityMap {
|
|
|
28855
28846
|
}
|
|
28856
28847
|
if (result === void 0) {
|
|
28857
28848
|
const operatorKind = entity.subkind === "method" ? entity.getOperatorKind() : void 0;
|
|
28858
|
-
const functionEntityKind = operatorKind !== void 0 ? 4 /* Operator */ : 0 /*
|
|
28849
|
+
const functionEntityKind = operatorKind !== void 0 ? 4 /* Operator */ : 0 /* Ordinary */;
|
|
28859
28850
|
result = new MappedFunctionEntity(entity, functionEntityKind);
|
|
28860
28851
|
this.functions.set(entity, result);
|
|
28861
28852
|
result.name = this.getEntityNameText(entity);
|
|
@@ -29639,7 +29630,7 @@ var MappedVariableEntity = class {
|
|
|
29639
29630
|
var MappedFunctionEntity = class {
|
|
29640
29631
|
constructor(originalEntity, functionEntityKind) {
|
|
29641
29632
|
this.kind = "method";
|
|
29642
|
-
this.functionEntityKind = 0 /*
|
|
29633
|
+
this.functionEntityKind = 0 /* Ordinary */;
|
|
29643
29634
|
this.name = "";
|
|
29644
29635
|
this.parameters = [];
|
|
29645
29636
|
this.ifTypeMemberThenContainingType = void 0;
|
|
@@ -30341,7 +30332,7 @@ function fieldAccessorEntity(name, parameters, returnType, containingPackage, ov
|
|
|
30341
30332
|
}
|
|
30342
30333
|
function packageFunctionEntity(name, parameters, returnType, containingPackage, isAsync, isPackageConstructor, isPackageEntryPoint, isIntrinsic, hasObjectParameter) {
|
|
30343
30334
|
const result = new IntrinsicFunctionEntity(
|
|
30344
|
-
0 /*
|
|
30335
|
+
0 /* Ordinary */,
|
|
30345
30336
|
name,
|
|
30346
30337
|
parameters,
|
|
30347
30338
|
returnType,
|
|
@@ -32739,7 +32730,7 @@ var ImplicitImplementationLowering = class {
|
|
|
32739
32730
|
));
|
|
32740
32731
|
const computedNameInfo = implementingMethod.details.hasComputedName !== void 0 ? { ...implementingMethod.details.hasComputedName } : void 0;
|
|
32741
32732
|
const methodEntity = typeMemberFunctionEntity(
|
|
32742
|
-
0 /*
|
|
32733
|
+
0 /* Ordinary */,
|
|
32743
32734
|
implementingMethod.name,
|
|
32744
32735
|
parameterEntities,
|
|
32745
32736
|
implementingMethod.returnType,
|
|
@@ -32857,13 +32848,13 @@ var CompoundDeclarationsAndOperatorsLowering = class {
|
|
|
32857
32848
|
} else if (d.kind === 25 /* PackageVariableGetterDeclaration */) {
|
|
32858
32849
|
memberEntities.delete(d.variableEntity);
|
|
32859
32850
|
memberEntities.add(d.entity);
|
|
32860
|
-
d.entity.functionEntityKind = 0 /*
|
|
32851
|
+
d.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32861
32852
|
d = packageFunctionDeclaration(d.entity, [], d.body, false, d.sourceLocation);
|
|
32862
32853
|
return d;
|
|
32863
32854
|
} else if (d.kind === 26 /* PackageVariableSetterDeclaration */) {
|
|
32864
32855
|
memberEntities.delete(d.variableEntity);
|
|
32865
32856
|
memberEntities.add(d.entity);
|
|
32866
|
-
d.entity.functionEntityKind = 0 /*
|
|
32857
|
+
d.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32867
32858
|
const parameters = [parameterDeclaration(d.valueLocalVariableEntity, void 0, false)];
|
|
32868
32859
|
d = packageFunctionDeclaration(d.entity, parameters, d.body, false, d.sourceLocation);
|
|
32869
32860
|
return d;
|
|
@@ -32877,11 +32868,11 @@ var CompoundDeclarationsAndOperatorsLowering = class {
|
|
|
32877
32868
|
lowerPackageTypeDeclaration(declaration) {
|
|
32878
32869
|
declaration.members = declaration.members.map((m) => {
|
|
32879
32870
|
if (m.kind === 52 /* IndexedElementGetterDeclaration */) {
|
|
32880
|
-
m.entity.functionEntityKind = 0 /*
|
|
32871
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32881
32872
|
const method = methodDeclaration(m.entity, m.parameters, m.body, false, m.sourceLocation).withDecorators(m.decorators);
|
|
32882
32873
|
return method;
|
|
32883
32874
|
} else if (m.kind === 53 /* IndexedElementSetterDeclaration */) {
|
|
32884
|
-
m.entity.functionEntityKind = 0 /*
|
|
32875
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32885
32876
|
m.entity.parameters = m.entity.parameters.concat(m.valueLocalVariableEntity);
|
|
32886
32877
|
const parameters = Array.from(m.parameters);
|
|
32887
32878
|
parameters.push(parameterDeclaration(m.valueLocalVariableEntity, void 0, false));
|
|
@@ -32889,11 +32880,11 @@ var CompoundDeclarationsAndOperatorsLowering = class {
|
|
|
32889
32880
|
return method;
|
|
32890
32881
|
}
|
|
32891
32882
|
if (m.kind === 93 /* DereferencedVariableGetterDeclaration */) {
|
|
32892
|
-
m.entity.functionEntityKind = 0 /*
|
|
32883
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32893
32884
|
const method = methodDeclaration(m.entity, [], m.body, false, m.sourceLocation).withDecorators(m.decorators);
|
|
32894
32885
|
return method;
|
|
32895
32886
|
} else if (m.kind === 94 /* DereferencedVariableSetterDeclaration */) {
|
|
32896
|
-
m.entity.functionEntityKind = 0 /*
|
|
32887
|
+
m.entity.functionEntityKind = 0 /* Ordinary */;
|
|
32897
32888
|
m.entity.parameters = [m.valueLocalVariableEntity];
|
|
32898
32889
|
const parameters = [parameterDeclaration(m.valueLocalVariableEntity, void 0, false)];
|
|
32899
32890
|
const method = methodDeclaration(m.entity, parameters, m.body, false, m.sourceLocation).withDecorators(m.decorators);
|
|
@@ -33129,7 +33120,7 @@ var AspectsLowering = class {
|
|
|
33129
33120
|
affectsDerivedMembers: false
|
|
33130
33121
|
};
|
|
33131
33122
|
const functionEntity = typeMemberFunctionEntity(
|
|
33132
|
-
0 /*
|
|
33123
|
+
0 /* Ordinary */,
|
|
33133
33124
|
targetFunctionEntity.name,
|
|
33134
33125
|
parameterEntities,
|
|
33135
33126
|
targetFunctionEntity.returnType,
|
|
@@ -33381,7 +33372,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33381
33372
|
Debug.assertNotNull(containingType);
|
|
33382
33373
|
const targetParameterEntity = this.createTargetParameter(containingType, node.entity.containingPackage);
|
|
33383
33374
|
node.entity.parameters = [targetParameterEntity, ...node.entity.parameters];
|
|
33384
|
-
node.entity.functionEntityKind = 0 /*
|
|
33375
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33385
33376
|
node.entity.details.isStatic = true;
|
|
33386
33377
|
node.entity.details.isAliasTypeOrExtensionMemberThatRequiresLowering = true;
|
|
33387
33378
|
const modifiers = node.modifiers;
|
|
@@ -33406,7 +33397,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33406
33397
|
node.entity.details.isStatic = true;
|
|
33407
33398
|
const targetParameterEntity = this.createTargetParameter(containingType, node.entity.containingPackage);
|
|
33408
33399
|
node.entity.parameters = [targetParameterEntity];
|
|
33409
|
-
node.entity.functionEntityKind = 0 /*
|
|
33400
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33410
33401
|
node.entity.details.isAliasTypeOrExtensionMemberThatRequiresLowering = true;
|
|
33411
33402
|
const parameterDeclarations = [parameterDeclaration(targetParameterEntity, void 0, false)];
|
|
33412
33403
|
this.lowerSubprogramBody(node.body, targetParameterEntity);
|
|
@@ -33419,7 +33410,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33419
33410
|
node.entity.details.isStatic = true;
|
|
33420
33411
|
const targetParameterEntity = this.createTargetParameter(containingType, node.entity.containingPackage);
|
|
33421
33412
|
node.entity.parameters = [targetParameterEntity, node.valueLocalVariableEntity];
|
|
33422
|
-
node.entity.functionEntityKind = 0 /*
|
|
33413
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33423
33414
|
node.entity.details.isAliasTypeOrExtensionMemberThatRequiresLowering = true;
|
|
33424
33415
|
const parameterDeclarations = [
|
|
33425
33416
|
parameterDeclaration(targetParameterEntity, void 0, false),
|
|
@@ -33429,7 +33420,7 @@ var AliasTypeAndExtensionLowering = class {
|
|
|
33429
33420
|
return methodDeclaration(node.entity, parameterDeclarations, node.body, false, node.sourceLocation).withDecorators(node.decorators);
|
|
33430
33421
|
}
|
|
33431
33422
|
lowerConstructorDeclaration(node) {
|
|
33432
|
-
node.entity.functionEntityKind = 0 /*
|
|
33423
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33433
33424
|
node.entity.details.isStatic = true;
|
|
33434
33425
|
this.lowerConstructorBody(node.body, node.entity);
|
|
33435
33426
|
return methodDeclaration(node.entity, node.parameters, node.body, false, node.sourceLocation).withDecorators(node.decorators);
|
|
@@ -33689,7 +33680,7 @@ var StructureConstructorsLowering = class {
|
|
|
33689
33680
|
lowerConstructorDeclaration(node, defaultConstructor) {
|
|
33690
33681
|
const containingType = node.entity.ifTypeMemberThenContainingType;
|
|
33691
33682
|
Debug.assertNotNull(containingType);
|
|
33692
|
-
node.entity.functionEntityKind = 0 /*
|
|
33683
|
+
node.entity.functionEntityKind = 0 /* Ordinary */;
|
|
33693
33684
|
node.entity.details.isStatic = true;
|
|
33694
33685
|
const newThisVariable = localVariableEntity(
|
|
33695
33686
|
EmitPhaseName.ofStructureMethodNewThisVariable(node.entity.containingPackage.locale),
|
|
@@ -40190,7 +40181,7 @@ var TypeMemberRenamer = class {
|
|
|
40190
40181
|
} else if (entity.kind === "method") {
|
|
40191
40182
|
const functionEntityKind = entity.functionEntityKind;
|
|
40192
40183
|
switch (functionEntityKind) {
|
|
40193
|
-
case 0 /*
|
|
40184
|
+
case 0 /* Ordinary */:
|
|
40194
40185
|
case 1 /* GetterOrSetter */:
|
|
40195
40186
|
case 3 /* Destructor */:
|
|
40196
40187
|
case 4 /* Operator */:
|
|
@@ -47780,7 +47771,7 @@ var PackageAliasTypeDeclarationEntity = class {
|
|
|
47780
47771
|
return this.node.locale;
|
|
47781
47772
|
}
|
|
47782
47773
|
getDialect() {
|
|
47783
|
-
return
|
|
47774
|
+
return 0 /* ArtelA */;
|
|
47784
47775
|
}
|
|
47785
47776
|
getOriginalEntity() {
|
|
47786
47777
|
return this;
|
|
@@ -47858,7 +47849,7 @@ var ConstructorDeclarationEntity = class {
|
|
|
47858
47849
|
return this.node.locale;
|
|
47859
47850
|
}
|
|
47860
47851
|
getDialect() {
|
|
47861
|
-
return
|
|
47852
|
+
return 0 /* ArtelA */;
|
|
47862
47853
|
}
|
|
47863
47854
|
getOriginalEntity() {
|
|
47864
47855
|
return this;
|
|
@@ -48836,7 +48827,7 @@ var DereferenceOperatorDeclarationEntity = class {
|
|
|
48836
48827
|
return this.getterOrSetterDeclaration.locale;
|
|
48837
48828
|
}
|
|
48838
48829
|
getDialect() {
|
|
48839
|
-
return
|
|
48830
|
+
return 0 /* ArtelA */;
|
|
48840
48831
|
}
|
|
48841
48832
|
getOriginalEntity() {
|
|
48842
48833
|
return this;
|
|
@@ -48930,7 +48921,7 @@ var DestructorDeclarationEntity = class {
|
|
|
48930
48921
|
return this.node.locale;
|
|
48931
48922
|
}
|
|
48932
48923
|
getDialect() {
|
|
48933
|
-
return
|
|
48924
|
+
return 0 /* ArtelA */;
|
|
48934
48925
|
}
|
|
48935
48926
|
getOriginalEntity() {
|
|
48936
48927
|
return this;
|
|
@@ -50394,7 +50385,7 @@ var PackageFunctionDeclarationEntity = class {
|
|
|
50394
50385
|
return this.node.locale;
|
|
50395
50386
|
}
|
|
50396
50387
|
getDialect() {
|
|
50397
|
-
return
|
|
50388
|
+
return 0 /* ArtelA */;
|
|
50398
50389
|
}
|
|
50399
50390
|
getOriginalEntity() {
|
|
50400
50391
|
return this;
|
|
@@ -50515,7 +50506,7 @@ var MethodDeclarationEntity = class {
|
|
|
50515
50506
|
return this.node.locale;
|
|
50516
50507
|
}
|
|
50517
50508
|
getDialect() {
|
|
50518
|
-
return
|
|
50509
|
+
return 0 /* ArtelA */;
|
|
50519
50510
|
}
|
|
50520
50511
|
getOperatorKind() {
|
|
50521
50512
|
return this.operatorKind;
|
|
@@ -50632,7 +50623,7 @@ var NestedFunctionDeclarationEntity = class {
|
|
|
50632
50623
|
return this.node.locale;
|
|
50633
50624
|
}
|
|
50634
50625
|
getDialect() {
|
|
50635
|
-
return
|
|
50626
|
+
return 0 /* ArtelA */;
|
|
50636
50627
|
}
|
|
50637
50628
|
getOriginalEntity() {
|
|
50638
50629
|
return this;
|
|
@@ -50735,7 +50726,7 @@ var FunctionLiteralEntity = class {
|
|
|
50735
50726
|
return this.node.locale;
|
|
50736
50727
|
}
|
|
50737
50728
|
getDialect() {
|
|
50738
|
-
return
|
|
50729
|
+
return 0 /* ArtelA */;
|
|
50739
50730
|
}
|
|
50740
50731
|
getOriginalEntity() {
|
|
50741
50732
|
return this;
|
|
@@ -50871,7 +50862,7 @@ var FunctionBlockLiteralEntity = class {
|
|
|
50871
50862
|
return this.node.locale;
|
|
50872
50863
|
}
|
|
50873
50864
|
getDialect() {
|
|
50874
|
-
return
|
|
50865
|
+
return 0 /* ArtelA */;
|
|
50875
50866
|
}
|
|
50876
50867
|
getOriginalEntity() {
|
|
50877
50868
|
return this;
|
|
@@ -50973,7 +50964,7 @@ var AnonymousFunctionTypeDeclarationEntity = class {
|
|
|
50973
50964
|
return this.node.locale;
|
|
50974
50965
|
}
|
|
50975
50966
|
getDialect() {
|
|
50976
|
-
return
|
|
50967
|
+
return 0 /* ArtelA */;
|
|
50977
50968
|
}
|
|
50978
50969
|
getOriginalEntity() {
|
|
50979
50970
|
return this;
|
|
@@ -51023,7 +51014,7 @@ var PackageVariableGetterDeclarationEntity = class {
|
|
|
51023
51014
|
return this.node.locale;
|
|
51024
51015
|
}
|
|
51025
51016
|
getDialect() {
|
|
51026
|
-
return
|
|
51017
|
+
return 0 /* ArtelA */;
|
|
51027
51018
|
}
|
|
51028
51019
|
getOriginalEntity() {
|
|
51029
51020
|
return this;
|
|
@@ -51071,7 +51062,7 @@ var FieldGetterDeclarationEntity = class {
|
|
|
51071
51062
|
return this.node.locale;
|
|
51072
51063
|
}
|
|
51073
51064
|
getDialect() {
|
|
51074
|
-
return
|
|
51065
|
+
return 0 /* ArtelA */;
|
|
51075
51066
|
}
|
|
51076
51067
|
getOriginalEntity() {
|
|
51077
51068
|
return this;
|
|
@@ -51119,7 +51110,7 @@ var IndexedElementGetterDeclarationEntity = class {
|
|
|
51119
51110
|
return this.node.locale;
|
|
51120
51111
|
}
|
|
51121
51112
|
getDialect() {
|
|
51122
|
-
return
|
|
51113
|
+
return 0 /* ArtelA */;
|
|
51123
51114
|
}
|
|
51124
51115
|
getOriginalEntity() {
|
|
51125
51116
|
return this;
|
|
@@ -51167,7 +51158,7 @@ var DereferencedVariableGetterDeclarationEntity = class {
|
|
|
51167
51158
|
return this.node.locale;
|
|
51168
51159
|
}
|
|
51169
51160
|
getDialect() {
|
|
51170
|
-
return
|
|
51161
|
+
return 0 /* ArtelA */;
|
|
51171
51162
|
}
|
|
51172
51163
|
getOriginalEntity() {
|
|
51173
51164
|
return this;
|
|
@@ -51282,7 +51273,7 @@ var IndexerDeclarationEntity = class {
|
|
|
51282
51273
|
return this.getterOrSetterDeclaration.locale;
|
|
51283
51274
|
}
|
|
51284
51275
|
getDialect() {
|
|
51285
|
-
return
|
|
51276
|
+
return 0 /* ArtelA */;
|
|
51286
51277
|
}
|
|
51287
51278
|
getOriginalEntity() {
|
|
51288
51279
|
return this;
|
|
@@ -51342,7 +51333,7 @@ var AliasedPackageImportEntity = class {
|
|
|
51342
51333
|
return this.node.locale;
|
|
51343
51334
|
}
|
|
51344
51335
|
getDialect() {
|
|
51345
|
-
return
|
|
51336
|
+
return 0 /* ArtelA */;
|
|
51346
51337
|
}
|
|
51347
51338
|
getOriginalEntity() {
|
|
51348
51339
|
return this;
|
|
@@ -51372,7 +51363,7 @@ var SourcePackageEntity = class {
|
|
|
51372
51363
|
return this.package_.configuration.locale;
|
|
51373
51364
|
}
|
|
51374
51365
|
getDialect() {
|
|
51375
|
-
return
|
|
51366
|
+
return 0 /* ArtelA */;
|
|
51376
51367
|
}
|
|
51377
51368
|
getMembers() {
|
|
51378
51369
|
return this.members.getOrInsertWith(() => this.createPackageMembers());
|
|
@@ -51706,7 +51697,7 @@ var PackageReducedTypeDeclarationEntity = class {
|
|
|
51706
51697
|
return this.node.locale;
|
|
51707
51698
|
}
|
|
51708
51699
|
getDialect() {
|
|
51709
|
-
return
|
|
51700
|
+
return 0 /* ArtelA */;
|
|
51710
51701
|
}
|
|
51711
51702
|
getOriginalEntity() {
|
|
51712
51703
|
return this;
|
|
@@ -51839,7 +51830,7 @@ var PackageVariableSetterDeclarationEntity = class {
|
|
|
51839
51830
|
return this.node.locale;
|
|
51840
51831
|
}
|
|
51841
51832
|
getDialect() {
|
|
51842
|
-
return
|
|
51833
|
+
return 0 /* ArtelA */;
|
|
51843
51834
|
}
|
|
51844
51835
|
getOriginalEntity() {
|
|
51845
51836
|
return this;
|
|
@@ -51884,7 +51875,7 @@ var FieldSetterDeclarationEntity = class {
|
|
|
51884
51875
|
return this.node.locale;
|
|
51885
51876
|
}
|
|
51886
51877
|
getDialect() {
|
|
51887
|
-
return
|
|
51878
|
+
return 0 /* ArtelA */;
|
|
51888
51879
|
}
|
|
51889
51880
|
getOriginalEntity() {
|
|
51890
51881
|
return this;
|
|
@@ -51929,7 +51920,7 @@ var IndexedElementSetterDeclarationEntity = class {
|
|
|
51929
51920
|
return this.node.locale;
|
|
51930
51921
|
}
|
|
51931
51922
|
getDialect() {
|
|
51932
|
-
return
|
|
51923
|
+
return 0 /* ArtelA */;
|
|
51933
51924
|
}
|
|
51934
51925
|
getOriginalEntity() {
|
|
51935
51926
|
return this;
|
|
@@ -51974,7 +51965,7 @@ var DereferencedVariableSetterDeclarationEntity = class {
|
|
|
51974
51965
|
return this.node.locale;
|
|
51975
51966
|
}
|
|
51976
51967
|
getDialect() {
|
|
51977
|
-
return
|
|
51968
|
+
return 0 /* ArtelA */;
|
|
51978
51969
|
}
|
|
51979
51970
|
getOriginalEntity() {
|
|
51980
51971
|
return this;
|
|
@@ -52046,7 +52037,7 @@ var PackageStructuredTypeDeclarationEntity = class {
|
|
|
52046
52037
|
return this.node.locale;
|
|
52047
52038
|
}
|
|
52048
52039
|
getDialect() {
|
|
52049
|
-
return
|
|
52040
|
+
return 0 /* ArtelA */;
|
|
52050
52041
|
}
|
|
52051
52042
|
getOriginalEntity() {
|
|
52052
52043
|
return this;
|
|
@@ -52113,7 +52104,7 @@ var AnonymousStructuredTypeDeclarationEntity = class {
|
|
|
52113
52104
|
return this.node.locale;
|
|
52114
52105
|
}
|
|
52115
52106
|
getDialect() {
|
|
52116
|
-
return
|
|
52107
|
+
return 0 /* ArtelA */;
|
|
52117
52108
|
}
|
|
52118
52109
|
getOriginalEntity() {
|
|
52119
52110
|
return this;
|
|
@@ -52480,7 +52471,7 @@ var TextTranslationDeclarationEntity = class {
|
|
|
52480
52471
|
return this.node.locale;
|
|
52481
52472
|
}
|
|
52482
52473
|
getDialect() {
|
|
52483
|
-
return
|
|
52474
|
+
return 0 /* ArtelA */;
|
|
52484
52475
|
}
|
|
52485
52476
|
isHidden() {
|
|
52486
52477
|
return void 0;
|
|
@@ -52770,7 +52761,7 @@ var SourceTypeExtensionEntity = class {
|
|
|
52770
52761
|
return this.node.locale;
|
|
52771
52762
|
}
|
|
52772
52763
|
getDialect() {
|
|
52773
|
-
return
|
|
52764
|
+
return 0 /* ArtelA */;
|
|
52774
52765
|
}
|
|
52775
52766
|
getOriginalEntity() {
|
|
52776
52767
|
return this;
|
|
@@ -52940,7 +52931,7 @@ var SourceTypeParameterEntity = class {
|
|
|
52940
52931
|
return this.node.locale;
|
|
52941
52932
|
}
|
|
52942
52933
|
getDialect() {
|
|
52943
|
-
return
|
|
52934
|
+
return 0 /* ArtelA */;
|
|
52944
52935
|
}
|
|
52945
52936
|
getOriginalEntity() {
|
|
52946
52937
|
return this;
|
|
@@ -53061,7 +53052,7 @@ var PackageVariableDeclarationEntity = class {
|
|
|
53061
53052
|
return this.node.locale;
|
|
53062
53053
|
}
|
|
53063
53054
|
getDialect() {
|
|
53064
|
-
return
|
|
53055
|
+
return 0 /* ArtelA */;
|
|
53065
53056
|
}
|
|
53066
53057
|
getOriginalEntity() {
|
|
53067
53058
|
return this;
|
|
@@ -53142,7 +53133,7 @@ var ComputedPackageVariableDeclarationEntity = class {
|
|
|
53142
53133
|
return this.getterOrSetterDeclaration.locale;
|
|
53143
53134
|
}
|
|
53144
53135
|
getDialect() {
|
|
53145
|
-
return
|
|
53136
|
+
return 0 /* ArtelA */;
|
|
53146
53137
|
}
|
|
53147
53138
|
getOriginalEntity() {
|
|
53148
53139
|
return this;
|
|
@@ -53273,7 +53264,7 @@ var FieldDeclarationEntity = class {
|
|
|
53273
53264
|
return this.node.locale;
|
|
53274
53265
|
}
|
|
53275
53266
|
getDialect() {
|
|
53276
|
-
return
|
|
53267
|
+
return 0 /* ArtelA */;
|
|
53277
53268
|
}
|
|
53278
53269
|
getOriginalEntity() {
|
|
53279
53270
|
return this;
|
|
@@ -53412,7 +53403,7 @@ var ComputedFieldDeclarationEntity = class {
|
|
|
53412
53403
|
return this.getterOrSetterDeclaration.locale;
|
|
53413
53404
|
}
|
|
53414
53405
|
getDialect() {
|
|
53415
|
-
return
|
|
53406
|
+
return 0 /* ArtelA */;
|
|
53416
53407
|
}
|
|
53417
53408
|
getOriginalEntity() {
|
|
53418
53409
|
return this;
|
|
@@ -53533,7 +53524,7 @@ var VariantValueDeclarationEntity = class {
|
|
|
53533
53524
|
return this.node.locale;
|
|
53534
53525
|
}
|
|
53535
53526
|
getDialect() {
|
|
53536
|
-
return
|
|
53527
|
+
return 0 /* ArtelA */;
|
|
53537
53528
|
}
|
|
53538
53529
|
getOriginalEntity() {
|
|
53539
53530
|
return this;
|
|
@@ -53600,7 +53591,7 @@ var LocalVariableDeclarationEntity = class {
|
|
|
53600
53591
|
return this.node.locale;
|
|
53601
53592
|
}
|
|
53602
53593
|
getDialect() {
|
|
53603
|
-
return
|
|
53594
|
+
return 0 /* ArtelA */;
|
|
53604
53595
|
}
|
|
53605
53596
|
getOriginalEntity() {
|
|
53606
53597
|
return this;
|
|
@@ -53677,7 +53668,7 @@ var ForStatementElementVariableDeclarationEntity = class {
|
|
|
53677
53668
|
return this.node.locale;
|
|
53678
53669
|
}
|
|
53679
53670
|
getDialect() {
|
|
53680
|
-
return
|
|
53671
|
+
return 0 /* ArtelA */;
|
|
53681
53672
|
}
|
|
53682
53673
|
getOriginalEntity() {
|
|
53683
53674
|
return this;
|
|
@@ -53748,7 +53739,7 @@ var ForStatementIndexVariableDeclarationEntity = class {
|
|
|
53748
53739
|
return this.node.locale;
|
|
53749
53740
|
}
|
|
53750
53741
|
getDialect() {
|
|
53751
|
-
return
|
|
53742
|
+
return 0 /* ArtelA */;
|
|
53752
53743
|
}
|
|
53753
53744
|
getOriginalEntity() {
|
|
53754
53745
|
return this;
|
|
@@ -53806,7 +53797,7 @@ var ErrorVariableDeclarationEntity = class {
|
|
|
53806
53797
|
return this.node.locale;
|
|
53807
53798
|
}
|
|
53808
53799
|
getDialect() {
|
|
53809
|
-
return
|
|
53800
|
+
return 0 /* ArtelA */;
|
|
53810
53801
|
}
|
|
53811
53802
|
getOriginalEntity() {
|
|
53812
53803
|
return this;
|
|
@@ -53900,7 +53891,7 @@ var ParameterDeclarationEntity = class {
|
|
|
53900
53891
|
return this.node.locale;
|
|
53901
53892
|
}
|
|
53902
53893
|
getDialect() {
|
|
53903
|
-
return
|
|
53894
|
+
return 0 /* ArtelA */;
|
|
53904
53895
|
}
|
|
53905
53896
|
isObjectParameter() {
|
|
53906
53897
|
let result = (this.node.name.flags & 2048 /* ObjectParameterName */) !== 0;
|
|
@@ -54011,7 +54002,7 @@ var IndexParameterDeclarationEntity = class {
|
|
|
54011
54002
|
return this.getterOrSetterParameterDeclaration.locale;
|
|
54012
54003
|
}
|
|
54013
54004
|
getDialect() {
|
|
54014
|
-
return
|
|
54005
|
+
return 0 /* ArtelA */;
|
|
54015
54006
|
}
|
|
54016
54007
|
isObjectParameter() {
|
|
54017
54008
|
let result = (this.getterOrSetterParameterDeclaration.name.flags & 2048 /* ObjectParameterName */) !== 0;
|
|
@@ -54113,7 +54104,7 @@ var FunctionLiteralParameterDeclarationEntity = class {
|
|
|
54113
54104
|
return this.node.locale;
|
|
54114
54105
|
}
|
|
54115
54106
|
getDialect() {
|
|
54116
|
-
return
|
|
54107
|
+
return 0 /* ArtelA */;
|
|
54117
54108
|
}
|
|
54118
54109
|
getOriginalEntity() {
|
|
54119
54110
|
return this;
|
|
@@ -54190,7 +54181,7 @@ var TranslationTextTemplateParameterEntity = class {
|
|
|
54190
54181
|
return this.node.locale;
|
|
54191
54182
|
}
|
|
54192
54183
|
getDialect() {
|
|
54193
|
-
return
|
|
54184
|
+
return 0 /* ArtelA */;
|
|
54194
54185
|
}
|
|
54195
54186
|
isObjectParameter() {
|
|
54196
54187
|
return false;
|
|
@@ -54283,7 +54274,7 @@ var PackageVariantDeclarationEntity = class {
|
|
|
54283
54274
|
return this.node.locale;
|
|
54284
54275
|
}
|
|
54285
54276
|
getDialect() {
|
|
54286
|
-
return
|
|
54277
|
+
return 0 /* ArtelA */;
|
|
54287
54278
|
}
|
|
54288
54279
|
getOriginalEntity() {
|
|
54289
54280
|
return this;
|
|
@@ -72406,10 +72397,10 @@ var Analyzer3 = class extends Analyzer {
|
|
|
72406
72397
|
return result;
|
|
72407
72398
|
}
|
|
72408
72399
|
checkIdentifierNameIsReserved(name, locale) {
|
|
72409
|
-
return reservedNameKindByNameKey
|
|
72400
|
+
return reservedNameKindByNameKey[locale].get(name.key);
|
|
72410
72401
|
}
|
|
72411
72402
|
getReservedName(reservedNameKind, locale) {
|
|
72412
|
-
return reservedNamesByLocale
|
|
72403
|
+
return reservedNamesByLocale[locale][reservedNameKind];
|
|
72413
72404
|
}
|
|
72414
72405
|
createNameFromIdentifier(node) {
|
|
72415
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;
|
|
@@ -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",
|