@artel/artc 0.6.26017 → 0.6.26019
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 +39 -161
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +6744 -8943
- package/build/{chunk-UCBPXOLW.js → chunk-27AIX6Z7.js} +3 -5
- package/build/{chunk-SJFIPH42.js → chunk-LYYIQT6J.js} +63496 -60655
- package/build/{chunk-65XBWCU7.js → chunk-QBUXIP7E.js} +11 -11
- package/build/types/analysis/AccessedFunction.d.ts +3 -6
- package/build/types/analysis/AccessedFunctionParameter.d.ts +7 -0
- package/build/types/analysis/Analyzer.d.ts +81 -580
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageMap.d.ts +14 -0
- package/build/types/analysis/EntityOrPackageNameTreeNode.d.ts +13 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +6 -2
- package/build/types/analysis/NodeOrDiagnosticLocation.d.ts +12 -0
- package/build/types/analysis/OverridableTypeMember.d.ts +6 -0
- package/build/types/analysis/ReferencedPackagesCollector.d.ts +24 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +1 -2
- package/build/types/analysis/SignatureComparisonOptions.d.ts +6 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +2 -3
- package/build/types/analysis/SpecialNameKey.d.ts +1 -1
- package/build/types/analysis/SubstitutedFunction.d.ts +1 -1
- package/build/types/analysis/TsInteropInputs.d.ts +9 -0
- package/build/types/analysis/TypeAssignabilityFlags.d.ts +22 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +1 -1
- package/build/types/analysis/a/Analyzer.d.ts +466 -0
- package/build/types/analysis/{ArgumentToParameterMatchResult.d.ts → a/ArgumentToParameterMatchResult.d.ts} +4 -4
- package/build/types/analysis/{ArgumentsToParametersMatcher.d.ts → a/ArgumentsToParametersMatcher.d.ts} +5 -5
- package/build/types/analysis/{AutotypeCallExpressionMeaning.d.ts → a/AutotypeCallExpressionMeaning.d.ts} +8 -9
- package/build/types/analysis/{BaseExpressionMeaning.d.ts → a/BaseExpressionMeaning.d.ts} +7 -8
- package/build/types/analysis/{CallExpressionMeaning.d.ts → a/CallExpressionMeaning.d.ts} +11 -16
- package/build/types/analysis/{ConstructorCallResolver.d.ts → a/ConstructorCallResolver.d.ts} +9 -7
- package/build/types/analysis/a/DeclarationsUsageCounter.d.ts +12 -0
- package/build/types/analysis/{DereferenceExpressionMeaning.d.ts → a/DereferenceExpressionMeaning.d.ts} +5 -5
- package/build/types/analysis/a/ExpressionAnalysisOptions.d.ts +21 -0
- package/build/types/analysis/a/FindModifier.d.ts +5 -0
- package/build/types/analysis/{FunctionAccessResolver.d.ts → a/FunctionAccessResolver.d.ts} +11 -8
- package/build/types/analysis/{IdentifierExpressionMeaning.d.ts → a/IdentifierExpressionMeaning.d.ts} +11 -13
- package/build/types/analysis/{IndexedAccessExpressionMeaning.d.ts → a/IndexedAccessExpressionMeaning.d.ts} +5 -5
- package/build/types/analysis/{InstanceFieldsInitializationValidator.d.ts → a/InstanceFieldsInitializationValidator.d.ts} +4 -4
- package/build/types/analysis/{MemberAccessExpressionMeaning.d.ts → a/MemberAccessExpressionMeaning.d.ts} +15 -23
- package/build/types/analysis/{ModifierValidator.d.ts → a/ModifierValidator.d.ts} +3 -3
- package/build/types/analysis/{NamedTypeResolver.d.ts → a/NamedTypeResolver.d.ts} +5 -5
- package/build/types/analysis/{NamedTypeSpecifierResolver.d.ts → a/NamedTypeSpecifierResolver.d.ts} +4 -4
- package/build/types/analysis/{NodeTypeUtils.d.ts → a/NodeTypeUtils.d.ts} +1 -1
- package/build/types/analysis/{ObjectExpressionMeaning.d.ts → a/ObjectExpressionMeaning.d.ts} +4 -5
- package/build/types/analysis/{OverloadResolver.d.ts → a/OverloadResolver.d.ts} +9 -8
- package/build/types/analysis/{OwnAndBaseConstructorCallsChecker.d.ts → a/OwnAndBaseConstructorCallsChecker.d.ts} +4 -4
- package/build/types/analysis/{OwnConstructorCallExpressionMeaning.d.ts → a/OwnConstructorCallExpressionMeaning.d.ts} +6 -8
- package/build/types/analysis/{PackageAndStaticVariablesInitializationValidator.d.ts → a/PackageAndStaticVariablesInitializationValidator.d.ts} +4 -4
- package/build/types/analysis/{ReductionSourceMemberFinder.d.ts → a/ReductionSourceMemberFinder.d.ts} +5 -6
- package/build/types/analysis/{ReservedNameDictionary.d.ts → a/ReservedNameDictionary.d.ts} +3 -1
- package/build/types/analysis/{AnalyzedTranslationPackage.d.ts → a/ResolvedTranslationPackage.d.ts} +10 -12
- package/build/types/analysis/{ReturnTypeInferrer.d.ts → a/ReturnTypeInferrer.d.ts} +3 -3
- package/build/types/analysis/{SourceFileAnalyzer.d.ts → a/SourceFileAnalyzer.d.ts} +6 -6
- package/build/types/analysis/{SourcePackageMembersCreator.d.ts → a/SourcePackageMembersCreator.d.ts} +3 -3
- package/build/types/analysis/a/SyntacticAccessKind.d.ts +6 -0
- package/build/types/analysis/{TagMeaning.d.ts → a/TagMeaning.d.ts} +14 -21
- package/build/types/analysis/{TextIdentity.d.ts → a/TextIdentity.d.ts} +2 -2
- package/build/types/analysis/{TranslatedEntityNameConflictsValidator.d.ts → a/TranslatedEntityNameConflictsValidator.d.ts} +3 -3
- package/build/types/analysis/{TreeQuery.d.ts → a/TreeQuery.d.ts} +7 -8
- package/build/types/analysis/{TypeArgumentInferrer.d.ts → a/TypeArgumentInferrer.d.ts} +5 -4
- package/build/types/analysis/{TypeInferrer.d.ts → a/TypeInferrer.d.ts} +2 -2
- package/build/types/analysis/{TypeNarrower.d.ts → a/TypeNarrower.d.ts} +2 -2
- package/build/types/analysis/{TypeOverloadResolver.d.ts → a/TypeOverloadResolver.d.ts} +1 -1
- package/build/types/analysis/{UserDefinableBinaryOperatorResolver.d.ts → a/UserDefinableBinaryOperatorResolver.d.ts} +6 -6
- package/build/types/analysis/{UserDefinableUnaryOperatorResolver.d.ts → a/UserDefinableUnaryOperatorResolver.d.ts} +4 -4
- package/build/types/analysis/{control-flow → a/control-flow}/GraphBuilder.d.ts +6 -7
- package/build/types/analysis/{control-flow → a/control-flow}/NarrowableExpression.d.ts +1 -1
- package/build/types/analysis/{control-flow → a/control-flow}/NarrowableReference.d.ts +3 -3
- package/build/types/analysis/{control-flow → a/control-flow}/Nodes.d.ts +1 -1
- package/build/types/analysis/{semantic-context → a/semantic-context}/Declarations.d.ts +4 -4
- package/build/types/analysis/{semantic-context → a/semantic-context}/FieldWithInitializerSemanticContext.d.ts +3 -3
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextBase.d.ts +28 -22
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextBuilder.d.ts +16 -13
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextValidatingNameConflicts.d.ts +4 -4
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextWithParent.d.ts +1 -1
- package/build/types/analysis/{semantic-context → a/semantic-context}/SourceFileSemanticContext.d.ts +9 -10
- package/build/types/analysis/{semantic-context → a/semantic-context}/SpecialLocalDeclarationsBuilder.d.ts +2 -2
- package/build/types/analysis/{semantic-context → a/semantic-context}/SubprogramBodyAndParametersSemanticContext.d.ts +3 -3
- package/build/types/analysis/{semantic-context → a/semantic-context}/SubprogramSemanticContext.d.ts +7 -8
- package/build/types/analysis/{semantic-context → a/semantic-context}/TypeSemanticContext.d.ts +8 -9
- package/build/types/analysis/m/Analyzer.d.ts +10 -0
- package/build/types/api/Api.d.ts +24 -25
- package/build/types/common/LocalizationHelper.d.ts +1 -11
- package/build/types/common/LocalizationHelperA.d.ts +16 -0
- package/build/types/common/Logger.d.ts +1 -1
- package/build/types/common/index.d.ts +1 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +177 -174
- package/build/types/diagnostic/TokenDiagnostic.d.ts +1 -1
- package/build/types/emitter/Emitter.d.ts +1 -1
- package/build/types/emitter/{IrBuilder.d.ts → IrBuilderA.d.ts} +7 -7
- package/build/types/entities/BaseObjectType.d.ts +1 -1
- package/build/types/entities/Entity.d.ts +3 -47
- package/build/types/entities/EntityKind.d.ts +16 -0
- package/build/types/entities/EntityLocalizationContext.d.ts +8 -6
- package/build/types/entities/EntityToStringDecorator.d.ts +4 -0
- package/build/types/entities/IEntity.d.ts +1 -3
- package/build/types/entities/OperatorKind.d.ts +2 -2
- package/build/types/entities/PackageEntityMembers.d.ts +1 -2
- package/build/types/{analysis → entities}/Tag.d.ts +5 -2
- package/build/types/{analysis → entities}/Translation.d.ts +7 -7
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeMemberEntity.d.ts +31 -0
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +4 -5
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -4
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -2
- package/build/types/entities/interfaces/DestructorEntity.d.ts +2 -2
- package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -5
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +3 -5
- package/build/types/entities/interfaces/GetterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/IndexerEntity.d.ts +2 -2
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +2 -2
- package/build/types/entities/interfaces/PackageEntity.d.ts +23 -2
- package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +4 -5
- package/build/types/entities/interfaces/SetterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +3 -5
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +3 -3
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +3 -4
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/VariableEntity.d.ts +11 -11
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +3 -5
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +7 -5
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +9 -4
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicGetterEntity.d.ts +5 -4
- package/build/types/entities/intrinsic/IntrinsicSetterEntity.d.ts +21 -0
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +5 -3
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +6 -4
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +6 -4
- package/build/types/entities/intrinsic/index.d.ts +1 -0
- package/build/types/entities/source/{SourceAliasTypeEntity.d.ts → a/SourceAliasTypeEntity.d.ts} +5 -8
- package/build/types/entities/source/{SourceConstructorEntity.d.ts → a/SourceConstructorEntity.d.ts} +6 -8
- package/build/types/entities/source/{SourceDereferenceOperatorEntity.d.ts → a/SourceDereferenceOperatorEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceDestructorEntity.d.ts → a/SourceDestructorEntity.d.ts} +6 -8
- package/build/types/entities/source/{SourceFunctionEntity.d.ts → a/SourceFunctionEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceFunctionTypeEntity.d.ts → a/SourceFunctionTypeEntity.d.ts} +7 -12
- package/build/types/entities/source/{SourceGetterEntity.d.ts → a/SourceGetterEntity.d.ts} +9 -11
- package/build/types/entities/source/{SourceIndexerEntity.d.ts → a/SourceIndexerEntity.d.ts} +6 -7
- package/build/types/entities/source/{SourcePackageAliasEntity.d.ts → a/SourcePackageAliasEntity.d.ts} +5 -7
- package/build/types/entities/source/a/SourcePackageEntity.d.ts +67 -0
- package/build/types/entities/source/{SourceReducedTypeEntity.d.ts → a/SourceReducedTypeEntity.d.ts} +6 -9
- package/build/types/entities/source/{SourceSetterEntity.d.ts → a/SourceSetterEntity.d.ts} +8 -25
- package/build/types/entities/source/{SourceStructuredTypeEntity.d.ts → a/SourceStructuredTypeEntity.d.ts} +10 -15
- package/build/types/entities/source/{SourceTextTranslationEntity.d.ts → a/SourceTextTranslationEntity.d.ts} +4 -7
- package/build/types/entities/source/{SourceTypeExtensionEntity.d.ts → a/SourceTypeExtensionEntity.d.ts} +5 -8
- package/build/types/entities/source/{SourceTypeParameterEntity.d.ts → a/SourceTypeParameterEntity.d.ts} +6 -9
- package/build/types/entities/source/{SourceVariableEntity.d.ts → a/SourceVariableEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceVariantTypeEntity.d.ts → a/SourceVariantTypeEntity.d.ts} +6 -10
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +11 -21
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +5 -17
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +5 -8
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +10 -14
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +14 -31
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +9 -25
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +6 -16
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +37 -12
- package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +10 -19
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +18 -27
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +8 -15
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +10 -16
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +10 -25
- package/build/types/entities/translated/source/a/SourceTranslatedAliasTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedConstructorEntity.d.ts +12 -0
- package/build/types/entities/translated/source/a/SourceTranslatedDestructorEntity.d.ts +9 -0
- package/build/types/entities/translated/source/a/SourceTranslatedFunctionEntity.d.ts +24 -0
- package/build/types/entities/translated/source/a/SourceTranslatedFunctionTypeEntity.d.ts +13 -0
- package/build/types/entities/translated/source/a/SourceTranslatedIndexerEntity.d.ts +11 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageEntity.d.ts +19 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageStructuredTypeEntity.d.ts +20 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageVariantTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedReducedTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedTypeExtensionEntity.d.ts +9 -0
- package/build/types/entities/translated/source/a/index.d.ts +11 -0
- package/build/types/executor/NodeCompiler.d.ts +1 -1
- package/build/types/parser/{ConvertTokenKind.d.ts → a/ConvertTokenKind.d.ts} +1 -1
- package/build/types/parser/{KeywordDictionary.d.ts → a/KeywordDictionary.d.ts} +4 -3
- package/build/types/parser/{Parser.d.ts → a/Parser.d.ts} +2 -2
- package/build/types/parser/a/TokenKind.d.ts +80 -0
- package/build/types/parser/{TriviaInterner.d.ts → a/TriviaInterner.d.ts} +1 -1
- package/build/types/project/CompilationLoader.d.ts +3 -3
- package/build/types/project/SourceFile.d.ts +34 -10
- package/build/types/project/SourcePackage.d.ts +71 -19
- package/build/types/project/configuration/ConfigurationConverter.d.ts +3 -5
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +7 -6
- package/build/types/project/configuration/ConfigurationTranslator.d.ts +1 -3
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +1 -2
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +1 -2
- package/build/types/services/LanguageServer.d.ts +10 -10
- package/build/types/services/a/CodeActionsService.d.ts +10 -0
- package/build/types/services/{CompletionService.d.ts → a/CompletionService.d.ts} +5 -52
- package/build/types/services/a/DefinitionService.d.ts +11 -0
- package/build/types/services/a/DisplayService.d.ts +57 -0
- package/build/types/services/a/EvaluatableExpressionService.d.ts +10 -0
- package/build/types/services/a/HoverService.d.ts +11 -0
- package/build/types/services/a/NodeSemanticInfo.d.ts +45 -0
- package/build/types/services/a/RenameService.d.ts +11 -0
- package/build/types/services/a/ScriptEditingService.d.ts +13 -0
- package/build/types/services/a/SelectionRangeService.d.ts +7 -0
- package/build/types/services/a/SemanticTokensService.d.ts +11 -0
- package/build/types/services/a/SourceFileItemsService.d.ts +11 -0
- package/build/types/services/{TranslationService.d.ts → a/TranslationService.d.ts} +4 -4
- package/build/types/services/a/TranslationsGenerationService.d.ts +7 -0
- package/build/types/services/{TreeUtils.d.ts → a/TreeUtils.d.ts} +1 -1
- package/build/types/services/a/references/DefinitionInfoFinder.d.ts +6 -0
- package/build/types/services/a/references/ReferencesFinder.d.ts +7 -0
- package/build/types/services/{signature-help → a/signature-help}/ParametersSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/a/signature-help/SignatureHelpService.d.ts +6 -0
- package/build/types/services/{signature-help → a/signature-help}/SignatureWithParameters.d.ts +6 -6
- package/build/types/services/{signature-help → a/signature-help}/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/{signature-help → a/signature-help}/utils.d.ts +1 -1
- package/build/types/services/{FileSystemTreeDisplayService.d.ts → common/FileSystemTreeDisplayService.d.ts} +1 -1
- package/build/types/services/{Types.d.ts → common/Types.d.ts} +5 -5
- package/build/types/services/{Utils.d.ts → common/Utils.d.ts} +2 -2
- package/build/types/services/common/WorkspaceItemsService.d.ts +6 -0
- package/build/types/services/{CodeActionsService.d.ts → common/code-action/Types.d.ts} +8 -9
- package/build/types/services/common/completion/Types.d.ts +49 -0
- package/build/types/services/common/definition/DefinitionService.d.ts +23 -0
- package/build/types/services/common/definition/Types.d.ts +7 -0
- package/build/types/services/common/display/BaseDisplayService.d.ts +41 -0
- package/build/types/services/common/display/DisplayService.d.ts +52 -0
- package/build/types/services/{DisplayService.d.ts → common/display/Types.d.ts} +60 -177
- package/build/types/services/common/display/index.d.ts +2 -0
- package/build/types/services/common/document-highlights/DocumentHighlightsService.d.ts +9 -0
- package/build/types/services/common/document-highlights/Types.d.ts +11 -0
- package/build/types/services/common/evaluatable-expression/Types.d.ts +6 -0
- package/build/types/services/common/hover/HoverService.d.ts +16 -0
- package/build/types/services/common/hover/Types.d.ts +8 -0
- package/build/types/services/common/node-semantic-info/Types.d.ts +101 -0
- package/build/types/services/common/references/ReferencesFinder.d.ts +14 -0
- package/build/types/services/common/references/ReferencesSearchUtils.d.ts +5 -0
- package/build/types/services/common/references/ReferencesService.d.ts +12 -0
- package/build/types/services/common/references/Types.d.ts +41 -0
- package/build/types/services/common/rename/RenameService.d.ts +17 -0
- package/build/types/services/common/rename/Types.d.ts +8 -0
- package/build/types/services/common/script-editing/ScriptEditingService.d.ts +9 -0
- package/build/types/services/common/script-editing/Types.d.ts +9 -0
- package/build/types/services/common/selection-rage/Types.d.ts +6 -0
- package/build/types/services/{SemanticTokensService.d.ts → common/semantic-tokens/Types.d.ts} +1 -10
- package/build/types/services/{signature-help/SignatureHelpService.d.ts → common/signature-help/Types.d.ts} +1 -6
- package/build/types/services/{SourceFileItemsService.d.ts → common/source-file-items/Types.d.ts} +7 -16
- package/build/types/services/{source-generation → common/source-generation}/EntityToSyntax.d.ts +3 -3
- package/build/types/services/{source-generation → common/source-generation}/SourceGenerationService.d.ts +6 -6
- package/build/types/services/workspace/CompilationController.d.ts +5 -4
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +1 -1
- package/build/types/services/workspace/Workspace.d.ts +1 -1
- package/build/types/tree/NodePath.d.ts +6 -2
- package/build/types/tree/Types.d.ts +7 -0
- package/build/types/tree/Utils.d.ts +4 -7
- package/build/types/tree/a/BaseNode.d.ts +42 -0
- package/build/types/tree/{Nodes.d.ts → a/Nodes.d.ts} +87 -66
- package/build/types/tree/{SyntaxFactory.d.ts → a/SyntaxFactory.d.ts} +8 -4
- package/build/types/tree/{SyntaxToCode.d.ts → a/SyntaxToCode.d.ts} +2 -2
- package/build/types/tree/a/Token.d.ts +46 -0
- package/build/types/tree/a/TokenKind.d.ts +74 -0
- package/build/types/tree/a/TreeTraversal.d.ts +18 -0
- package/build/types/tree/a/Types.d.ts +45 -0
- package/build/types/tree/a/Utils.d.ts +3 -0
- package/build/types/tree/a/index.d.ts +15 -0
- package/build/types/tree/index.d.ts +1 -9
- package/build/types/tree/{BaseNode.d.ts → m/BaseNode.d.ts} +4 -27
- package/build/types/tree/m/NodeKind.d.ts +4 -0
- package/build/types/tree/m/Nodes.d.ts +17 -0
- package/build/types/tree/m/TokenKind.d.ts +74 -0
- package/build/types/tree/m/TriviaKind.d.ts +7 -0
- package/build/types/tree/m/index.d.ts +5 -0
- package/build/types/ts-interop/Entities.d.ts +9 -353
- package/build/types/ts-interop/TsInteropContext.d.ts +5 -14
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -2
- package/build/types/ts-interop/TsUtils.d.ts +10 -0
- package/build/types/ts-interop/TypeEntities.d.ts +359 -0
- package/build/types/ts-interop/Utils.d.ts +1 -1
- package/build/types/types/AliasType.d.ts +6 -8
- package/build/types/types/FunctionType.d.ts +7 -8
- package/build/types/types/IntersectionType.d.ts +4 -7
- package/build/types/types/ParameterType.d.ts +7 -9
- package/build/types/types/ReducedType.d.ts +6 -8
- package/build/types/types/StandardTypes.d.ts +4 -2
- package/build/types/types/StructuredType.d.ts +6 -7
- package/build/types/types/SubstitutionStubType.d.ts +5 -8
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +15 -9
- package/build/types/types/TypeFactory.d.ts +11 -2
- package/build/types/types/TypeMembers.d.ts +5 -2
- package/build/types/types/UnionType.d.ts +4 -7
- package/build/types/types/UnresolvedType.d.ts +4 -7
- package/build/types/types/VariantType.d.ts +6 -8
- package/package.json +13 -11
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +0 -21
- package/build/types/analysis/FindModifier.d.ts +0 -7
- package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +0 -9
- package/build/types/analysis/Utils.d.ts +0 -47
- package/build/types/analysis/Visitor.d.ts +0 -7
- package/build/types/analysis/index.d.ts +0 -8
- package/build/types/common/TreeTraversal.d.ts +0 -14
- package/build/types/entities/source/SourcePackageEntity.d.ts +0 -33
- package/build/types/parser/TokenKind.d.ts +0 -75
- package/build/types/services/DefinitionService.d.ts +0 -24
- package/build/types/services/DocumentHighlightsService.d.ts +0 -18
- package/build/types/services/EvaluatableExpressionService.d.ts +0 -15
- package/build/types/services/HoverService.d.ts +0 -17
- package/build/types/services/NodeSemanticInfo.d.ts +0 -147
- package/build/types/services/ReferencesService.d.ts +0 -30
- package/build/types/services/RenameService.d.ts +0 -17
- package/build/types/services/ScriptEditingService.d.ts +0 -25
- package/build/types/services/SelectionRangeService.d.ts +0 -12
- package/build/types/services/TranslationsGenerationService.d.ts +0 -7
- package/build/types/services/WorkspaceItemsService.d.ts +0 -6
- package/build/types/tree/TokenKind.d.ts +0 -74
- /package/build/types/analysis/{ModifierFlags.d.ts → a/ModifierFlags.d.ts} +0 -0
- /package/build/types/analysis/{ReachabilityChecker.d.ts → a/ReachabilityChecker.d.ts} +0 -0
- /package/build/types/analysis/{VariableIsAssignedChecker.d.ts → a/VariableIsAssignedChecker.d.ts} +0 -0
- /package/build/types/analysis/{VariableIsNotAssignedChecker.d.ts → a/VariableIsNotAssignedChecker.d.ts} +0 -0
- /package/build/types/analysis/{control-flow → a/control-flow}/GraphVisualizer.d.ts +0 -0
- /package/build/types/analysis/{control-flow → a/control-flow}/index.d.ts +0 -0
- /package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContext.d.ts +0 -0
- /package/build/types/analysis/{semantic-context → a/semantic-context}/index.d.ts +0 -0
- /package/build/types/entities/source/{index.d.ts → a/index.d.ts} +0 -0
- /package/build/types/parser/{Scanner.d.ts → a/Scanner.d.ts} +0 -0
- /package/build/types/tree/{KeywordFlags.d.ts → a/KeywordFlags.d.ts} +0 -0
- /package/build/types/tree/{KeywordKind.d.ts → a/KeywordKind.d.ts} +0 -0
- /package/build/types/tree/{NodeKind.d.ts → a/NodeKind.d.ts} +0 -0
- /package/build/types/tree/{NodesDebug.d.ts → a/NodesDebug.d.ts} +0 -0
- /package/build/types/tree/{OperatorKind.d.ts → a/OperatorKind.d.ts} +0 -0
- /package/build/types/tree/{TokenFlags.d.ts → a/TokenFlags.d.ts} +0 -0
- /package/build/types/tree/{TriviaKind.d.ts → a/TriviaKind.d.ts} +0 -0
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import { Name, PackageLocale, TaskController } from '../../common/index.js';
|
|
2
|
+
import { Diagnostic, DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
3
|
+
import { WithDiagnostics } from '../../diagnostic/WithDiagnostics.js';
|
|
4
|
+
import { BinaryOperatorKind } from '../../entities/OperatorKind.js';
|
|
5
|
+
import * as tags from '../../entities/Tag.js';
|
|
6
|
+
import * as e from '../../entities/index.js';
|
|
7
|
+
import * as se from '../../entities/source/a/index.js';
|
|
8
|
+
import * as project from '../../project/index.js';
|
|
9
|
+
import * as tree from '../../tree/a/index.js';
|
|
10
|
+
import * as types from '../../types/index.js';
|
|
11
|
+
import { AccessedFunction, NotSubstitutedAccessedFunction } from '../AccessedFunction.js';
|
|
12
|
+
import { Analyzer as BaseAnalyzer } from '../Analyzer.js';
|
|
13
|
+
import { DeclarationsUsageMap } from '../DeclarationsUsageMap.js';
|
|
14
|
+
import { ImportedPackageNameTree, PackageImportInfo, PackageNameTreeNode } from '../ImportedPackageNameTree.js';
|
|
15
|
+
import { NodeOrDiagnosticLocation } from '../NodeOrDiagnosticLocation.js';
|
|
16
|
+
import { TsInteropInputs } from '../TsInteropInputs.js';
|
|
17
|
+
import { Analyzer as AnalyzerM } from '../m/Analyzer.js';
|
|
18
|
+
import { ArgumentToParameterMatchResult, MatchResultParameter } from './ArgumentToParameterMatchResult.js';
|
|
19
|
+
import * as autotypeCallExpressionMeaning from './AutotypeCallExpressionMeaning.js';
|
|
20
|
+
import * as baseExpressionMeaning from './BaseExpressionMeaning.js';
|
|
21
|
+
import * as callExpressionMeaning from './CallExpressionMeaning.js';
|
|
22
|
+
import * as dereferenceExpressionMeaning from './DereferenceExpressionMeaning.js';
|
|
23
|
+
import { ExpressionAnalysisOptions } from './ExpressionAnalysisOptions.js';
|
|
24
|
+
import * as identifierExpressionResolution from './IdentifierExpressionMeaning.js';
|
|
25
|
+
import * as indexedAccessExpressionMeaning from './IndexedAccessExpressionMeaning.js';
|
|
26
|
+
import * as memberAccessExpressionResolution from './MemberAccessExpressionMeaning.js';
|
|
27
|
+
import { ModifierFlags } from './ModifierFlags.js';
|
|
28
|
+
import { NamedTypeSpecifierResolutionResult } from './NamedTypeSpecifierResolver.js';
|
|
29
|
+
import * as objectExpressionMeaning from './ObjectExpressionMeaning.js';
|
|
30
|
+
import { OwnAndBaseConstructorCallsCheckResult } from './OwnAndBaseConstructorCallsChecker.js';
|
|
31
|
+
import * as ownConstructorCallExpressionMeaning from './OwnConstructorCallExpressionMeaning.js';
|
|
32
|
+
import { ReachabilityChecker } from './ReachabilityChecker.js';
|
|
33
|
+
import { ReductionSourceMemberFinder } from './ReductionSourceMemberFinder.js';
|
|
34
|
+
import { ReservedNameKind } from './ReservedNameDictionary.js';
|
|
35
|
+
import { SyntacticAccessKind } from './SyntacticAccessKind.js';
|
|
36
|
+
import * as tagMeaning from './TagMeaning.js';
|
|
37
|
+
import { TypeWithMembersOrTypeExtensionDeclaration } from './TreeQuery.js';
|
|
38
|
+
import * as controlFlow from './control-flow/index.js';
|
|
39
|
+
import * as semanticContext from './semantic-context/index.js';
|
|
40
|
+
/**
|
|
41
|
+
* Анализатор диалекта А. Является основным анализатором, и имеет ссылку на анализатор диалекта М.
|
|
42
|
+
*/
|
|
43
|
+
export declare class Analyzer extends BaseAnalyzer {
|
|
44
|
+
readonly dialectM: AnalyzerM;
|
|
45
|
+
readonly type: Type;
|
|
46
|
+
readonly returnType: ReturnType;
|
|
47
|
+
readonly entity: Entity;
|
|
48
|
+
readonly resultLocalVariableEntity: ResultLocalVariableEntity;
|
|
49
|
+
readonly valueLocalVariableEntity: ValueLocalVariableEntity;
|
|
50
|
+
readonly semanticContext: semanticContext.SemanticContextBuilder;
|
|
51
|
+
readonly argumentToParameterMatchResult: ArgumentToParameterMatchResult;
|
|
52
|
+
readonly tags: Tags;
|
|
53
|
+
readonly packageImports: PackageImports;
|
|
54
|
+
readonly reachabilityChecker: ReachabilityChecker;
|
|
55
|
+
readonly reductionSourceMemberFinder: ReductionSourceMemberFinder;
|
|
56
|
+
get dialectA(): Analyzer;
|
|
57
|
+
private readonly targetType;
|
|
58
|
+
private readonly memberAccessExpressionResolutionResults;
|
|
59
|
+
private readonly memberAccessExpressionResolutionResultsFirstStage;
|
|
60
|
+
private readonly callExpressionResolutionResults;
|
|
61
|
+
private readonly indexedAccessExpressionResolutionResults;
|
|
62
|
+
private readonly dereferenceExpressionMeanings;
|
|
63
|
+
private readonly ownConstructorCallExpressionMeanings;
|
|
64
|
+
private readonly autotypeCallExpressionResolutionResults;
|
|
65
|
+
private readonly identifierExpressionResolutionResults;
|
|
66
|
+
private readonly identifierExpressionResolutionResultsFirstStage;
|
|
67
|
+
private readonly tagResolutionResults;
|
|
68
|
+
private readonly objectExpressionResolutionResults;
|
|
69
|
+
private readonly baseExpressionResolutionResultsFirstStage;
|
|
70
|
+
private readonly baseExpressionResolutionResults;
|
|
71
|
+
private readonly namedTypeSpecifierResolutionResults;
|
|
72
|
+
private readonly prefixUnaryExpressionOperatorResolutionResults;
|
|
73
|
+
private readonly binaryExpressionUserDefinableOperatorResolutionResults;
|
|
74
|
+
private readonly assignmentStatementOperatorResolutionResults;
|
|
75
|
+
private resolvedLocalizableTexts;
|
|
76
|
+
private readonly isFunctionGeneratorCheckResults;
|
|
77
|
+
private readonly namedDeclarationsUsageCountResults;
|
|
78
|
+
private readonly packageAndStaticVariablesInitializationDiagnostics;
|
|
79
|
+
private readonly controlFlowGraphs;
|
|
80
|
+
private readonly sourcePackageMemberConflictsDiagnostics;
|
|
81
|
+
private readonly ownAndBaseConstructorCallsCheckResults;
|
|
82
|
+
private readonly expressionCanBeUsedInForLoopCheckResults;
|
|
83
|
+
private readonly nameByIdentifierText;
|
|
84
|
+
constructor(compilation: project.Compilation, tsInteropInputs: TsInteropInputs);
|
|
85
|
+
getProjectSourceFileA(node: tree.SourceFile): project.SourceFileA;
|
|
86
|
+
checkExpressionCanBeUsedInForLoop(node: tree.Expression): WithDiagnostics<ExpressionCanBeUsedInForLoopCheckResult>;
|
|
87
|
+
expressionCanBeReferenced(node: tree.Expression): boolean;
|
|
88
|
+
checkBlockCallsAsyncMethods(node: tree.StatementBlock | tree.FunctionBlock): boolean;
|
|
89
|
+
getSyntacticAccessKind(node: tree.Expression): SyntacticAccessKind;
|
|
90
|
+
getEntityContainingTypeMemberDeclaration(node: tree.TypeMemberDeclaration): e.TypeWithMembersOrExtensionEntity;
|
|
91
|
+
getTargetTypeOfExpression(node: tree.Expression, analysisOptions?: ExpressionAnalysisOptions): types.Type | undefined;
|
|
92
|
+
resolveMemberAccessExpressionFirstStage(node: tree.MemberAccessExpression): memberAccessExpressionResolution.MeaningStage1;
|
|
93
|
+
resolveMemberAccessExpression(node: tree.MemberAccessExpression, analysisOptions?: ExpressionAnalysisOptions): memberAccessExpressionResolution.Meaning;
|
|
94
|
+
resolveCallExpression(node: tree.CallExpression, analysisOptions?: ExpressionAnalysisOptions): callExpressionMeaning.Meaning;
|
|
95
|
+
getRespectiveParameter(node: tree.Argument): MatchResultParameter | undefined;
|
|
96
|
+
resolveIndexedAccessExpression(node: tree.IndexedAccessExpression): indexedAccessExpressionMeaning.Meaning;
|
|
97
|
+
resolveDereferenceExpression(node: tree.DereferenceExpression): dereferenceExpressionMeaning.Meaning;
|
|
98
|
+
resolveAutotypeCallExpression(node: tree.AutotypeCallExpression, analysisOptions?: ExpressionAnalysisOptions): autotypeCallExpressionMeaning.ResolutionResult;
|
|
99
|
+
resolveOwnConstructorCallExpression(node: tree.OwnConstructorCallExpression): ownConstructorCallExpressionMeaning.Meaning;
|
|
100
|
+
resolveIdentifierExpressionFirstStage(node: tree.IdentifierExpression): identifierExpressionResolution.MeaningStage1;
|
|
101
|
+
resolveIdentifierExpression(node: tree.IdentifierExpression, analysisOptions?: ExpressionAnalysisOptions): identifierExpressionResolution.Meaning;
|
|
102
|
+
resolveTag(node: tree.Tag): tagMeaning.ResolutionResult;
|
|
103
|
+
resolveObjectExpression(node: tree.ObjectExpression): objectExpressionMeaning.Meaning;
|
|
104
|
+
resolveBaseExpressionFirstStage(node: tree.BaseExpression): baseExpressionMeaning.MeaningStage1;
|
|
105
|
+
resolveBaseExpression(node: tree.BaseExpression): baseExpressionMeaning.Meaning;
|
|
106
|
+
/**
|
|
107
|
+
* Проверяет, является ли выражение цепочкой доступов через `?`, заканчивающейся выражением, тип которого допускает
|
|
108
|
+
* `пусто`.
|
|
109
|
+
*
|
|
110
|
+
* Пример:
|
|
111
|
+
* ```artel
|
|
112
|
+
* а?.б
|
|
113
|
+
* а?[1]
|
|
114
|
+
* а?^
|
|
115
|
+
* а?()
|
|
116
|
+
* (а)?.б
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* где тип переменной `а` допускает `пусто`.
|
|
120
|
+
*/
|
|
121
|
+
isExpressionValidOptionalChaining(node: tree.Expression): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Проверяет, является ли выражение цепочкой доступов через `?`.
|
|
124
|
+
*
|
|
125
|
+
* Пример:
|
|
126
|
+
* ```artel
|
|
127
|
+
* а?.б
|
|
128
|
+
* а?[1]
|
|
129
|
+
* а?^
|
|
130
|
+
* а?()
|
|
131
|
+
* (а?.б)
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
isExpressionOptionalChainingSyntactically(node: tree.Expression): boolean;
|
|
135
|
+
isExpressionValidOutermostOptionalChaining(node: tree.Expression): boolean;
|
|
136
|
+
includeNullToTypeIfExpressionValidOutermostOptionalChaining(type: types.Type, node: tree.Expression): types.Type;
|
|
137
|
+
checkIdentifierNameIsReserved(name: Name, locale: PackageLocale): ReservedNameKind | undefined;
|
|
138
|
+
getReservedName(reservedNameKind: ReservedNameKind, locale: PackageLocale): Name;
|
|
139
|
+
createNameFromIdentifier(node: tree.Identifier): Name;
|
|
140
|
+
resolveNamedTypeSpecifier(node: tree.NamedTypeSpecifier): NamedTypeSpecifierResolutionResult;
|
|
141
|
+
getDenotedType(expression: tree.Expression): types.Type | undefined;
|
|
142
|
+
isExpressionDenotingType(expression: tree.Expression): boolean;
|
|
143
|
+
getDenotedPackageAlias(expression: tree.Expression): e.PackageAliasEntity | undefined;
|
|
144
|
+
getDenotedFunction(expression: tree.Expression): ExpressionDenotesFunctionCheckResult | undefined;
|
|
145
|
+
isExpressionDenotingFunction(expression: tree.Expression): boolean;
|
|
146
|
+
getDenotedPackageNameTreeNode(expression: tree.Expression): PackageNameTreeNode | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* Функция считается генератором, если:
|
|
149
|
+
* - Использует команду `выдать`.
|
|
150
|
+
* - Не использует команду `выдать`, но её возвращаемым типом является `Перебираемый` или `Перебор`, она не
|
|
151
|
+
* возвращает значение и не использует переменную `результат` (использование команды `вернуть` без указания
|
|
152
|
+
* возвращаемого значения допустимо). В таком случае это генератор, не возвращающий ни одного элемента.
|
|
153
|
+
*/
|
|
154
|
+
isFunctionGenerator(node: tree.FunctionDeclaration): boolean;
|
|
155
|
+
resolvePrefixUnaryExpressionUserDefinableOperator(node: tree.PrefixUnaryExpression): types.Method | undefined;
|
|
156
|
+
resolveBinaryExpressionUserDefinableOperator(node: tree.BinaryExpression, operatorKind: BinaryOperatorKind): types.Method | undefined;
|
|
157
|
+
resolveCompoundAssignmentStatementOperator(node: tree.AssignmentStatement, operatorKind: BinaryOperatorKind): types.Method | undefined;
|
|
158
|
+
classifyBinaryExpressionOperator(operator: tree.BinaryExpressionOperator): BinaryExpressionOperatorClassificationResult;
|
|
159
|
+
getBinaryOperatorKindIfCompoundAssignmentOperator(operator: tree.AssignmentStatementOperator): BinaryOperatorKind | undefined;
|
|
160
|
+
resolveLocalizableTextOrTextTemplate(node: tree.LocalizableTextLiteral | tree.LocalizableTextTemplateLiteral): e.TextTranslationEntity | undefined;
|
|
161
|
+
createPackageMemberHiding(node: tree.PackageMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
|
162
|
+
createTypeMemberHiding(node: tree.TypeMemberDeclaration, modifierFlags: ModifierFlags): e.EntityHidingLevel | undefined;
|
|
163
|
+
getDeclarationsUsageOfSourceFileA(sourceFile: tree.SourceFile, taskController: TaskController): Promise<DeclarationsUsageMap>;
|
|
164
|
+
getPackageAndStaticVariablesInitializationDiagnostics(pkg: project.SourcePackageA, taskController: TaskController): Promise<readonly Diagnostic[]>;
|
|
165
|
+
createDefaultConstructors(typeEntity: e.StructuredTypeEntity, fields: readonly e.FieldEntity[]): readonly e.ConstructorEntity[];
|
|
166
|
+
createBackingPackageVariables(declaredPackageMembers: readonly e.NamedPackageMemberEntity[], pkg: e.PackageEntity): e.PackageVariableEntity[];
|
|
167
|
+
createBackingFields(declaredMembers: readonly e.NamedTypeMemberEntity[], type: e.TypeEntity): e.FieldEntity[];
|
|
168
|
+
getDeclaredTypeMemberEntities(node: tree.TypeMemberDeclarationBlock): DeclaredTypeMemberEntities;
|
|
169
|
+
checkBodyOfBasicAliasTypeMethod(node: tree.MethodDeclaration, diagnostics?: DiagnosticAcceptor): {
|
|
170
|
+
basicMethodOfOriginalType: e.MethodEntity;
|
|
171
|
+
} | undefined;
|
|
172
|
+
getControlFlowGraph(sourceFile: project.SourceFileA): controlFlow.GraphBuildResult;
|
|
173
|
+
validateSourcePackageMemberConflicts(pkg: project.ProgramOrTextTranslationPackage): readonly Diagnostic[];
|
|
174
|
+
determineUnderlyingTypeOfSourceVariantType(memberList: tree.TypeMemberDeclarationList): types.Type;
|
|
175
|
+
getOwnAndBaseConstructorCallsCheckResult(node: tree.TypeWithMembersDeclaration): OwnAndBaseConstructorCallsCheckResult;
|
|
176
|
+
isConstructorCallingOwnConstructor(node: tree.ConstructorDeclaration): boolean;
|
|
177
|
+
ifCalleeThenCallExpression(node: tree.Expression): tree.CallExpression | undefined;
|
|
178
|
+
getNodeForAmbiguousAccessDiagnostic(access: tree.Expression): tree.Node;
|
|
179
|
+
isPossibleWrappedTargetTypeDependentFunctionLiteral(node: tree.Expression): boolean;
|
|
180
|
+
isTargetTypeDependentFunctionLiteral(node: tree.Expression): node is tree.RegularOrBlockFunctionLiteral;
|
|
181
|
+
checkTypeArgumentCount(typeArgumentCount: number, typeParameters: readonly e.TypeParameterEntity[], diagnostics?: DiagnosticAcceptor, diagnosticLocation?: NodeOrDiagnosticLocation): boolean;
|
|
182
|
+
checkTypeCanBeUsedAsValue(typeAccess: tree.Expression): boolean;
|
|
183
|
+
isPossiblyCastedBaseExpression(node: tree.Expression): boolean;
|
|
184
|
+
createAmbiguousNamedScopeDeclarationAccessDiagnostic(declarations: readonly semanticContext.NamedDeclaration[], nodeOrLocation: NodeOrDiagnosticLocation): Diagnostic;
|
|
185
|
+
}
|
|
186
|
+
export type BinaryExpressionOperatorClassificationResult = {
|
|
187
|
+
kind: 'user-definable';
|
|
188
|
+
operatorKind: BinaryOperatorKind;
|
|
189
|
+
} | {
|
|
190
|
+
kind: 'question-question';
|
|
191
|
+
} | {
|
|
192
|
+
kind: 'equals';
|
|
193
|
+
} | {
|
|
194
|
+
kind: 'not-equals';
|
|
195
|
+
};
|
|
196
|
+
export declare namespace BinaryExpressionOperatorClassificationResult {
|
|
197
|
+
const multiply: BinaryExpressionOperatorClassificationResult;
|
|
198
|
+
const greaterThan: BinaryExpressionOperatorClassificationResult;
|
|
199
|
+
const greaterThanOrEqual: BinaryExpressionOperatorClassificationResult;
|
|
200
|
+
const lessThan: BinaryExpressionOperatorClassificationResult;
|
|
201
|
+
const lessThanOrEqual: BinaryExpressionOperatorClassificationResult;
|
|
202
|
+
const subtract: BinaryExpressionOperatorClassificationResult;
|
|
203
|
+
const add: BinaryExpressionOperatorClassificationResult;
|
|
204
|
+
const divide: BinaryExpressionOperatorClassificationResult;
|
|
205
|
+
const modulo: BinaryExpressionOperatorClassificationResult;
|
|
206
|
+
const bitwiseAnd: BinaryExpressionOperatorClassificationResult;
|
|
207
|
+
const bitwiseOr: BinaryExpressionOperatorClassificationResult;
|
|
208
|
+
const bitwiseXor: BinaryExpressionOperatorClassificationResult;
|
|
209
|
+
const leftShift: BinaryExpressionOperatorClassificationResult;
|
|
210
|
+
const signedRightShift: BinaryExpressionOperatorClassificationResult;
|
|
211
|
+
const unsignedRightShift: BinaryExpressionOperatorClassificationResult;
|
|
212
|
+
const and: BinaryExpressionOperatorClassificationResult;
|
|
213
|
+
const or: BinaryExpressionOperatorClassificationResult;
|
|
214
|
+
const xor: BinaryExpressionOperatorClassificationResult;
|
|
215
|
+
const equals: BinaryExpressionOperatorClassificationResult;
|
|
216
|
+
const notEquals: BinaryExpressionOperatorClassificationResult;
|
|
217
|
+
const questionQuestion: BinaryExpressionOperatorClassificationResult;
|
|
218
|
+
}
|
|
219
|
+
export declare class ExpressionCanBeUsedInForLoopCheckResult {
|
|
220
|
+
readonly elementType: types.Type;
|
|
221
|
+
readonly ifTypeDoesNotImplementEnumerableThenEnumeratorMethod: types.Method | undefined;
|
|
222
|
+
constructor(elementType: types.Type, ifTypeDoesNotImplementEnumerableThenEnumeratorMethod: types.Method | undefined);
|
|
223
|
+
}
|
|
224
|
+
declare class Type {
|
|
225
|
+
private readonly analyzer;
|
|
226
|
+
private readonly unionTypeSpecifierTypes;
|
|
227
|
+
private readonly intersectionTypeSpecifierTypes;
|
|
228
|
+
private readonly functionLiteralTypes;
|
|
229
|
+
private readonly nodesForWhichReturnTypeInferenceDiagnosticHasBeenReported;
|
|
230
|
+
private recursionDepth;
|
|
231
|
+
constructor(analyzer: Analyzer);
|
|
232
|
+
ofExpression(node: tree.Expression, analysisOptions?: ExpressionAnalysisOptions): types.Type;
|
|
233
|
+
ofTypeSpecifier(node: tree.TypeSpecifier): types.Type;
|
|
234
|
+
private ofExpressionWithoutGuard;
|
|
235
|
+
private ofFunctionBlockLiteral;
|
|
236
|
+
private ofFunctionLiteral;
|
|
237
|
+
private ofRegularOrBlockFunctionLiteral;
|
|
238
|
+
private createFunctionTypeOfFunctionEntity;
|
|
239
|
+
private ofArrayLiteral;
|
|
240
|
+
private ofAssertionExpression;
|
|
241
|
+
private ofAssumptionExpression;
|
|
242
|
+
private ofAsExpression;
|
|
243
|
+
private ofBinaryExpression;
|
|
244
|
+
private ofCallExpression;
|
|
245
|
+
private ofAutotypeCallExpression;
|
|
246
|
+
private ofIndexedAccessExpression;
|
|
247
|
+
private ofMissingExpression;
|
|
248
|
+
private ofIsExpression;
|
|
249
|
+
private ofParenthesizedExpression;
|
|
250
|
+
private ofPrefixUnaryExpression;
|
|
251
|
+
private ofMemberAccessExpression;
|
|
252
|
+
private ofReferenceExpression;
|
|
253
|
+
private ofDereferenceExpression;
|
|
254
|
+
private ofConditionalExpression;
|
|
255
|
+
private ofTextLiteral;
|
|
256
|
+
/**
|
|
257
|
+
* По умолчанию литерал шаблона текста имеет тип Текст.
|
|
258
|
+
*
|
|
259
|
+
* Литерал шаблона текста имеет тип ШаблонТекста в следующих случаях:
|
|
260
|
+
* - если он присваивается в переменную, имеющую тип ШаблонТекста;
|
|
261
|
+
* - если он присваивается в переменную, имеющую союзный тип, содержащий тип ШаблонТекста
|
|
262
|
+
* и не содержащий тип Текст.
|
|
263
|
+
*/
|
|
264
|
+
private ofTextTemplateLiteral;
|
|
265
|
+
private ofIdentifierExpression;
|
|
266
|
+
private ofTokenExpression;
|
|
267
|
+
private ofKeywordExpression;
|
|
268
|
+
private ofObjectExpression;
|
|
269
|
+
private ofBaseExpression;
|
|
270
|
+
private ofGenericSpecializationExpression;
|
|
271
|
+
private ofDefaultMatchExpression;
|
|
272
|
+
private ofOwnConstructorCallExpression;
|
|
273
|
+
private ofAnonymousTypeSpecifier;
|
|
274
|
+
private ofNamedTypeSpecifier;
|
|
275
|
+
private ofParenthesizedTypeSpecifier;
|
|
276
|
+
private ofNullableTypeSpecifier;
|
|
277
|
+
private ofUnionTypeSpecifier;
|
|
278
|
+
private ofIntersectionTypeSpecifier;
|
|
279
|
+
private ofInvalidTypeSpecifier;
|
|
280
|
+
private reportReturnTypeCanNotBeInferredDiagnostic;
|
|
281
|
+
private getNarrowedTypeIfNarrowableReference;
|
|
282
|
+
}
|
|
283
|
+
declare class ReturnType {
|
|
284
|
+
private readonly analyzer;
|
|
285
|
+
constructor(analyzer: Analyzer);
|
|
286
|
+
ofAnonymousFunctionTypeDeclaration(node: tree.AnonymousFunctionTypeDeclaration): types.Type;
|
|
287
|
+
ofFunctionBlockLiteral(node: tree.FunctionBlockLiteral): types.Type;
|
|
288
|
+
ofPackageFunctionDeclaration(node: tree.PackageFunctionDeclaration): types.Type;
|
|
289
|
+
ofNestedFunctionDeclaration(node: tree.NestedFunctionDeclaration): types.Type;
|
|
290
|
+
ofFunctionLiteral(node: tree.FunctionLiteral): types.Type;
|
|
291
|
+
ofMethodDeclaration(node: tree.MethodDeclaration): types.Type;
|
|
292
|
+
ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): types.Type;
|
|
293
|
+
ofFieldGetterDeclaration(node: tree.FieldGetterDeclaration): types.Type;
|
|
294
|
+
ofDereferencedVariableGetterDeclaration(node: tree.DereferencedVariableGetterDeclaration): types.Type;
|
|
295
|
+
ofIndexedElementGetterDeclaration(node: tree.IndexedElementGetterDeclaration): types.Type;
|
|
296
|
+
ofFunctionDeclaration(node: tree.FunctionDeclaration): types.Type;
|
|
297
|
+
ofTextTranslationFunctionDeclaration(node: tree.TextTranslationFunctionDeclaration): types.Type;
|
|
298
|
+
}
|
|
299
|
+
declare class Entity {
|
|
300
|
+
private readonly analyzer;
|
|
301
|
+
private readonly packageEntities;
|
|
302
|
+
private readonly programPackageEntities;
|
|
303
|
+
private readonly nameTranslationPackageEntities;
|
|
304
|
+
private readonly textTranslationPackageEntities;
|
|
305
|
+
private readonly packageVariableEntities;
|
|
306
|
+
private readonly fieldEntities;
|
|
307
|
+
private readonly parameterEntities;
|
|
308
|
+
private readonly localVariableEntities;
|
|
309
|
+
private readonly typeParameterEntities;
|
|
310
|
+
private readonly indexerEntities;
|
|
311
|
+
private readonly referenceOperatorEntities;
|
|
312
|
+
private readonly packageStructuredTypeEntities;
|
|
313
|
+
private readonly anonymousStructuredTypeEntities;
|
|
314
|
+
private readonly packageVariantTypeEntities;
|
|
315
|
+
private readonly anonymousFunctionTypeEntities;
|
|
316
|
+
private readonly aliasTypeEntities;
|
|
317
|
+
private readonly reducedTypeEntities;
|
|
318
|
+
private readonly packageFunctionEntities;
|
|
319
|
+
private readonly methodEntities;
|
|
320
|
+
private readonly nestedFunctionEntities;
|
|
321
|
+
private readonly constructorEntities;
|
|
322
|
+
private readonly destructorEntities;
|
|
323
|
+
private readonly getterEntities;
|
|
324
|
+
private readonly setterEntities;
|
|
325
|
+
private readonly typeExtensionEntities;
|
|
326
|
+
private readonly packageAliasEntities;
|
|
327
|
+
private readonly textTranslationDeclarationEntities;
|
|
328
|
+
private readonly functionLiteralEntities;
|
|
329
|
+
private readonly functionBlockLiteralEntities;
|
|
330
|
+
constructor(analyzer: Analyzer);
|
|
331
|
+
ofPackage(pkg: project.SourcePackageA): e.PackageEntity;
|
|
332
|
+
ofProgramPackage(pkg: project.ProgramPackageA): e.ProgramPackageEntity;
|
|
333
|
+
ofTranslationPackage(pkg: project.TranslationPackageA): se.SourceNameTranslationPackageEntity;
|
|
334
|
+
ofTextTranslationPackage(pkg: project.TextTranslationPackageA): e.TextTranslationPackageEntity;
|
|
335
|
+
ofPackageVariableDeclaration(node: tree.PackageVariableDeclaration): e.PackageVariableEntity;
|
|
336
|
+
ofComputedPackageVariableDeclaration(node: tree.PackageVariableAccessorDeclaration): e.PackageVariableEntity;
|
|
337
|
+
ofFieldDeclaration(node: tree.FieldDeclaration): e.FieldEntity;
|
|
338
|
+
ofComputedFieldDeclaration(node: tree.FieldAccessorDeclaration): e.FieldEntity;
|
|
339
|
+
ofLocalVariableDeclaration(node: tree.LocalVariableDeclaration): e.LocalVariableEntity;
|
|
340
|
+
ofForStatementVariableDeclaration(node: tree.ForStatementVariableDeclaration): e.LocalVariableEntity;
|
|
341
|
+
ofErrorVariableDeclaration(node: tree.ErrorVariableDeclaration): e.LocalVariableEntity;
|
|
342
|
+
ofParameterDeclaration(node: tree.ParameterDeclaration): e.ParameterEntity;
|
|
343
|
+
ofTypeParameterDeclaration(node: tree.TypeParameterDeclaration): e.TypeParameterEntity;
|
|
344
|
+
ofIndexerDeclaration(node: tree.IndexedElementAccessorDeclaration): e.IndexerEntity;
|
|
345
|
+
ofDereferenceOperatorDeclaration(node: tree.DereferencedVariableAccessorDeclaration): e.DereferenceOperatorEntity;
|
|
346
|
+
ofPackageStructuredTypeDeclaration(node: tree.PackageStructuredTypeDeclaration): e.PackageStructuredTypeEntity;
|
|
347
|
+
ofPackageClassDeclaration(node: tree.PackageClassDeclaration): e.PackageStructuredTypeEntity;
|
|
348
|
+
ofPackageStructureDeclaration(node: tree.PackageStructureDeclaration): e.PackageStructuredTypeEntity;
|
|
349
|
+
ofPackageAspectDeclaration(node: tree.PackageAspectDeclaration): e.PackageStructuredTypeEntity;
|
|
350
|
+
ofAnonymousStructuredTypeDeclaration(node: tree.AnonymousStructuredTypeDeclaration): e.AnonymousStructuredTypeEntity;
|
|
351
|
+
ofAnonymousClassDeclaration(node: tree.AnonymousClassDeclaration): e.AnonymousStructuredTypeEntity;
|
|
352
|
+
ofStructuredTypeDeclaration(node: tree.StructuredTypeDeclaration): e.StructuredTypeEntity;
|
|
353
|
+
ofAnonymousFunctionTypeDeclaration(node: tree.AnonymousFunctionTypeDeclaration): e.AnonymousFunctionTypeEntity;
|
|
354
|
+
ofFunctionTypeDeclaration(node: tree.FunctionTypeDeclaration): e.FunctionTypeEntity;
|
|
355
|
+
ofPackageVariantDeclaration(node: tree.PackageVariantDeclaration): e.PackageVariantTypeEntity;
|
|
356
|
+
ofPackageAliasTypeDeclaration(node: tree.PackageAliasTypeDeclaration): e.AliasTypeEntity;
|
|
357
|
+
ofPackageReducedTypeDeclaration(node: tree.PackageReducedTypeDeclaration): e.ReducedTypeEntity;
|
|
358
|
+
ofPackageFunctionDeclaration(node: tree.PackageFunctionDeclaration): e.PackageFunctionEntity;
|
|
359
|
+
ofMethodDeclaration(node: tree.MethodDeclaration): e.MethodEntity;
|
|
360
|
+
ofNestedFunctionDeclaration(node: tree.NestedFunctionDeclaration): e.NestedFunctionEntity;
|
|
361
|
+
ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): e.GetterEntity;
|
|
362
|
+
ofFieldGetterDeclaration(node: tree.FieldGetterDeclaration): e.GetterEntity;
|
|
363
|
+
ofIndexedElementGetterDeclaration(node: tree.IndexedElementGetterDeclaration): e.GetterEntity;
|
|
364
|
+
ofDereferencedVariableGetterDeclaration(node: tree.DereferencedVariableGetterDeclaration): e.GetterEntity;
|
|
365
|
+
ofGetterDeclaration(node: tree.GetterDeclaration): e.GetterEntity;
|
|
366
|
+
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): e.SetterEntity;
|
|
367
|
+
ofFieldSetterDeclaration(node: tree.FieldSetterDeclaration): e.SetterEntity;
|
|
368
|
+
ofIndexedElementSetterDeclaration(node: tree.IndexedElementSetterDeclaration): e.SetterEntity;
|
|
369
|
+
ofDereferencedVariableSetterDeclaration(node: tree.DereferencedVariableSetterDeclaration): e.SetterEntity;
|
|
370
|
+
ofSetterDeclaration(node: tree.SetterDeclaration): e.SetterEntity;
|
|
371
|
+
ofConstructorDeclaration(node: tree.ConstructorDeclaration): e.ConstructorEntity;
|
|
372
|
+
ofDestructorDeclaration(node: tree.DestructorDeclaration): e.DestructorEntity;
|
|
373
|
+
ofVariantValueDeclaration(node: tree.VariantValueDeclaration): e.FieldEntity;
|
|
374
|
+
ofTypeExtensionDeclaration(node: tree.TypeExtensionDeclaration): e.TypeExtensionEntity;
|
|
375
|
+
ofPackageImport(node: tree.PackageImport): e.PackageAliasEntity;
|
|
376
|
+
ofTypeWithMembersDeclaration(node: tree.TypeWithMembersDeclaration): e.TypeEntityWithMembers;
|
|
377
|
+
ofTypeWithMembersOrExtensionDeclaration(node: TypeWithMembersOrTypeExtensionDeclaration): e.TypeWithMembersOrExtensionEntity;
|
|
378
|
+
ofTranslationTextTemplateParameter(node: tree.TranslationTextTemplateParameter): e.ParameterEntity;
|
|
379
|
+
ofTextTranslationDeclaration(node: tree.TextTranslationSource): e.TextTranslationEntity;
|
|
380
|
+
ofFunctionLiteral(node: tree.FunctionLiteral): e.AnonymousFunctionEntity;
|
|
381
|
+
ofFunctionBlockLiteral(node: tree.FunctionBlockLiteral): e.AnonymousFunctionEntity;
|
|
382
|
+
ofRegularOrBlockFunctionLiteral(node: tree.RegularOrBlockFunctionLiteral): e.AnonymousFunctionEntity;
|
|
383
|
+
ofFunctionLiteralInternal(node: tree.FunctionLiteral): se.FunctionLiteralEntity;
|
|
384
|
+
ofFunctionBlockLiteralInternal(node: tree.FunctionBlockLiteral): se.FunctionBlockLiteralEntity;
|
|
385
|
+
ofFunctionLiteralParameterDeclarationInternal(node: tree.ParameterDeclaration, literal: tree.FunctionLiteral): se.FunctionLiteralParameterDeclarationEntity;
|
|
386
|
+
private getContainingPackageLoadedFromDts;
|
|
387
|
+
private createComputedFieldEntities;
|
|
388
|
+
private createComputedFieldEntitiesWithoutIsStaticCheck;
|
|
389
|
+
private createDereferenceOperatorEntities;
|
|
390
|
+
private createDereferenceOperatorEntitiesWithoutIsStaticCheck;
|
|
391
|
+
private createIndexerAndParameterEntities;
|
|
392
|
+
private createIndexerAndParameterEntitiesWithoutIsStaticCheck;
|
|
393
|
+
private createAndCacheIndexerEntityAndParameters;
|
|
394
|
+
private areIndexedElementAccessorDeclarationsEqual;
|
|
395
|
+
}
|
|
396
|
+
declare class ResultLocalVariableEntity {
|
|
397
|
+
private readonly analyzer;
|
|
398
|
+
private readonly entities;
|
|
399
|
+
constructor(analyzer: Analyzer);
|
|
400
|
+
ofPackageFunctionDeclaration(node: tree.PackageFunctionDeclaration): e.LocalVariableEntity;
|
|
401
|
+
ofMethodDeclaration(node: tree.MethodDeclaration): e.LocalVariableEntity;
|
|
402
|
+
ofNestedFunctionDeclaration(node: tree.NestedFunctionDeclaration): e.LocalVariableEntity;
|
|
403
|
+
ofFunctionLiteral(node: tree.FunctionLiteral): e.LocalVariableEntity;
|
|
404
|
+
ofFunctionBlockLiteral(node: tree.FunctionBlockLiteral): e.LocalVariableEntity;
|
|
405
|
+
ofPackageVariableGetterDeclaration(node: tree.PackageVariableGetterDeclaration): e.LocalVariableEntity;
|
|
406
|
+
ofFieldGetterDeclaration(node: tree.FieldGetterDeclaration): e.LocalVariableEntity;
|
|
407
|
+
ofIndexedElementGetterDeclaration(node: tree.IndexedElementGetterDeclaration): e.LocalVariableEntity;
|
|
408
|
+
ofDereferencedVariableGetterDeclaration(node: tree.DereferencedVariableGetterDeclaration): e.LocalVariableEntity;
|
|
409
|
+
ofFunctionDeclaration(node: tree.FunctionDeclaration): e.LocalVariableEntity;
|
|
410
|
+
ofTextTranslationFunctionDeclaration(node: tree.TextTranslationFunctionDeclaration): e.LocalVariableEntity;
|
|
411
|
+
private createResultLocalVariableEntity;
|
|
412
|
+
}
|
|
413
|
+
declare class ValueLocalVariableEntity {
|
|
414
|
+
private readonly analyzer;
|
|
415
|
+
private readonly entities;
|
|
416
|
+
constructor(analyzer: Analyzer);
|
|
417
|
+
ofPackageVariableSetterDeclaration(node: tree.PackageVariableSetterDeclaration): e.LocalVariableEntity;
|
|
418
|
+
ofFieldSetterDeclaration(node: tree.FieldSetterDeclaration): e.LocalVariableEntity;
|
|
419
|
+
ofIndexedElementSetterDeclaration(node: tree.IndexedElementSetterDeclaration): e.LocalVariableEntity;
|
|
420
|
+
ofDereferencedVariableSetterDeclaration(node: tree.DereferencedVariableSetterDeclaration): e.LocalVariableEntity;
|
|
421
|
+
private createValueLocalVariableEntity;
|
|
422
|
+
}
|
|
423
|
+
declare class Tags {
|
|
424
|
+
private readonly analyzer;
|
|
425
|
+
private readonly tagsByNodeWithTags;
|
|
426
|
+
constructor(analyzer: Analyzer);
|
|
427
|
+
ofNodeWithTags(node: tree.NodeWithTags): readonly tags.Tag[];
|
|
428
|
+
private createTagsOfNodeWithTags;
|
|
429
|
+
private createTagFromNode;
|
|
430
|
+
private argumentToTagArgument;
|
|
431
|
+
}
|
|
432
|
+
declare class PackageImports {
|
|
433
|
+
private readonly analyzer;
|
|
434
|
+
private readonly packagesAvailableForImport;
|
|
435
|
+
private readonly resolvedPackageImports;
|
|
436
|
+
private readonly importedPackages;
|
|
437
|
+
private readonly automaticallyImportedPackages;
|
|
438
|
+
private readonly importedPackageNameTrees;
|
|
439
|
+
constructor(analyzer: Analyzer);
|
|
440
|
+
resolvePackageImports(sourceFile: project.SourceFileA): ReadonlyMap<tree.PackageImport, ResolvedPackageImport>;
|
|
441
|
+
getPackagesAvailableForImport(pkg: project.SourcePackageA): readonly e.PackageEntity[];
|
|
442
|
+
getUniqueImportedPackages(sourceFile: project.SourceFileA): readonly PackageImportInfo[];
|
|
443
|
+
getImportedPackageNameTree(node: tree.SourceFile): ImportedPackageNameTree;
|
|
444
|
+
private getAutomaticallyImportedPackages;
|
|
445
|
+
}
|
|
446
|
+
export declare class ResolvedPackageImport {
|
|
447
|
+
readonly entity: e.PackageEntity | undefined;
|
|
448
|
+
readonly isAliasedImport: e.PackageAliasEntity | undefined;
|
|
449
|
+
constructor(entity: e.PackageEntity | undefined, isAliasedImport: e.PackageAliasEntity | undefined);
|
|
450
|
+
}
|
|
451
|
+
export declare class ExpressionDenotesFunctionCheckResult {
|
|
452
|
+
readonly candidates: readonly NotSubstitutedAccessedFunction[];
|
|
453
|
+
readonly suitableOrSingleFunction: AccessedFunction | undefined;
|
|
454
|
+
constructor(candidates: readonly NotSubstitutedAccessedFunction[], suitableOrSingleFunction: AccessedFunction | undefined);
|
|
455
|
+
}
|
|
456
|
+
export declare class DeclaredTypeMemberEntities {
|
|
457
|
+
readonly variables: readonly e.FieldEntity[];
|
|
458
|
+
readonly methods: readonly e.MethodEntity[];
|
|
459
|
+
readonly constructors: readonly e.ConstructorEntity[];
|
|
460
|
+
readonly destructors: readonly e.DestructorEntity[];
|
|
461
|
+
readonly indexers: readonly e.IndexerEntity[];
|
|
462
|
+
readonly dereferenceOperators: readonly e.DereferenceOperatorEntity[];
|
|
463
|
+
get namedMembers(): e.NamedTypeMemberEntity[];
|
|
464
|
+
constructor(variables: readonly e.FieldEntity[], methods: readonly e.MethodEntity[], constructors: readonly e.ConstructorEntity[], destructors: readonly e.DestructorEntity[], indexers: readonly e.IndexerEntity[], dereferenceOperators: readonly e.DereferenceOperatorEntity[]);
|
|
465
|
+
}
|
|
466
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ParameterEntity } from '
|
|
2
|
-
import * as tree from '
|
|
3
|
-
import * as types from '
|
|
4
|
-
import { Analyzer } from './
|
|
1
|
+
import { ParameterEntity } from '../../entities/index.js';
|
|
2
|
+
import * as tree from '../../tree/a/index.js';
|
|
3
|
+
import * as types from '../../types/index.js';
|
|
4
|
+
import { Analyzer } from './Analyzer.js';
|
|
5
5
|
export declare class ArgumentToParameterMatchResult {
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly matchResults;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Name } from '
|
|
2
|
-
import { DiagnosticAcceptor } from '
|
|
3
|
-
import * as tree from '
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { Name } from '../../common/index.js';
|
|
2
|
+
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
3
|
+
import * as tree from '../../tree/a/index.js';
|
|
4
|
+
import { NodeOrDiagnosticLocation } from '../NodeOrDiagnosticLocation.js';
|
|
5
|
+
import { Analyzer } from './Analyzer.js';
|
|
6
6
|
export declare class ArgumentToParameterMatcher<TSignature extends ISignature<TParameter>, TParameter extends ISignatureParameter, TArgument extends IArgument> {
|
|
7
7
|
private readonly analyzer;
|
|
8
8
|
private readonly signature;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { DiagnosticAcceptor } from '
|
|
2
|
-
import
|
|
3
|
-
import * as types from '
|
|
4
|
-
import { Analyzer
|
|
1
|
+
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
2
|
+
import * as tree from '../../tree/a/index.js';
|
|
3
|
+
import * as types from '../../types/index.js';
|
|
4
|
+
import { Analyzer } from './Analyzer.js';
|
|
5
|
+
import { ExpressionAnalysisOptions } from './ExpressionAnalysisOptions.js';
|
|
5
6
|
export declare class Resolver {
|
|
6
7
|
private readonly analyzer;
|
|
7
8
|
private readonly node;
|
|
8
9
|
private readonly analysisOptions;
|
|
9
10
|
private readonly diagnostics;
|
|
10
|
-
constructor(analyzer: Analyzer, node: AutotypeCallExpression, analysisOptions: ExpressionAnalysisOptions | undefined, diagnostics: DiagnosticAcceptor | undefined);
|
|
11
|
+
constructor(analyzer: Analyzer, node: tree.AutotypeCallExpression, analysisOptions: ExpressionAnalysisOptions | undefined, diagnostics: DiagnosticAcceptor | undefined);
|
|
11
12
|
resolve(): ResolutionResult;
|
|
12
13
|
private isAutotypeExpressionInValidPosition;
|
|
13
14
|
}
|
|
@@ -28,10 +29,8 @@ declare class Meaning_constructorCall {
|
|
|
28
29
|
*/
|
|
29
30
|
readonly type: types.Type;
|
|
30
31
|
readonly candidates: readonly types.Constructor[];
|
|
31
|
-
readonly
|
|
32
|
+
readonly suitableOrSingleConstructor: types.Constructor | undefined;
|
|
32
33
|
readonly kind = "constructor-call";
|
|
33
|
-
get singleSuitableConstructor(): types.Constructor | undefined;
|
|
34
|
-
get singleConstructor(): types.Constructor | undefined;
|
|
35
34
|
constructor(
|
|
36
35
|
/**
|
|
37
36
|
* Тип объекта, получаемого в результате вызова конструктора.
|
|
@@ -40,7 +39,7 @@ declare class Meaning_constructorCall {
|
|
|
40
39
|
* создаваемый найденным конструктором, будет отличаться от результирующего типа, хранимого в этом поле, но будет
|
|
41
40
|
* с ним совместим.
|
|
42
41
|
*/
|
|
43
|
-
type: types.Type, candidates: readonly types.Constructor[],
|
|
42
|
+
type: types.Type, candidates: readonly types.Constructor[], suitableOrSingleConstructor: types.Constructor | undefined);
|
|
44
43
|
}
|
|
45
44
|
declare class Meaning_unresolved {
|
|
46
45
|
readonly kind = "unresolved";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DiagnosticAcceptor } from '
|
|
2
|
-
import * as tree from '
|
|
3
|
-
import * as types from '
|
|
4
|
-
import { AccessedFunction } from '
|
|
1
|
+
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
2
|
+
import * as tree from '../../tree/a/index.js';
|
|
3
|
+
import * as types from '../../types/index.js';
|
|
4
|
+
import { AccessedFunction } from '../AccessedFunction.js';
|
|
5
5
|
import { Analyzer } from './Analyzer.js';
|
|
6
6
|
export declare class FirstStageResolver {
|
|
7
7
|
private readonly analyzer;
|
|
@@ -14,6 +14,7 @@ export declare class FirstStageResolver {
|
|
|
14
14
|
private resolveBaseMethodAccess;
|
|
15
15
|
private resolveBaseObjectAccess;
|
|
16
16
|
private invalidContextDiagnostic;
|
|
17
|
+
private staticContextDiagnostic;
|
|
17
18
|
private getBaseOrAliasedType;
|
|
18
19
|
private getContainingTypeMemberDeclaration;
|
|
19
20
|
}
|
|
@@ -51,10 +52,8 @@ declare class Meaning_baseConstructorAccess {
|
|
|
51
52
|
*/
|
|
52
53
|
readonly type: types.Type;
|
|
53
54
|
readonly candidates: readonly types.Constructor[];
|
|
54
|
-
readonly
|
|
55
|
+
readonly suitableOrSingleConstructor: types.Constructor | undefined;
|
|
55
56
|
readonly kind = "base-constructor-access";
|
|
56
|
-
get singleSuitableConstructor(): types.Constructor | undefined;
|
|
57
|
-
get singleConstructor(): types.Constructor | undefined;
|
|
58
57
|
constructor(
|
|
59
58
|
/**
|
|
60
59
|
* Тип объекта, получаемого в результате вызова конструктора.
|
|
@@ -63,7 +62,7 @@ declare class Meaning_baseConstructorAccess {
|
|
|
63
62
|
* создаваемый найденным конструктором, будет отличаться от результирующего типа, хранимого в этом поле, но будет
|
|
64
63
|
* с ним совместим.
|
|
65
64
|
*/
|
|
66
|
-
type: types.Type, candidates: readonly types.Constructor[],
|
|
65
|
+
type: types.Type, candidates: readonly types.Constructor[], suitableOrSingleConstructor: types.Constructor | undefined);
|
|
67
66
|
}
|
|
68
67
|
declare class Meaning_overriddenMethodAccess {
|
|
69
68
|
readonly method: AccessedFunction;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { DiagnosticAcceptor } from '
|
|
2
|
-
import { NamedTypeEntity } from '
|
|
3
|
-
import * as tree from '
|
|
4
|
-
import * as types from '
|
|
5
|
-
import { AccessedFunction, NotSubstitutedAccessedFunction } from '
|
|
6
|
-
import { Analyzer
|
|
1
|
+
import { DiagnosticAcceptor } from '../../diagnostic/Diagnostic.js';
|
|
2
|
+
import { NamedTypeEntity } from '../../entities/index.js';
|
|
3
|
+
import * as tree from '../../tree/a/index.js';
|
|
4
|
+
import * as types from '../../types/index.js';
|
|
5
|
+
import { AccessedFunction, NotSubstitutedAccessedFunction } from '../AccessedFunction.js';
|
|
6
|
+
import { Analyzer } from './Analyzer.js';
|
|
7
|
+
import { ExpressionAnalysisOptions } from './ExpressionAnalysisOptions.js';
|
|
7
8
|
export declare class Resolver {
|
|
8
9
|
private readonly analyzer;
|
|
9
10
|
private readonly node;
|
|
@@ -20,12 +21,9 @@ export declare class Resolver {
|
|
|
20
21
|
export type Meaning = Meaning_functionCall | Meaning_objectFunctionCall | Meaning_constructorCall | Meaning_unresolved;
|
|
21
22
|
export declare class Meaning_functionCall {
|
|
22
23
|
readonly candidates: readonly NotSubstitutedAccessedFunction[];
|
|
23
|
-
readonly
|
|
24
|
-
readonly singleNotSuitableSubstitutedCandidate: AccessedFunction | undefined;
|
|
24
|
+
readonly suitableOrSingleFunction: AccessedFunction | undefined;
|
|
25
25
|
readonly kind = "function-call";
|
|
26
|
-
|
|
27
|
-
get singleFunction(): AccessedFunction | undefined;
|
|
28
|
-
constructor(candidates: readonly NotSubstitutedAccessedFunction[], suitableFunctions: readonly AccessedFunction[], singleNotSuitableSubstitutedCandidate: AccessedFunction | undefined);
|
|
26
|
+
constructor(candidates: readonly NotSubstitutedAccessedFunction[], suitableOrSingleFunction: AccessedFunction | undefined);
|
|
29
27
|
}
|
|
30
28
|
export declare class Meaning_objectFunctionCall {
|
|
31
29
|
readonly type: types.FunctionType;
|
|
@@ -43,11 +41,8 @@ export declare class Meaning_constructorCall {
|
|
|
43
41
|
readonly type: types.Type | undefined;
|
|
44
42
|
readonly typeEntity: NamedTypeEntity | undefined;
|
|
45
43
|
readonly candidates: readonly types.Constructor[];
|
|
46
|
-
readonly
|
|
47
|
-
readonly singleNotSuitableSubstitutedCandidate: types.Constructor | undefined;
|
|
44
|
+
readonly suitableOrSingleConstructor: types.Constructor | undefined;
|
|
48
45
|
readonly kind = "constructor-call";
|
|
49
|
-
get singleSuitableConstructor(): types.Constructor | undefined;
|
|
50
|
-
get singleConstructor(): types.Constructor | undefined;
|
|
51
46
|
constructor(
|
|
52
47
|
/**
|
|
53
48
|
* Тип объекта, получаемого в результате вызова конструктора.
|
|
@@ -56,7 +51,7 @@ export declare class Meaning_constructorCall {
|
|
|
56
51
|
* создаваемый найденным конструктором, будет отличаться от результирующего типа, хранимого в этом поле, но будет
|
|
57
52
|
* с ним совместим.
|
|
58
53
|
*/
|
|
59
|
-
type: types.Type | undefined, typeEntity: NamedTypeEntity | undefined, candidates: readonly types.Constructor[],
|
|
54
|
+
type: types.Type | undefined, typeEntity: NamedTypeEntity | undefined, candidates: readonly types.Constructor[], suitableOrSingleConstructor: types.Constructor | undefined);
|
|
60
55
|
}
|
|
61
56
|
export declare class Meaning_unresolved {
|
|
62
57
|
readonly kind = "unresolved";
|