@artel/artc 0.6.25230 → 0.6.25232

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.
Files changed (36) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +12 -2
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +13 -13
  5. package/build/{chunk-ZUIGWNN5.js → chunk-E72KEKQV.js} +10116 -8220
  6. package/build/{chunk-3LHZOXTJ.js → chunk-QDDCF32T.js} +2 -2
  7. package/build/{chunk-WS3ILL2L.js → chunk-S7ZUX7EX.js} +1 -1
  8. package/build/types/analysis/Analyzer.d.ts +66 -28
  9. package/build/types/analysis/BaseExpressionMeaning.d.ts +6 -3
  10. package/build/types/analysis/DiagnosticCollector.d.ts +4 -0
  11. package/build/types/analysis/FindModifier.d.ts +1 -0
  12. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +1 -1
  13. package/build/types/analysis/ModifierFlags.d.ts +9 -4
  14. package/build/types/analysis/ModifierValidator.d.ts +84 -0
  15. package/build/types/analysis/TypeMemberConflictsValidator.d.ts +22 -0
  16. package/build/types/analysis/TypeMemberImplementationValidator.d.ts +13 -0
  17. package/build/types/common/ArrayUtils.d.ts +13 -0
  18. package/build/types/common/index.d.ts +1 -0
  19. package/build/types/diagnostic/DiagnosticCode.d.ts +92 -51
  20. package/build/types/entities/DereferenceOperatorEntity.d.ts +3 -1
  21. package/build/types/entities/FunctionEntity.d.ts +0 -1
  22. package/build/types/entities/IndexerEntity.d.ts +3 -1
  23. package/build/types/entities/OperatorEntity.d.ts +0 -1
  24. package/build/types/entities/StructuredTypeEntity.d.ts +13 -13
  25. package/build/types/entities/TypeEntityMembers.d.ts +5 -3
  26. package/build/types/entities/VariableEntity.d.ts +4 -2
  27. package/build/types/entities/index.d.ts +9 -14
  28. package/build/types/project/SourcePackage.d.ts +7 -7
  29. package/build/types/services/DisplayService.d.ts +1 -0
  30. package/build/types/services/NodeSemanticInfo.d.ts +1 -1
  31. package/build/types/tree/green/Nodes.d.ts +2 -2
  32. package/build/types/tree/red/Nodes.d.ts +1 -1
  33. package/build/types/ts-interop/Entities.d.ts +5 -5
  34. package/build/types/types/StructuredType.d.ts +2 -0
  35. package/build/types/types/TypeMembers.d.ts +4 -4
  36. package/package.json +1 -1
