@artel/artc 0.6.25245 → 0.6.25246

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 (52) hide show
  1. package/build/Cli.js +3 -3
  2. package/build/api/Api.js +8 -2
  3. package/build/api/ApiNodeJS.js +3 -3
  4. package/build/api/ApiServices.js +153 -151
  5. package/build/{chunk-TVZEHLXD.js → chunk-BGCXIMTW.js} +2 -2
  6. package/build/{chunk-FVBS6MPY.js → chunk-CNAUD5P6.js} +1 -1
  7. package/build/{chunk-T7WG4Z7I.js → chunk-RIWU6SF4.js} +3592 -2690
  8. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +0 -1
  9. package/build/types/analysis/Analyzer.d.ts +28 -23
  10. package/build/types/analysis/BaseExpressionMeaning.d.ts +9 -4
  11. package/build/types/analysis/BaseMemberConflictsValidator.d.ts +3 -5
  12. package/build/types/analysis/CallExpressionMeaning.d.ts +1 -0
  13. package/build/types/analysis/DiagnosticArgumentFactory.d.ts +18 -0
  14. package/build/types/analysis/DiagnosticCollector.d.ts +2 -3
  15. package/build/types/analysis/DisplayableEntity.d.ts +46 -0
  16. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +3 -3
  17. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +3 -3
  18. package/build/types/analysis/InstanceFieldsInitializationValidator.d.ts +18 -0
  19. package/build/types/analysis/MemberAccessExpressionMeaning.d.ts +3 -3
  20. package/build/types/analysis/NamedTypeResolver.d.ts +2 -3
  21. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +2 -3
  22. package/build/types/analysis/NodeTypeUtils.d.ts +1 -0
  23. package/build/types/analysis/ObjectExpressionMeaning.d.ts +9 -4
  24. package/build/types/analysis/OwnAndBaseConstructorCallsChecker.d.ts +23 -0
  25. package/build/types/analysis/PackageAndStaticVariablesInitializationValidator.d.ts +17 -0
  26. package/build/types/analysis/TagMeaning.d.ts +2 -3
  27. package/build/types/analysis/control-flow/NarrowableReference.d.ts +5 -6
  28. package/build/types/analysis/semantic-context/SemanticContextBase.d.ts +2 -0
  29. package/build/types/analysis/semantic-context/SourceFileSemanticContext.d.ts +3 -1
  30. package/build/types/common/Displayable.d.ts +13 -0
  31. package/build/types/common/FormatString.d.ts +2 -1
  32. package/build/types/common/HelperPhrases.d.ts +2 -1
  33. package/build/types/common/TreeQuery.d.ts +4 -4
  34. package/build/types/common/WithDiagnostics.d.ts +3 -4
  35. package/build/types/common/index.d.ts +1 -0
  36. package/build/types/diagnostic/DiagnosticCode.d.ts +131 -125
  37. package/build/types/diagnostic/DiagnosticData.d.ts +7 -3
  38. package/build/types/emitter/Transformer.d.ts +4 -2
  39. package/build/types/emitter/ir/EmitOptions.d.ts +14 -0
  40. package/build/types/emitter/ir/Nodes.d.ts +41 -25
  41. package/build/types/emitter/ir/types.d.ts +1 -1
  42. package/build/types/entities/BaseEntityHidingMatcher.d.ts +1 -1
  43. package/build/types/entities/EntityHiding.d.ts +1 -1
  44. package/build/types/project/FileSystemTree.d.ts +2 -2
  45. package/build/types/services/source-generation/SourceGenerationService.d.ts +2 -2
  46. package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +5 -5
  47. package/build/types/services/workspace/CompilationController.d.ts +3 -3
  48. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +4 -4
  49. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +4 -4
  50. package/build/types/services/workspace/Workspace.d.ts +3 -3
  51. package/build/types/services/workspace/WorkspaceFiles.d.ts +7 -7
  52. package/package.json +2 -2
@@ -0,0 +1,13 @@
1
+ export interface Displayable {
2
+ getDisplayText(): string;
3
+ }
4
+ export declare class DisplayableArray implements Displayable {
5
+ private readonly _array;
6
+ private readonly _separator;
7
+ constructor(_array: readonly DisplayableOrPrimitive[], _separator: string);
8
+ getDisplayText(): string;
9
+ }
10
+ export type DisplayableOrPrimitive = Displayable | string | number | boolean;
11
+ export declare namespace DisplayableOrPrimitive {
12
+ function getDisplayText(value: DisplayableOrPrimitive): string;
13
+ }
@@ -1,5 +1,6 @@
1
+ import { DisplayableOrPrimitive } from './Displayable.js';
1
2
  /**
2
3
  * @example
3
4
  * "Сообщение: {0} Экранирование: \{0}", ["Привет!"] -> "Сообщение: Привет! Экранирование: {0}"
4
5
  */
5
- export declare function formatString(text: string, ...formatArguments: readonly string[]): string;
6
+ export declare function formatString(text: string, ...formatArguments: readonly DisplayableOrPrimitive[]): string;
@@ -7,6 +7,7 @@ export declare const enum HelperPhraseKind {
7
7
  PackageAlias = 4,
8
8
  PackageNameSegment = 5,
9
9
  Variable = 6,
10
- Overloads = 7
10
+ Overloads = 7,
11
+ EnumeratorMethodName = 8
11
12
  }
12
13
  export declare function getHelperPhrase(kind: HelperPhraseKind, locale: PackageLocale): string;
@@ -1,5 +1,5 @@
1
1
  import { Analyzer } from '../analysis/index.js';
