@artel/artc 0.6.25230 → 0.6.25231

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 (29) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +6 -2
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +12 -12
  5. package/build/{chunk-3LHZOXTJ.js → chunk-BG2YEIQO.js} +2 -2
  6. package/build/{chunk-ZUIGWNN5.js → chunk-S7CAJWX2.js} +1676 -396
  7. package/build/{chunk-WS3ILL2L.js → chunk-VQ5GGKF7.js} +1 -1
  8. package/build/types/analysis/Analyzer.d.ts +4 -3
  9. package/build/types/analysis/DiagnosticCollector.d.ts +1 -0
  10. package/build/types/analysis/FindModifier.d.ts +1 -0
  11. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +1 -1
  12. package/build/types/analysis/ModifierFlags.d.ts +6 -1
  13. package/build/types/analysis/ModifierValidator.d.ts +83 -0
  14. package/build/types/analysis/TypeMemberConflictsValidator.d.ts +22 -0
  15. package/build/types/common/ArrayUtils.d.ts +8 -0
  16. package/build/types/common/index.d.ts +1 -0
  17. package/build/types/diagnostic/DiagnosticCode.d.ts +57 -29
  18. package/build/types/entities/DereferenceOperatorEntity.d.ts +3 -0
  19. package/build/types/entities/IndexerEntity.d.ts +3 -0
  20. package/build/types/entities/StructuredTypeEntity.d.ts +13 -13
  21. package/build/types/entities/VariableEntity.d.ts +4 -0
  22. package/build/types/entities/index.d.ts +2 -1
  23. package/build/types/project/SourcePackage.d.ts +7 -7
  24. package/build/types/services/NodeSemanticInfo.d.ts +1 -1
  25. package/build/types/tree/green/Nodes.d.ts +2 -2
  26. package/build/types/tree/red/Nodes.d.ts +1 -1
  27. package/build/types/ts-interop/Entities.d.ts +5 -5
  28. package/build/types/types/StructuredType.d.ts +2 -0
  29. 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-BG2YEIQO.js";
5
+ import "./chunk-VQ5GGKF7.js";
6
6
  import {
7
7
  __async
8
- } from "./chunk-ZUIGWNN5.js";
8
+ } from "./chunk-S7CAJWX2.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-VQ5GGKF7.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,
@@ -284,6 +285,7 @@ import {
284
285
  keywordKindByOperatorKind,
285
286
  localeToString,
286
287
  locales,
288
+ modifierToModifierFlag,
287
289
  operatorKindsBySyntacticalOperatorKind,
288
290
  parseBinaryInteger,
289
291
  parseCyrillicHexInteger,
@@ -312,7 +314,7 @@ import {
312
314
  withoutQuotes,
313
315
  withoutTemplateQuotes,
314
316
  yieldExecution
315
- } from "../chunk-ZUIGWNN5.js";
317
+ } from "../chunk-S7CAJWX2.js";
316
318
  export {
317
319
  AccessKind,
318
320
  AccessedFunctionValueParameter,
@@ -329,6 +331,7 @@ export {
329
331
  AnonymousFunctionTypeDeclarationEntity,
330
332
  AnonymousStructuredTypeDeclarationEntity,
331
333
  AnonymousVariantTypeDeclarationEntity,
334
+ ArrayUtils,
332
335
  ArtelSourceAndConfigurationFileExtensionSet,
333
336
  ArtelSourceFileExtensionSet,
334
337
  ArtelSourceFileExtensions,
@@ -596,6 +599,7 @@ export {
596
599
  keywordKindByOperatorKind,
597
600
  localeToString,
598
601
  locales,
602
+ modifierToModifierFlag,
599
603
  operatorKindsBySyntacticalOperatorKind,
600
604
  PackageContent_exports as packageContent,
601
605
  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-BG2YEIQO.js";
10
+ import "../chunk-VQ5GGKF7.js";
11
+ import "../chunk-S7CAJWX2.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-S7CAJWX2.js";
186
186
 
187
187
  // source/services/CustomCommand.ts
188
188
  import * as ls from "vscode-languageserver";
@@ -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
  ));
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Compiler
3
- } from "./chunk-WS3ILL2L.js";
3
+ } from "./chunk-VQ5GGKF7.js";
4
4
  import {
5
5
  ArtelVersion,
6
6
  Cached,
@@ -14,7 +14,7 @@ import {
14
14
  __async,
15
15
  performanceMeasurementStageNames,
16
16
  performanceMeasurementStages
17
- } from "./chunk-ZUIGWNN5.js";
17
+ } from "./chunk-S7CAJWX2.js";
18
18
 
19
19
  // source/executor/FileSystemUri.ts
20
20
  import { platform } from "os";