package/build/Cli.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CommandLineCompiler
4
- } from "./chunk-3LHZOXTJ.js";
5
- import "./chunk-WS3ILL2L.js";
4
+ } from "./chunk-QDDCF32T.js";
5
+ import "./chunk-S7ZUX7EX.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-ZUIGWNN5.js";
8
+ } from "./chunk-E72KEKQV.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-WS3ILL2L.js";
3
+ } from "../chunk-S7ZUX7EX.js";
4
4
  import {
5
5
  AccessKind,
6
6
  AccessedFunctionValueParameter,
@@ -17,6 +17,7 @@ import {
17
17
  AnonymousFunctionTypeDeclarationEntity,
18
18
  AnonymousStructuredTypeDeclarationEntity,
19
19
  AnonymousVariantTypeDeclarationEntity,
20
+ ArrayUtils,
20
21
  ArtelSourceAndConfigurationFileExtensionSet,
21
22
  ArtelSourceFileExtensionSet,
22
23
  ArtelSourceFileExtensions,
@@ -144,6 +145,7 @@ import {
144
145
  OperatorDeclarationEntity,
145
146
  OperatorKind,
146
147
  Option,
148
+ OverriddenAndShadowedMembers,
147
149
  PackageAliasTypeDeclarationEntity,
148
150
  PackageConfigurationEn_exports,
149
151
  PackageConfigurationRu_exports,
@@ -183,6 +185,8 @@ import {
183
185
  ResultSpecialVariableEntityInfo,
184
186
  Scanner,
185
187
  SearchName,
188
+ ShadowReason,
189
+ ShadowedMemberInfo,
186
190
  SourceFile2 as SourceFile,
187
191
  SourceFileMembers,
188
192
  SourceMapMode,
@@ -284,6 +288,7 @@ import {
284
288
  keywordKindByOperatorKind,
285
289
  localeToString,
286
290
  locales,
291
+ modifierToModifierFlag,
287
292
  operatorKindsBySyntacticalOperatorKind,
288
293
  parseBinaryInteger,
289
294
  parseCyrillicHexInteger,
@@ -312,7 +317,7 @@ import {
312
317
  withoutQuotes,
313
318
  withoutTemplateQuotes,
314
319
  yieldExecution
315
- } from "../chunk-ZUIGWNN5.js";
320
+ } from "../chunk-E72KEKQV.js";
316
321
  export {
317
322
  AccessKind,
318
323
  AccessedFunctionValueParameter,
@@ -329,6 +334,7 @@ export {
329
334
  AnonymousFunctionTypeDeclarationEntity,
330
335
  AnonymousStructuredTypeDeclarationEntity,
331
336
  AnonymousVariantTypeDeclarationEntity,
337
+ ArrayUtils,
332
338
  ArtelSourceAndConfigurationFileExtensionSet,
333
339
  ArtelSourceFileExtensionSet,
334
340
  ArtelSourceFileExtensions,
@@ -456,6 +462,7 @@ export {
456
462
  OperatorDeclarationEntity,
457
463
  OperatorKind,
458
464
  Option,
465
+ OverriddenAndShadowedMembers,
459
466
  PackageAliasTypeDeclarationEntity,
460
467
  PackageDialect,
461
468
  PackageFromDtsConfig,
@@ -493,6 +500,8 @@ export {
493
500
  Scanner,
494
501
  TokenKind as ScannerTokenKind,
495
502
  SearchName,
503
+ ShadowReason,
504
+ ShadowedMemberInfo,
496
505
  SourceFile,
497
506
  SourceFileMembers,
498
507
  SourceMapMode,
@@ -596,6 +605,7 @@ export {
596
605
  keywordKindByOperatorKind,
597
606
  localeToString,
598
607
  locales,
608
+ modifierToModifierFlag,
599
609
  operatorKindsBySyntacticalOperatorKind,
600
610
  PackageContent_exports as packageContent,
601
611
  parseBinaryInteger,
@@ -6,9 +6,9 @@ import {
6
6
  PhysicalFileSystem,
7
7
  PhysicalTypeScriptLibrariesProvider,
8
8
  PrintingDiagnosticAcceptor
9
- } from "../chunk-3LHZOXTJ.js";
10
- import "../chunk-WS3ILL2L.js";
11
- import "../chunk-ZUIGWNN5.js";
9
+ } from "../chunk-QDDCF32T.js";
10
+ import "../chunk-S7ZUX7EX.js";
11
+ import "../chunk-E72KEKQV.js";
12
12
  export {
13
13
  CommandLineCompiler,
14
14
  FileSystemUri,
@@ -182,7 +182,7 @@ import {
182
182
  unwrapParenthesizedExpressions,
183
183
  visitChildren,
184
184
  yieldExecution
185
- } from "../chunk-ZUIGWNN5.js";
185
+ } from "../chunk-E72KEKQV.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -2726,7 +2726,7 @@ var CodeActionsService = class {
2726
2726
  }
2727
2727
  const result = new Array();
2728
2728
  const diagnosticCodeSet = new Set(diagnosticCodes);
2729
- if (diagnosticCodeSet.has(277 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(278 /* TheFollowingDeclarationAreNotTranslated0And1More */)) {
2729
+ if (diagnosticCodeSet.has(278 /* TheFollowingDeclarationsAreNotTranslated0 */) || diagnosticCodeSet.has(279 /* TheFollowingDeclarationAreNotTranslated0And1More */)) {
2730
2730
  const data = { onlyTypeMembers: false };
2731
2731
  result.push(CodeAction.unresolved(
2732
2732
  "\u0421\u0433\u0435\u043D\u0435\u0440\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u044E\u0449\u0438\u0435 \u043F\u0435\u0440\u0435\u0432\u043E\u0434\u044B.",
@@ -3226,9 +3226,9 @@ var CompletionService = class {
3226
3226
  return new PackageImportCompletionContext([], void 0);
3227
3227
  }
3228
3228
  if (tokenOrKeyword.isToken(26 /* Dot */) && tokenOrKeyword.parent.kind === 78 /* MemberAccessExpression */) {
3229
- const propertyAccess = tokenOrKeyword.parent;
3229
+ const memberAccess = tokenOrKeyword.parent;
3230
3230
  {
3231
- const info = this._analyzer.checkExpressionDenotesPackageNameSegment(propertyAccess.expression);
3231
+ const info = this._analyzer.checkExpressionDenotesPackageNameSegment(memberAccess.expression);
3232
3232
  if (info !== void 0) {
3233
3233
  let lookup;
3234
3234
  if (info.packageTreeNode.package !== void 0) {
@@ -3242,7 +3242,7 @@ var CompletionService = class {
3242
3242
  }
3243
3243
  }
3244
3244
  {
3245
- const info = this._analyzer.checkExpressionDenotesPackageAlias(propertyAccess.expression);
3245
+ const info = this._analyzer.checkExpressionDenotesPackageAlias(memberAccess.expression);
3246
3246
  if (info !== void 0) {
3247
3247
  const package_ = info.packageAlias.getPackage();
3248
3248
  if (package_ !== void 0) {
@@ -3253,9 +3253,9 @@ var CompletionService = class {
3253
3253
  return { kind: "none" };
3254
3254
  }
3255
3255
  }
3256
- const type = this._analyzer.type.ofExpression(propertyAccess.expression);
3256
+ const type = this._analyzer.type.ofExpression(memberAccess.expression);
3257
3257
  const localizationContext = semanticContext.getLocalizationContext();
3258
- const isStaticAccess = this._analyzer.checkExpressionDenotesType(propertyAccess.expression) !== void 0;
3258
+ const isStaticAccess = this._analyzer.checkExpressionDenotesType(memberAccess.expression) !== void 0;
3259
3259
  const hidingMatcher = semanticContext.getHidingMatcher();
3260
3260
  return new TypeMemberCompletionContext(
3261
3261
  type,
@@ -5519,7 +5519,7 @@ var SyntaxContextFactory = class {
5519
5519
  if (tokenOrKeyword.isToken(43 /* OpenBrace */) && tokenOrKeyword.parent.kind === 32 /* TypeMemberDeclarationBlock */) {
5520
5520
  return true;
5521
5521
  }
5522
- if (tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 44 /* TypeMemberGroupDeclaration */) {
5522
+ if (tokenOrKeyword.isToken(20 /* CloseBrace */) && tokenOrKeyword.parent.kind === 32 /* TypeMemberDeclarationBlock */ && tokenOrKeyword.parent.parent.kind === 44 /* TypeMemberGroupDeclaration */) {
5523
5523
  return true;
5524
5524
  }
5525
5525
  if (SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 54 /* FieldDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 55 /* FieldGetterDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(tokenOrKeyword, 56 /* FieldSetterDeclaration */) || SyntaxContextUtils.tokenOrKeywordIsValidEndOfNode(
@@ -6034,7 +6034,7 @@ var NodeSemanticInfoService = class {
6034
6034
  result = void 0;
6035
6035
  break;
6036
6036
  case 78 /* MemberAccessExpression */:
6037
- result = this.ofProperty(analyzer, parent, options6);
6037
+ result = this.ofMember(analyzer, parent, options6);
6038
6038
  break;
6039
6039
  case 52 /* MethodDeclaration */:
6040
6040
  result = new DefinitionNodeSemanticInfo(analyzer.entity.ofMethodDeclaration(parent));
@@ -6067,7 +6067,7 @@ var NodeSemanticInfoService = class {
6067
6067
  }
6068
6068
  return result;
6069
6069
  }
6070
- static ofProperty(analyzer, node, options6) {
6070
+ static ofMember(analyzer, node, options6) {
6071
6071
  let result;
6072
6072
  const meaning = analyzer.resolveMemberAccessExpression(node).meaning;
6073
6073
  switch (meaning.kind) {
@@ -8719,7 +8719,7 @@ var SemanticTokensService = class {
8719
8719
  if (entity.subkind === "field" && entity.isVariant()) {
8720
8720
  result.push(
8721
8721
  new SemanticToken(
8722
- node.propertyName.rangeWithoutTrivia,
8722
+ node.memberName.rangeWithoutTrivia,
8723
8723
  3 /* Variant */,
8724
8724
  new SemanticTokenModifiers().makeConst()
8725
8725
  )
@@ -8742,7 +8742,7 @@ var SemanticTokensService = class {
8742
8742
  const func = suitableFunctions[0];
8743
8743
  result.push(
8744
8744
  new SemanticToken(
8745
- node.propertyName.rangeWithoutTrivia,
8745
+ node.memberName.rangeWithoutTrivia,
8746
8746
  this.getSemanticTokenKindForFunctionEntity(func.getEntity()),
8747
8747
  new SemanticTokenModifiers().setCapitalized(this.isCapitalizedName(func.getName()))
8748
8748
  )
@@ -8750,7 +8750,7 @@ var SemanticTokensService = class {
8750
8750
  }
8751
8751
  if (meaning.kind === "operator-access") {
8752
8752
  result.push(new SemanticToken(
8753
- node.propertyName.rangeWithoutTrivia,
8753
+ node.memberName.rangeWithoutTrivia,
8754
8754
  7 /* Operator */,
8755
8755
  new SemanticTokenModifiers()
8756
8756
  ));