2
- import { StructuredTypeDeclaration, VariantTypeDeclaration } from '../analysis/NodeTypeUtils.js';
2
+ import { StructuredTypeDeclaration, TypeWithMembersDeclaration, VariantTypeDeclaration } from '../analysis/NodeTypeUtils.js';
3
3
  import { Entity, PackageEntity, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
4
4
  import { SourceFile } from '../project/index.js';
5
5
  import * as tree from '../tree/index.js';
@@ -27,11 +27,11 @@ declare class TypeMemberDeclarationQuery extends TreeQuery {
27
27
  }
28
28
  export type TypeMemberDeclarationContainer = TypeMemberDeclarationContainer_type | TypeMemberDeclarationContainer_typeExtension;
29
29
  declare class TypeMemberDeclarationContainer_type implements ITypeMemberDeclarationContainer {
30
- readonly declaration: StructuredTypeDeclaration | VariantTypeDeclaration | tree.PackageAliasTypeDeclaration;
30
+ readonly declaration: TypeWithMembersDeclaration;
31
31
  readonly memberBlock: tree.TypeMemberDeclarationBlock;
32
32
  readonly kind = "type";
33
- constructor(declaration: StructuredTypeDeclaration | VariantTypeDeclaration | tree.PackageAliasTypeDeclaration, memberBlock: tree.TypeMemberDeclarationBlock);
34
- getNode(): StructuredTypeDeclaration | VariantTypeDeclaration | tree.PackageAliasTypeDeclaration;
33
+ constructor(declaration: TypeWithMembersDeclaration, memberBlock: tree.TypeMemberDeclarationBlock);
34
+ getNode(): TypeWithMembersDeclaration;
35
35
  getMemberBlock(): tree.TypeMemberDeclarationBlock;
36
36
  getTypeEntity(analyzer: Analyzer): TypeEntityWithMembers;
37
37
  getContextualTypeEntity(analyzer: Analyzer): TypeEntity | undefined;
@@ -1,5 +1,4 @@
1
1
  import { Diagnostic } from '../diagnostic/Diagnostic.js';
2
- import { MaybeLazy } from './Lazy.js';
3
2
  export type WithDiagnostics<T> = WithDiagnostics_ok<T> | WithDiagnostics_error<T>;
4
3
  export declare class WithDiagnostics_ok<T> implements IWithDiagnostics<T> {
5
4
  readonly value: T;
@@ -9,9 +8,9 @@ export declare class WithDiagnostics_ok<T> implements IWithDiagnostics<T> {
9
8
  }
10
9
  export declare class WithDiagnostics_error<T> implements IWithDiagnostics<T> {
11
10
  readonly kind = "error";
12
- readonly value: readonly MaybeLazy<Diagnostic>[];
13
- constructor(diagnostic: MaybeLazy<Diagnostic>);
14
- constructor(diagnostics: readonly MaybeLazy<Diagnostic>[]);
11
+ readonly value: readonly Diagnostic[];
12
+ constructor(diagnostic: Diagnostic);
13
+ constructor(diagnostics: readonly Diagnostic[]);
15
14
  toNullable(): T | undefined;
16
15
  }
17
16
  interface IWithDiagnostics<T> {
@@ -6,6 +6,7 @@ export * from './CancellationToken.js';
6
6
  export * from './Constants.js';
7
7
  export * from './Debug.js';
8
8
  export * from './Delayed.js';
9
+ export * from './Displayable.js';
9
10
  export * from './Errors.js';
10
11
  export * from './FormatString.js';
11
12
  export * from './Interner.js';
@@ -74,131 +74,137 @@ export declare enum DiagnosticCode {
74
74
  TypeExpected = 235,
75
75
  NameOfTypeOrPackageNotFound = 236,
76
76
  TypeIsNotATag = 237,
77
- ExpressionOfType0CannotBeUsedForEnumeration = 238,
78
- Operator0IsNotDefinedForTypes1And2 = 239,
79
- Operator0IsNotDefinedForType1 = 240,
80
- VariantMustHaveAssociatedValue = 241,
81
- TranslationsCanOnlyBeDeclaredInTranslationPackage = 242,
82
- UnknownTranslatedPackage0 = 243,
83
- BaseCannotBeUsedInThisContext = 244,
84
- OverriddenMethodNotFound = 245,
85
- ObjectCannotBeUsedInThisContext = 246,
86
- BaseCannotBeUsedAsAnExpressionInItself = 247,
87
- InterfacePackageMustNotContainImplementation = 248,
88
- InterfacePackageVariablesMustNotHaveInitializers = 249,
89
- BodyIsMissing = 250,
90
- AbstractTypeMembersMustNotHaveBody = 251,
91
- MembersOfAspectTypeMustNotHaveBody = 252,
92
- AspectTypeFieldsMustBeAbstract = 253,
93
- DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 254,
94
- AbstractFieldsMustNotHaveInitializers = 255,
95
- PackageIsAlreadyImported = 256,
96
- OnlySubprogramsWithReturnTypeCanReturnValue = 257,
97
- FunctionsUsingYieldStatementCannotReturnValue = 258,
98
- YieldStatementCannotBeUsedInAnonymousFunctions = 259,
99
- YieldStatementCannotBeUsedHere = 260,
100
- FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 261,
101
- YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 262,
102
- YieldStatementCannotBeUsedInFinallyClause = 263,
103
- SubprogramMustReturnValue = 264,
104
- ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 265,
105
- TypeAliasReferencesItself = 266,
106
- TypeParameterHasCircularConstraint = 267,
107
- BaseTypeCausesInheritanceCycle = 268,
108
- OnlyGenericTypesAndFunctionsCanBeSpecialized = 269,
109
- Expected0TypeArguments = 270,
110
- ExpectedFrom0To1TypeArguments = 271,
111
- Type0IsNotAssignableToConstraint1 = 272,
112
- VariableIsDeclaredButItsValueIsNeverRead = 273,
113
- FunctionIsDeclaredButNotUsed = 274,
114
- TypeParameterIsDeclaredButNotUsed = 275,
115
- DefaultConstructorArgumentsMustBeNamed = 276,
116
- IncorrectBodyOfBasicAliasTypeMethod = 277,
117
- TheFollowingDeclarationsAreNotTranslated0 = 278,
118
- TheFollowingDeclarationAreNotTranslated0And1More = 279,
119
- OperatorFunction0MustNotHaveParameters = 280,
120
- OperatorFunction0MustHaveOneParameter = 281,
121
- OperatorFunction0MustHaveNoMoreThanOneParameter = 282,
122
- CorrespondingBasicTypeMemberNotFound = 283,
123
- AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 284,
124
- TagNotFound = 285,
125
- TypeOrFunctionNameExpected = 286,
126
- PackageNameOrAliasExpected = 287,
127
- ExpressionCanBeNone = 288,
128
- TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 289,
129
- UnreachableCode = 290,
130
- RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 291,
131
- RecursionOccurredWhileInferringTheTypeOfTheVariable = 292,
132
- ScopeAlreadyContainsDeclarationWithTheSameName = 293,
133
- ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 294,
134
- ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 295,
135
- PackageAlreadyContainsDeclarationWithTheSameName = 296,
136
- PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 297,
137
- PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 298,
138
- PackageAliasWithTheSameNameAlreadyExits = 299,
139
- PackageCanHaveOnlyEntryPoint = 300,
140
- PackageCanHaveOnlyOneConstructor = 301,
141
- TypeAlreadyContainsDeclarationWithTheSameName = 302,
142
- TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 303,
143
- TypeAlreadyContainsConstructorWithTheSameParameterTypes = 304,
144
- TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 305,
145
- TypeAlreadyContainsIndexerWithTheSameParameterTypes = 306,
146
- TypeCanHaveOnlyOneDestructor = 307,
147
- TypeCanHaveOnlyOneDereferenceOperator = 308,
148
- VariableIsUsedBeforeItsDeclaration = 309,
149
- VariableMayNotHasBeenAssignedBeforeUsage = 310,
150
- NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 311,
151
- WriteFunctionHasNoCorrespondingReadFunction = 312,
152
- TypeCannotHaveMultipleBaseObjectTypes = 313,
153
- TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 314,
154
- PlainObjectTypeCannotBeUsedAsBaseType = 315,
155
- ThisTypeIsAlreadyListedInBaseTypeList = 316,
156
- OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 317,
157
- PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 318,
158
- AspectTypeCanHaveOnlyAspectsAsBaseTypes = 319,
159
- ModifierListAlreadyContains0Modifier = 320,
160
- ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 321,
161
- _0ModifierIsNotAllowedHere = 322,
162
- DeclarationCannotBePlacedInGroupHaving0Modifier = 323,
163
- PackageConstructorDeclarationCannotHaveModifiers = 324,
164
- PackageEntryPointDeclarationCannotHaveModifiers = 325,
165
- TranslationsCannotHaveModifiers = 326,
166
- AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 327,
167
- BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 328,
168
- OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 329,
169
- _0ModifierCannotBeUsedWith1Modifier = 330,
170
- VariantDeclarationCannotHaveHiddenModifier = 331,
171
- BasicModifierCanOnlyBeAppliedToObjectTypes = 332,
172
- AbstractModifierCanOnlyBeAppliedToObjectTypes = 333,
173
- NotBasicObjectTypesCannotHaveBasicMembers = 334,
174
- BasicModifierCannotBeAppliedToAspectTypeFields = 335,
175
- WriteFunctionMustHaveTheSameModifiersAsReadFunction = 336,
176
- WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 337,
177
- DeclarationConflictsWithBaseTypeMember0 = 338,
178
- DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 339,
179
- DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 340,
180
- DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 341,
181
- DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 342,
182
- OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 343,
183
- OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 344,
184
- OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 345,
185
- OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 346,
186
- OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 347,
187
- TypeDoesNotImplementMember0 = 348,
188
- TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 349,
189
- TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 350,
190
- TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 351,
191
- TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 352,
192
- TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 353,
193
- CannotAccessAbstractMemberOfBaseType = 354,
194
- TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 355,
195
- TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 356,
196
- EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral = 357,
197
- OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral = 358,
198
- OnlyIntegerLiteralInRangeFromZeroToNIsAllowedHereAsParameterOfTextTemplateLiteral = 359,
199
- OnlyIdentifierIsAllowedHereAsParameterOfTextTemplateLiteral = 360,
200
- TranslationFunctionIsNotAllowedWhenIndexesAreUsedAsParametersInSourceTextTemplate = 361,
201
- UnknownParameterOfTextTemplateTranslation = 362,
77
+ Operator0IsNotDefinedForTypes1And2 = 238,
78
+ Operator0IsNotDefinedForType1 = 239,
79
+ VariantMustHaveAssociatedValue = 240,
80
+ TranslationsCanOnlyBeDeclaredInTranslationPackage = 241,
81
+ UnknownTranslatedPackage0 = 242,
82
+ BaseCannotBeUsedInThisContext = 243,
83
+ OverriddenMethodNotFound = 244,
84
+ ObjectCannotBeUsedInThisContext = 245,
85
+ BaseCannotBeUsedAsAnExpressionInItself = 246,
86
+ InterfacePackageMustNotContainImplementation = 247,
87
+ InterfacePackageVariablesMustNotHaveInitializers = 248,
88
+ BodyIsMissing = 249,
89
+ AbstractTypeMembersMustNotHaveBody = 250,
90
+ MembersOfAspectTypeMustNotHaveBody = 251,
91
+ AspectTypeFieldsMustBeAbstract = 252,
92
+ DeclarationsMarkedWithBuiltIntoPlatformTagMustNotHaveBody = 253,
93
+ AbstractFieldsMustNotHaveInitializers = 254,
94
+ PackageIsAlreadyImported = 255,
95
+ OnlySubprogramsWithReturnTypeCanReturnValue = 256,
96
+ FunctionsUsingYieldStatementCannotReturnValue = 257,
97
+ YieldStatementCannotBeUsedInAnonymousFunctions = 258,
98
+ YieldStatementCannotBeUsedHere = 259,
99
+ FunctionsUsingYieldStatementMustHaveEnumerableAsReturnType = 260,
100
+ YieldStatementCannotBeUsedInTryStatementThatHasCatchClause = 261,
101
+ YieldStatementCannotBeUsedInFinallyClause = 262,
102
+ SubprogramMustReturnValue = 263,
103
+ ResultVariableCannotBeUsedInFunctionsUsingYieldStatement = 264,
104
+ TypeAliasReferencesItself = 265,
105
+ TypeParameterHasCircularConstraint = 266,
106
+ BaseTypeCausesInheritanceCycle = 267,
107
+ OnlyGenericTypesAndFunctionsCanBeSpecialized = 268,
108
+ Expected0TypeArguments = 269,
109
+ ExpectedFrom0To1TypeArguments = 270,
110
+ Type0IsNotAssignableToConstraint1 = 271,
111
+ VariableIsDeclaredButItsValueIsNeverRead = 272,
112
+ FunctionIsDeclaredButNotUsed = 273,
113
+ TypeParameterIsDeclaredButNotUsed = 274,
114
+ DefaultConstructorArgumentsMustBeNamed = 275,
115
+ IncorrectBodyOfBasicAliasTypeMethod = 276,
116
+ TheFollowingDeclarationsAreNotTranslated0 = 277,
117
+ TheFollowingDeclarationAreNotTranslated0And1More = 278,
118
+ OperatorFunction0MustNotHaveParameters = 279,
119
+ OperatorFunction0MustHaveOneParameter = 280,
120
+ OperatorFunction0MustHaveNoMoreThanOneParameter = 281,
121
+ CorrespondingBasicTypeMemberNotFound = 282,
122
+ AsyncFunctionCanOnlyBeCalledFromFunctionMarkedWithAsyncModifier = 283,
123
+ TagNotFound = 284,
124
+ TypeOrFunctionNameExpected = 285,
125
+ PackageNameOrAliasExpected = 286,
126
+ ExpressionCanBeNone = 287,
127
+ TargetVariableExpressionInTheAssignmentStatementCannotContainQuestionOperator = 288,
128
+ UnreachableCode = 289,
129
+ RecursionOccurredWhileCalculatingTheTypeOfTheExpression = 290,
130
+ RecursionOccurredWhileInferringTheTypeOfTheVariable = 291,
131
+ ScopeAlreadyContainsDeclarationWithTheSameName = 292,
132
+ ScopeAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 293,
133
+ ParameterName0ConflictsWithAutomaticallyGeneratedVariableName = 294,
134
+ PackageAlreadyContainsDeclarationWithTheSameName = 295,
135
+ PackageAlreadyContainsFunctionWithTheSameNameAndParameterTypes = 296,
136
+ PackageAlreadyContainsTypeWithTheSameNameAndSameOrIntersectingTypeParameterCount = 297,
137
+ PackageAliasWithTheSameNameAlreadyExits = 298,
138
+ TypeAlreadyContainsDeclarationWithTheSameName = 299,
139
+ TypeAlreadyContainsMethodWithTheSameNameAndParameterTypes = 300,
140
+ TypeAlreadyContainsConstructorWithTheSameParameterTypes = 301,
141
+ TypeAlreadyContainsOperatorFunctionWithTheSameParameterTypes = 302,
142
+ TypeAlreadyContainsIndexerWithTheSameParameterTypes = 303,
143
+ TypeCanHaveOnlyOneDestructor = 304,
144
+ TypeCanHaveOnlyOneDereferenceOperator = 305,
145
+ VariableIsUsedBeforeItsDeclaration = 306,
146
+ VariableMayNotHasBeenAssignedBeforeUsage = 307,
147
+ NotAllCodePathsReturnAValueAndResultLocalVariableMayNotHasBeenAssigned = 308,
148
+ WriteFunctionHasNoCorrespondingReadFunction = 309,
149
+ TypeCannotHaveMultipleBaseObjectTypes = 310,
150
+ TypeThatIsNotMarkedAsBasicCannotBeUsedAsBaseType = 311,
151
+ PlainObjectTypeCannotBeUsedAsBaseType = 312,
152
+ ThisTypeIsAlreadyListedInBaseTypeList = 313,
153
+ OnlyObjectAndAspectTypesCanBeUsedAsBaseTypes = 314,
154
+ PlainObjectTypeCanHaveOnlyAspectsAsBaseTypes = 315,
155
+ AspectTypeCanHaveOnlyAspectsAsBaseTypes = 316,
156
+ ModifierListAlreadyContains0Modifier = 317,
157
+ ModifierListOfOuterDeclarationGroupAlreadyContains0Modifier = 318,
158
+ _0ModifierIsNotAllowedHere = 319,
159
+ DeclarationCannotBePlacedInGroupHaving0Modifier = 320,
160
+ PackageConstructorDeclarationCannotHaveModifiers = 321,
161
+ PackageEntryPointDeclarationCannotHaveModifiers = 322,
162
+ TranslationsCannotHaveModifiers = 323,
163
+ AbstractModifierCanOnlyBeUsedInAbstractObjectTypes = 324,
164
+ BasicModifierCanOnlyBeUsedInObjectTypesAspectTypesAndTypeAliases = 325,
165
+ OverrideModifierCanOnlyBeUsedInObjectAndAspectTypes = 326,
166
+ _0ModifierCannotBeUsedWith1Modifier = 327,
167
+ VariantDeclarationCannotHaveHiddenModifier = 328,
168
+ BasicModifierCanOnlyBeAppliedToObjectTypes = 329,
169
+ AbstractModifierCanOnlyBeAppliedToObjectTypes = 330,
170
+ NotBasicObjectTypesCannotHaveBasicMembers = 331,
171
+ BasicModifierCannotBeAppliedToAspectTypeFields = 332,
172
+ WriteFunctionMustHaveTheSameModifiersAsReadFunction = 333,
173
+ WriteFunctionMustHaveTheSameOrMoreRestrictiveHidingLevelThenReadFunction = 334,
174
+ DeclarationConflictsWithBaseTypeMember0 = 335,
175
+ DeclarationConflictsWithBaseTypeMember0AddOverrideModifier = 336,
176
+ DeclarationConflictsWithBaseTypeMember0ThisMemberCannotBeOverridden = 337,
177
+ DeclarationConflictsWithBaseTypeMember0ToOverrideTypeMustBeAssignableTo1 = 338,
178
+ DeclarationConflictsWithBaseTypeMember0ToOverrideReturnTypeMustBeAssignableTo1 = 339,
179
+ OverridingMemberMustHaveTheSameHidingLevelAsBaseMember0 = 340,
180
+ OverridingMethodMustBeAsyncBecauseBaseMethod0IsAsync = 341,
181
+ OverridingMethodMustNotBeAsyncBecauseBaseMethod0IsNotAsync = 342,
182
+ OverridingFieldMustNotBeConstOrHaveWriteFunctionToMatchBaseField0 = 343,
183
+ OverridingMemberMustHaveWriteFunctionToMatchBaseMember0 = 344,
184
+ TypeDoesNotImplementMember0 = 345,
185
+ TypeDoesNotImplementMember0ImplicitImplementationTypeMismatch1 = 346,
186
+ TypeDoesNotImplementMember0ImplicitImplementation1IsAsync = 347,
187
+ TypeDoesNotImplementMember0ImplicitImplementation1IsNotAsync = 348,
188
+ TypeDoesNotImplementMember0ImplicitImplementation1IsNotWriteable = 349,
189
+ TypeDoesNotImplementMember0ImplicitImplementation1WriteFunctionIsHidden = 350,
190
+ CannotAccessAbstractMemberOfBaseType = 351,
191
+ TheFollowingBaseTypeMembersConflictAndMustBeOverridden0 = 352,
192
+ TheFollowingBaseTypeMembersConflictBecauseTheyHaveTheSameOriginalName0AndMustBeOverridden1 = 353,
193
+ EitherIdentifiersOrIntegerIndexesAreAllowedAsParametersOfTextTemplateLiteral = 354,
194
+ OnlyIndex0IsAllowedHereAsParameterOfTextTemplateLiteral = 355,
195
+ OnlyIntegerLiteralInRangeFromZeroToNIsAllowedHereAsParameterOfTextTemplateLiteral = 356,
196
+ OnlyIdentifierIsAllowedHereAsParameterOfTextTemplateLiteral = 357,
197
+ TranslationFunctionIsNotAllowedWhenIndexesAreUsedAsParametersInSourceTextTemplate = 358,
198
+ UnknownParameterOfTextTemplateTranslation = 359,
199
+ TheFirstStatementOfConstructorBlockMustBeEitherBaseOrOwnConstructorCall = 360,
200
+ ThisCallCausesOwnConstructorCallCycle = 361,
201
+ OwnConstructorCallMustBeTheFirstStatementOfConstructorBlock = 362,
202
+ BaseConstructorCallMustBeTheFirstStatementOfConstructorBlock = 363,
203
+ Field0HasNoInitializerAndMayNotBeAssignedInConstructor = 364,
204
+ Field0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 365,
205
+ Variable0HasNoInitializerAndMayNotBeAssignedInPackageConstructor = 366,
206
+ ExpressionOfType0CanNotBeUsedInForLoopBecauseNotEnumerableAndNoMethod1 = 367,
207
+ ForExpressionToBeUsedInForLoopMethod0MustReturnEnumeratorType = 368,
202
208
  CannotFindTsLibDirectoryBaseSearchPaths0 = 401,
203
209
  SourceFile0IsNotPartOfThePackageAndWontBeLoaded = 402,
204
210
  ProgramWithoutMainPackageCannotBeCompiled = 403,
@@ -1,11 +1,15 @@
1
+ import { DisplayableOrPrimitive } from '../common/index.js';
1
2
  import { DiagnosticCode } from './DiagnosticCode.js';
2
3
  export declare class DiagnosticData {
3
4
  readonly code: DiagnosticCode;
4
- readonly message: string;
5
5
  readonly kind: DiagnosticKind;
6
6
  readonly flags: DiagnosticFlags;
7
- constructor(code: DiagnosticCode, message: string, kind: DiagnosticKind, flags: DiagnosticFlags);
8
- static withCode(code: DiagnosticCode, formatArguments?: readonly string[], kind?: DiagnosticKind, flags?: DiagnosticFlags): DiagnosticData;
7
+ private _messageFormat;
8
+ private _formatArguments;
9
+ private _message;
10
+ get message(): string;
11
+ constructor(code: DiagnosticCode, formatMessage: string | undefined, formatArguments: readonly DisplayableOrPrimitive[] | undefined, kind: DiagnosticKind, flags: DiagnosticFlags);
12
+ static withCode(code: DiagnosticCode, formatArguments?: readonly DisplayableOrPrimitive[], kind?: DiagnosticKind, flags?: DiagnosticFlags): DiagnosticData;
9
13
  }
10
14
  export declare const enum DiagnosticKind {
11
15
  Error = 0,
@@ -111,7 +111,8 @@ export declare class Transformer {
111
111
  transformJsInstanceOfExpressionChildren(expression: ir.JsInstanceOfExpression): void;
112
112
  transformJsIdentifierExpressionChildren(_expression: ir.JsIdentifierExpression): void;
113
113
  transformDereferenceExpressionChildren(expression: ir.DereferenceExpression): void;
114
- transformNamedJsObjectLiteralProperty(property: ir.NamedJsObjectLiteralProperty): ir.NamedJsObjectLiteralProperty;
114
+ transformValueJsObjectLiteralProperty(property: ir.ValueJsObjectLiteralProperty): ir.ValueJsObjectLiteralProperty;
115
+ transformFunctionJsObjectLiteralProperty(property: ir.FunctionJsObjectLiteralProperty): ir.FunctionJsObjectLiteralProperty;
115
116
  transformSpreadJsObjectLiteralProperty(property: ir.SpreadJsObjectLiteralProperty): ir.SpreadJsObjectLiteralProperty;
116
117
  transformDecorator(node: ir.Decorator): ir.Decorator;
117
118
  private transformStatementsAndAddHoistedLocalVariables;
@@ -209,7 +210,8 @@ export interface TransformationConfig {
209
210
  transformArguments?(declaration: ir.Arguments): NodeTransformationResult<ir.Arguments>;
210
211
  transformCatchClause?(clause: ir.CatchClause): NodeTransformationResult<ir.CatchClause>;
211
212
  transformFinallyClause?(clause: ir.FinallyClause): NodeTransformationResult<ir.FinallyClause>;
212
- transformNamedJsObjectLiteralProperty?(clause: ir.NamedJsObjectLiteralProperty): NodeTransformationResult<ir.NamedJsObjectLiteralProperty>;
213
+ transformValueJsObjectLiteralProperty?(clause: ir.ValueJsObjectLiteralProperty): NodeTransformationResult<ir.ValueJsObjectLiteralProperty>;
214
+ transformFunctionJsObjectLiteralProperty?(clause: ir.FunctionJsObjectLiteralProperty): NodeTransformationResult<ir.FunctionJsObjectLiteralProperty>;
213
215
  transformSpreadJsObjectLiteralProperty?(clause: ir.SpreadJsObjectLiteralProperty): NodeTransformationResult<ir.SpreadJsObjectLiteralProperty>;
214
216
  transformDecorator?(node: ir.Decorator): NodeTransformationResult<ir.Decorator>;
215
217
  }
@@ -174,4 +174,18 @@ declare const enum ErrorStatementEmitOptionsFlags {
174
174
  None = 0,
175
175
  WrapExpressionInError = 1
176
176
  }
177
+ export declare class ForStatementEmitOptions {
178
+ private _flags;
179
+ constructor(flags?: ForStatementEmitOptionsFlags);
180
+ constructor(addExplicitCallOfEnumeratorMethodIfRequired: boolean);
181
+ static default(): ForStatementEmitOptions;
182
+ get addExplicitCallOfEnumeratorMethodIfRequired(): boolean;
183
+ set addExplicitCallOfEnumeratorMethodIfRequired(value: boolean);
184
+ setAddExplicitCallOfEnumeratorMethodIfRequired(value: boolean): this;
185
+ clone(): ForStatementEmitOptions;
186
+ }
187
+ declare const enum ForStatementEmitOptionsFlags {
188
+ None = 0,
189
+ AddExplicitCallOfEnumeratorMethodIfRequired = 1
190
+ }
177
191
  export {};
@@ -2,7 +2,7 @@ import { AccessKind } from '../../common/index.js';
2
2
  import { FunctionEntity, NamedEntity, Type, TypeOrExtensionEntity, VariableEntity } from '../Entities.js';
3
3
  import { AccessedFunction, AccessedVariable } from './AccessedEntities.js';
4
4
  import { ComputedAccess } from './ComputedAccess.js';
5
- import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, FunctionAccessExpressionEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateLiteralEmitOptions } from './EmitOptions.js';
5
+ import { AssignmentEmitOptions, CallExpressionEmitOptions, ConstructorCallExpressionEmitOptions, DeclarationWithInitializerEmitOptions, ErrorStatementEmitOptions, FieldAccessExpressionEmitOptions, FieldDeclarationEmitOptions, ForStatementEmitOptions, FunctionAccessExpressionEmitOptions, MethodDeclarationEmitOptions, PackageVariableDeclarationEmitOptions, TextTemplateLiteralEmitOptions } from './EmitOptions.js';
6
6
  import { SourceLocation } from './SourceLocation.js';
7
7
  import { Expression, LValueExpression, PackageMemberDeclaration, Statement, TypeMemberDeclaration } from './types.js';
8
8
  export declare class ArrayLiteral {
@@ -239,9 +239,11 @@ export declare class ForStatement {
239
239
  indexVariableEntity: VariableEntity | undefined;
240
240
  enumeratedExpression: Expression;
241
241
  body: BlockStatement;
242
+ ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined;
242
243
  sourceLocation: SourceLocation | undefined;
244
+ options: ForStatementEmitOptions;
243
245
  readonly kind = NodeKind.ForStatement;
244
- constructor(label: string | undefined, enumerationVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, sourceLocation: SourceLocation | undefined);
246
+ constructor(label: string | undefined, enumerationVariableEntity: VariableEntity, indexVariableEntity: VariableEntity | undefined, enumeratedExpression: Expression, body: BlockStatement, ifExpressionIsNotEnumerableThenEnumeratorMethod: AccessedFunction | undefined, sourceLocation: SourceLocation | undefined, options?: ForStatementEmitOptions);
245
247
  clone(): ForStatement;
246
248
  }
247
249
  export declare class IfStatement {
@@ -363,14 +365,27 @@ export declare class JsObjectLiteral {
363
365
  constructor(properties: readonly JsObjectLiteralProperty[], sourceLocation: SourceLocation | undefined);
364
366
  clone(): JsObjectLiteral;
365
367
  }
366
- export type JsObjectLiteralProperty = NamedJsObjectLiteralProperty | SpreadJsObjectLiteralProperty;
367
- export declare class NamedJsObjectLiteralProperty {
368
- name: string;
368
+ export type JsObjectLiteralProperty = ValueJsObjectLiteralProperty | FunctionJsObjectLiteralProperty | SpreadJsObjectLiteralProperty;
369
+ export type JsObjectLiteralPropertyKey = string | Expression;
370
+ export declare namespace JsObjectLiteralPropertyKey {
371
+ function clone(value: JsObjectLiteralPropertyKey): JsObjectLiteralPropertyKey;
372
+ }
373
+ export declare class ValueJsObjectLiteralProperty {
374
+ key: JsObjectLiteralPropertyKey;
369
375
  value: Expression;
370
376
  sourceLocation: SourceLocation | undefined;
371
- readonly kind = NodeKind.NamedJsObjectLiteralProperty;
372
- constructor(name: string, value: Expression, sourceLocation: SourceLocation | undefined);
373
- clone(): NamedJsObjectLiteralProperty;
377
+ readonly kind = NodeKind.ValueJsObjectLiteralProperty;
378
+ constructor(key: JsObjectLiteralPropertyKey, value: Expression, sourceLocation: SourceLocation | undefined);
379
+ clone(): ValueJsObjectLiteralProperty;
380
+ }
381
+ export declare class FunctionJsObjectLiteralProperty {
382
+ key: JsObjectLiteralPropertyKey;
383
+ valueParameters: readonly ValueParameterDeclaration[];
384
+ body: BlockStatement;
385
+ sourceLocation: SourceLocation | undefined;
386
+ readonly kind = NodeKind.FunctionJsObjectLiteralProperty;
387
+ constructor(key: JsObjectLiteralPropertyKey, valueParameters: readonly ValueParameterDeclaration[], body: BlockStatement, sourceLocation: SourceLocation | undefined);
388
+ clone(): FunctionJsObjectLiteralProperty;
374
389
  }
375
390
  /**
376
391
  * @example
@@ -983,23 +998,24 @@ export declare const enum NodeKind {
983
998
  EsModuleImportDirectiveStatement = 78,
984
999
  CjsModuleImportDirectiveStatement = 79,
985
1000
  JsObjectLiteral = 80,
986
- NamedJsObjectLiteralProperty = 81,
987
- SpreadJsObjectLiteralProperty = 82,
988
- JsPropertyAccessExpression = 83,
989
- JsFunctionLiteral = 84,
990
- JsTypeOfExpression = 85,
991
- JsInstanceOfExpression = 86,
992
- JsIdentifierExpression = 87,
993
- DereferenceExpression = 88,
994
- BaseExpression = 89,
995
- OwnConstructorCallExpression = 90,
996
- DereferencedVariableGetterDeclaration = 91,
997
- DereferencedVariableSetterDeclaration = 92,
998
- JsNamespaceDestructuringStatement = 93,
999
- ComputedFieldDeclaration = 94,
1000
- TextWithEntityName = 95,
1001
- Arguments = 96,
1002
- Decorator = 97
1001
+ ValueJsObjectLiteralProperty = 81,
1002
+ FunctionJsObjectLiteralProperty = 82,
1003
+ SpreadJsObjectLiteralProperty = 83,
1004
+ JsPropertyAccessExpression = 84,
1005
+ JsFunctionLiteral = 85,
1006
+ JsTypeOfExpression = 86,
1007
+ JsInstanceOfExpression = 87,
1008
+ JsIdentifierExpression = 88,
1009
+ DereferenceExpression = 89,
1010
+ BaseExpression = 90,
1011
+ OwnConstructorCallExpression = 91,
1012
+ DereferencedVariableGetterDeclaration = 92,
1013
+ DereferencedVariableSetterDeclaration = 93,
1014
+ JsNamespaceDestructuringStatement = 94,
1015
+ ComputedFieldDeclaration = 95,
1016
+ TextWithEntityName = 96,
1017
+ Arguments = 97,
1018
+ Decorator = 98
1003
1019
  }
1004
1020
  export declare const enum AssignmentOperatorKind {
1005
1021
  Equals = 0,
@@ -1,5 +1,5 @@
1
1
  import * as ir from './Nodes.js';
2
- export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NoneLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.NamedJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator;
2
+ export type Node = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.AssignmentStatement | ir.BaseConstructorCallExpression | ir.BinaryExpression | ir.BlockStatement | ir.BooleanLiteral | ir.BreakLoopStatement | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.NoneLiteral | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.FinallyClause | ir.ForStatement | ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.IfStatement | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.JsIndexedAccessExpression | ir.NestedFunctionDeclaration | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclaration | ir.LocalVariableDeclarationStatement | ir.NumericLiteral | ir.CatchClause | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.LoopStatement | ir.Package | ir.ReturnStatement | ir.TextLiteral | ir.TextTemplateLiteral | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.ComputedFieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.SwitchStatement | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.ValueParameterDeclaration | ir.VariableAccessExpression | ir.VariantDeclaration | ir.WhileStatement | ir.YieldStatement | ir.JsObjectLiteral | ir.ValueJsObjectLiteralProperty | ir.FunctionJsObjectLiteralProperty | ir.SpreadJsObjectLiteralProperty | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.DereferenceExpression | ir.BaseExpression | ir.OwnConstructorCallExpression | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration | ir.TextWithEntityName | ir.Argument | ir.Arguments | ir.Decorator;
3
3
  export type Declaration = ir.PackageFunctionDeclaration | ir.PackageTypeDeclaration | ir.PackageVariableDeclaration | ir.PackageVariableGetterDeclaration | ir.PackageVariableSetterDeclaration | ir.PackageVariantTypeDeclaration | ir.NestedFunctionDeclaration | ir.LocalVariableDeclaration | ir.ConstructorDeclaration | ir.DestructorDeclaration | ir.IndexedElementGetterDeclaration | ir.IndexedElementSetterDeclaration | ir.MethodDeclaration | ir.FieldDeclaration | ir.FieldGetterDeclaration | ir.FieldSetterDeclaration | ir.ValueParameterDeclaration | ir.VariantDeclaration | ir.DereferencedVariableGetterDeclaration | ir.DereferencedVariableSetterDeclaration;
4
4
  export type Statement = ir.AssignmentStatement | ir.BlockStatement | ir.BreakLoopStatement | ir.ContinueLoopStatement | ir.DisposeStatement | ir.RunStatement | ir.TryStatement | ir.EmptyStatement | ir.ErrorStatement | ir.ImportantStatement | ir.ExpressionStatement | ir.ForStatement | ir.IfStatement | ir.NestedFunctionDeclarationStatement | ir.LocalVariableDeclarationStatement | ir.LoopStatement | ir.ReturnStatement | ir.SwitchStatement | ir.WhileStatement | ir.YieldStatement | ir.EsModuleImportDirectiveStatement | ir.CjsModuleImportDirectiveStatement | ir.JsNamespaceDestructuringStatement;
5
5
  export type Expression = ir.ArrayLiteral | ir.AsExpression | ir.AssertionExpression | ir.AssumptionExpression | ir.AssignmentExpression | ir.BinaryExpression | ir.BooleanLiteral | ir.CallExpression | ir.CharLiteral | ir.CommaExpression | ir.ConstructorCallExpression | ir.NoneLiteral | ir.IndexedAccessExpression | ir.InlineJsExpression | ir.MethodAccessExpression | ir.FieldAccessExpression | ir.IntegerLiteral | ir.IsExpression | ir.NumericLiteral | ir.FunctionAccessExpression | ir.FunctionLiteral | ir.PrefixUnaryExpression | ir.MeasureLiteral | ir.ReferenceExpression | ir.DereferenceExpression | ir.TextLiteral | ir.TextWithEntityName | ir.TextTemplateLiteral | ir.TernaryExpression | ir.ThisExpression | ir.TypeAccessExpression | ir.VariableAccessExpression | ir.BaseConstructorCallExpression | ir.JsIndexedAccessExpression | ir.JsObjectLiteral | ir.JsPropertyAccessExpression | ir.JsFunctionLiteral | ir.JsTypeOfExpression | ir.JsInstanceOfExpression | ir.JsIdentifierExpression | ir.BaseExpression | ir.OwnConstructorCallExpression;
@@ -6,6 +6,6 @@ export declare abstract class BaseEntityHidingMatcher implements IEntityHidingMa
6
6
  protected abstract typeEntity: TypeEntity | undefined;
7
7
  protected abstract sourceFile: SourceFile | undefined;
8
8
  protected abstract package: PackageEntity;
9
- matches(hiding: EntityHidingLevel): boolean;
9
+ matches(hiding: EntityHidingLevel | undefined): boolean;
10
10
  private collectBaseTypesRecursively;
11
11
  }
@@ -23,5 +23,5 @@ export declare class EntityHidingLevel_package {
23
23
  constructor(packageEntity: PackageEntity);
24
24
  }
25
25
  export interface IEntityHidingMatcher {
26
- matches(hiding: EntityHidingLevel): boolean;
26
+ matches(hiding: EntityHidingLevel | undefined): boolean;
27
27
  }
@@ -1,6 +1,6 @@
1
- import { TriggeringObject } from 'reactronic';
1
+ import { ObservableObject } from 'reactronic';
2
2
  import { Uri } from '../common/index.js';
3
- export declare class FileSystemTree extends TriggeringObject implements ReadonlyFileSystemTree {
3
+ export declare class FileSystemTree extends ObservableObject implements ReadonlyFileSystemTree {
4
4
  private readonly _handleInconsistentRequestsWithoutErrors;
5
5
  private readonly _deleteEmptyDirectories;
6
6
  private readonly _rootsByScheme;
@@ -1,4 +1,4 @@
1
- import { TriggeringObject } from 'reactronic';
1
+ import { ObservableObject } from 'reactronic';
2
2
  import { Analyzer } from '../../analysis/Analyzer.js';
3
3
  import { CancellationToken } from '../../common/index.js';
4
4
  import { Entity } from '../../entities/index.js';
@@ -6,7 +6,7 @@ import { PackageContent } from '../../project/PackageContent.js';
6
6
  import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
7
7
  import { SourceLocation } from '../Types.js';
8
8
  import { CompilationController, ReadonlyClientTrackedSourceFiles } from '../workspace/index.js';
9
- export declare class SourceGenerationService extends TriggeringObject {
9
+ export declare class SourceGenerationService extends ObservableObject {
10
10
  private readonly _trackedSourceFiles;
11
11
  private readonly _tsLibrariesProvider;
12
12
  private readonly _standardPackageContentsProviders;
@@ -1,7 +1,7 @@
1
- import { TriggeringMap, TriggeringObject } from 'reactronic';
1
+ import { ObservableMap, ObservableObject } from 'reactronic';
2
2
  import { Uri } from '../../common/index.js';
3
- export declare class ClientTrackedSourceFiles extends TriggeringObject implements ReadonlyClientTrackedSourceFiles {
4
- readonly items: TriggeringMap<string, ClientTrackedSourceFile>;
3
+ export declare class ClientTrackedSourceFiles extends ObservableObject implements ReadonlyClientTrackedSourceFiles {
4
+ readonly items: ObservableMap<string, ClientTrackedSourceFile>;
5
5
  get unsaved(): Map<string, ClientTrackedSourceFile>;
6
6
  track(uri: Uri, text: string, version: number): ClientTrackedSourceFile | undefined;
7
7
  update(uri: Uri, text: string, version: number): ClientTrackedSourceFile | undefined;
@@ -13,11 +13,11 @@ export declare class ClientTrackedSourceFiles extends TriggeringObject implement
13
13
  dispose(): void;
14
14
  }
15
15
  export interface ReadonlyClientTrackedSourceFiles {
16
- readonly items: TriggeringMap<string, ReadonlyClientTrackedSourceFile>;
16
+ readonly items: ObservableMap<string, ReadonlyClientTrackedSourceFile>;
17
17
  readonly unsaved: Map<string, ReadonlyClientTrackedSourceFile>;
18
18
  createItemsSnapshot(): Map<string, ClientTrackedSourceFileSnapshot>;
19
19
  }
20
- export declare class ClientTrackedSourceFile extends TriggeringObject {
20
+ export declare class ClientTrackedSourceFile extends ObservableObject {
21
21
  readonly uri: Uri;
22
22
  text: string;
23
23
  version: number;
@@ -1,4 +1,4 @@
1
- import { Indicator, TriggeringObject } from 'reactronic';
1
+ import { Indicator, ObservableObject } from 'reactronic';
2
2
  import { Analyzer, TsInteropInputs } from '../../analysis/index.js';
3
3
  import { CancellationToken, Uri } from '../../common/index.js';
4
4
  import { Diagnostic } from '../../diagnostic/Diagnostic.js';
@@ -6,7 +6,7 @@ import { ConvertedConfiguration, ProgramPackageConfiguration, SourceFile, fsTree
6
6
  import { PackageContent } from '../../project/PackageContent.js';
7
7
  import { TypeScriptLibrariesProvider } from '../../ts-interop/TsLibrariesProvider.js';
8
8
  import { ReadonlyClientTrackedSourceFiles } from './ClientTrackedSourceFiles.js';
9
- export declare class CompilationController extends TriggeringObject {
9
+ export declare class CompilationController extends ObservableObject {
10
10
  readonly mainCompilationReloadIndicator: Indicator;
11
11
  readonly configurationControllersUpdateIndictor: Indicator;
12
12
  private readonly _mainAnalyzerChangedIndicator;
@@ -100,7 +100,7 @@ export declare class DiagnosticsCollectionSummary {
100
100
  readonly hasErrors: boolean;
101
101
  constructor(hasErrors: boolean);
102
102
  }
103
- declare class ConfigurationController extends TriggeringObject {
103
+ declare class ConfigurationController extends ObservableObject {
104
104
  readonly packageUri: Uri;
105
105
  readonly processingIndicator: Indicator;
106
106
  readonly rootDirectory: fsTree.Directory;