@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
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import
|
|
3
|
-
import { Tag } from '../analysis/Tag.js';
|
|
4
|
-
import { Translation } from '../analysis/Translation.js';
|
|
2
|
+
import { Analyzer } from '../analysis/Analyzer.js';
|
|
5
3
|
import { Lazy, Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
6
|
-
import {
|
|
7
|
-
import { BaseObjectType } from '../entities/BaseObjectType.js';
|
|
8
|
-
import { TypeEntityMembers } from '../entities/TypeEntityMembers.js';
|
|
9
|
-
import type { EntityContainingParameter, EntityContainingTypeParameter, EntityOwningGetter, OperatorKind, PackageEntity, PreservedReducedTypeEntityMemberInfo, ReducedTypeEntity, TextTranslationPackageEntityInfo, TypeEntityWithMembers, VariantTypeEntity } from '../entities/index.js';
|
|
10
|
-
import { AliasTypeEntity, AliasTypeEntityDefinition, AliasedType, AnonymousFunctionTypeEntity, AnonymousStructuredTypeEntity, ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityHidingLevel, EntityKind, EntityNaming, EntityOwningSetter, FieldEntity, FunctionEntityDefinition, FunctionTypeEntityDefinition, GetterEntity, GetterEntityDefinition, IndexerEntity, IndexerEntityDefinition, InterfacePackageEntityInfo, MethodEntity, PackageEntityDefinition, PackageEntityMembers, PackageFunctionEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, SetterEntity, SetterEntityDefinition, SpecialVariableEntityInfo, StructuredTypeEntityDefinition, StructuredTypeKind, SubstitutionApplicationMode, TypeEntityKind, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition, TypeWithMembersOrExtensionEntity, VariableEntityDefinition, VariantTypeEntityDefinition } from '../entities/index.js';
|
|
4
|
+
import { AliasTypeEntity, ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityContainingParameter, EntityContainingTypeParameter, EntityHidingLevel, EntityKind, EntityNaming, EntityOwningGetter, EntityOwningSetter, FieldEntity, FunctionEntityDefinition, GetterEntity, GetterEntityDefinition, IndexerEntity, IndexerEntityDefinition, InterfacePackageEntityInfo, MethodEntity, OperatorKind, PackageEntity, PackageEntityDefinition, PackageEntityMembers, PackageFunctionEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterEntity, PreservedReducedTypeEntityMemberInfo, ProgramPackageEntity, ReducedTypeEntity, SetterEntity, SetterEntityDefinition, SpecialVariableEntityInfo, SubstitutionApplicationMode, Tag, TextTranslationPackageEntityInfo, Translation, TypeEntityKind, TypeEntityMembers, TypeEntityWithMembers, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition, TypeWithMembersOrExtensionEntity, VariableEntityDefinition, VariantTypeEntity } from '../entities/index.js';
|
|
11
5
|
import { JavaScriptImplementationConfig, PackageName, PlatformKind, ProgramPackage } from '../project/index.js';
|
|
12
|
-
import * as tree from '../tree/index.js';
|
|
6
|
+
import * as tree from '../tree/a/index.js';
|
|
13
7
|
import * as types from '../types/index.js';
|
|
14
8
|
import { TsInteropContext } from './TsInteropContext.js';
|
|
15
9
|
import { TsPackageContents } from './TsPackageContents.js';
|
|
16
|
-
export declare class TsPackageEntity implements
|
|
10
|
+
export declare class TsPackageEntity implements ProgramPackageEntity {
|
|
17
11
|
readonly kind = EntityKind.Package;
|
|
12
|
+
readonly subkind = "program";
|
|
18
13
|
private readonly name;
|
|
19
14
|
private readonly locale;
|
|
20
15
|
private readonly contents;
|
|
@@ -34,8 +29,9 @@ export declare class TsPackageEntity implements PackageEntity {
|
|
|
34
29
|
getTags(): readonly Tag[];
|
|
35
30
|
getTextTranslationPackageInfo(): TextTranslationPackageEntityInfo | undefined;
|
|
36
31
|
}
|
|
37
|
-
export declare class SourcePackageLoadedFromDtsEntity implements
|
|
32
|
+
export declare class SourcePackageLoadedFromDtsEntity implements ProgramPackageEntity {
|
|
38
33
|
readonly kind = EntityKind.Package;
|
|
34
|
+
readonly subkind = "program";
|
|
39
35
|
private readonly tsctx;
|
|
40
36
|
private readonly sourcePackage;
|
|
41
37
|
private readonly implementationConfig;
|
|
@@ -51,7 +47,7 @@ export declare class SourcePackageLoadedFromDtsEntity implements PackageEntity {
|
|
|
51
47
|
getPackageAliasTypeDeclarationEntity(node: tree.PackageAliasTypeDeclaration): AliasTypeEntity;
|
|
52
48
|
getPackageReducedTypeDeclarationEntity(node: tree.PackageReducedTypeDeclaration): ReducedTypeEntity;
|
|
53
49
|
getPackageFunctionDeclarationEntity(node: tree.PackageFunctionDeclaration): PackageFunctionEntity;
|
|
54
|
-
getPackageStructuredTypeDeclarationEntity(node: PackageStructuredTypeDeclaration): PackageStructuredTypeEntity;
|
|
50
|
+
getPackageStructuredTypeDeclarationEntity(node: tree.PackageStructuredTypeDeclaration): PackageStructuredTypeEntity;
|
|
55
51
|
getPackageVariableDeclarationEntity(node: tree.PackageVariableDeclaration): PackageVariableEntity;
|
|
56
52
|
getComputedPackageVariableDeclaration(node: tree.PackageVariableGetterDeclaration | tree.PackageVariableSetterDeclaration): PackageVariableEntity;
|
|
57
53
|
getPackageVariantDeclarationEntity(node: tree.PackageVariantDeclaration): PackageVariantTypeEntity;
|
|
@@ -122,213 +118,6 @@ export declare class TsGlobalFunctionEntity implements PackageFunctionEntity {
|
|
|
122
118
|
getDialect(): PackageDialect;
|
|
123
119
|
getOriginalEntity(): PackageFunctionEntity;
|
|
124
120
|
}
|
|
125
|
-
/**
|
|
126
|
-
* Сущность, представляющая классы и интерфейсы.
|
|
127
|
-
*
|
|
128
|
-
* Типы в .d.ts файлах могут быть объявлены следующим образом:
|
|
129
|
-
*
|
|
130
|
-
* ```
|
|
131
|
-
* interface Array<T> {
|
|
132
|
-
* length: number
|
|
133
|
-
* // ...
|
|
134
|
-
* }
|
|
135
|
-
*
|
|
136
|
-
* interface ArrayConstructor {
|
|
137
|
-
* new (arrayLength?: number): any[];
|
|
138
|
-
*
|
|
139
|
-
* from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
140
|
-
* }
|
|
141
|
-
*
|
|
142
|
-
* declare var Array: ArrayConstructor;
|
|
143
|
-
* ```
|
|
144
|
-
*
|
|
145
|
-
* Когда тип используется для указания типа переменной, в нём доступны поля, объявленные в интерфейсе:
|
|
146
|
-
* ```
|
|
147
|
-
* let a: Array<number>
|
|
148
|
-
* a.length // Ок.
|
|
149
|
-
* a.from // Ошибка, поле from не найдено.
|
|
150
|
-
* ```
|
|
151
|
-
*
|
|
152
|
-
* Когда тип используется в качестве значения, в т.ч. при вызове конструктора, в нём доступны поля из типа переменной,
|
|
153
|
-
* название которой совпадает с названием типа (в данном примере `declare var Array: ArrayConstructor`).
|
|
154
|
-
* ```
|
|
155
|
-
* new Array(1) // Ок.
|
|
156
|
-
* Array.from([1]) // Ок.
|
|
157
|
-
* Array.length // Ошибка, поле length не найдено.
|
|
158
|
-
* ```
|
|
159
|
-
*
|
|
160
|
-
* В Артель такие объявления объединяются в один ссылочный объект (StructuredTypeEntity). В него добавляются конструкторы,
|
|
161
|
-
* объявленные в тип переменной, а также все остальные члены типа (переменные, операции, индексаторы). Они становятся
|
|
162
|
-
* всеобщими, поскольку доступны через имя типа.
|
|
163
|
-
*/
|
|
164
|
-
export declare class TsGlobalClassOrInterfaceEntity implements PackageStructuredTypeEntity {
|
|
165
|
-
private readonly tsctx;
|
|
166
|
-
private readonly symbol;
|
|
167
|
-
private readonly isDefaultExport;
|
|
168
|
-
private readonly containingPackage;
|
|
169
|
-
private readonly forceHiddenInPackage;
|
|
170
|
-
readonly kind = EntityKind.Type;
|
|
171
|
-
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
172
|
-
readonly subkind = "package";
|
|
173
|
-
private readonly name;
|
|
174
|
-
private readonly typeParameters;
|
|
175
|
-
private readonly members;
|
|
176
|
-
private readonly baseObjectType;
|
|
177
|
-
private readonly baseAspectTypes;
|
|
178
|
-
private readonly hiding;
|
|
179
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, isDefaultExport: boolean, containingPackage: PackageEntity, forceHiddenInPackage: boolean);
|
|
180
|
-
getNaming(): EntityNaming;
|
|
181
|
-
getName(): Name;
|
|
182
|
-
getContainingPackage(): PackageEntity;
|
|
183
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
184
|
-
getMembers(): TypeEntityMembers;
|
|
185
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
186
|
-
markedBasic(): boolean;
|
|
187
|
-
isAbstract(): boolean;
|
|
188
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
189
|
-
getArity(): number;
|
|
190
|
-
getBaseObjectType(): BaseObjectType;
|
|
191
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
192
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
193
|
-
getTags(): readonly Tag[];
|
|
194
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
195
|
-
getTranslation(): Translation | undefined;
|
|
196
|
-
getLocale(): PackageLocale;
|
|
197
|
-
getDialect(): PackageDialect;
|
|
198
|
-
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
199
|
-
private getDeclaration;
|
|
200
|
-
private isClassOrInterfaceAndVariableMerge;
|
|
201
|
-
}
|
|
202
|
-
export declare class SourceAndTsGlobalClassOrInterfaceMergeEntity implements PackageStructuredTypeEntity {
|
|
203
|
-
private readonly tsctx;
|
|
204
|
-
private readonly symbol;
|
|
205
|
-
private readonly isDefaultExport;
|
|
206
|
-
private readonly node;
|
|
207
|
-
readonly kind = EntityKind.Type;
|
|
208
|
-
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
209
|
-
readonly subkind = "package";
|
|
210
|
-
private readonly sourceData;
|
|
211
|
-
private readonly members;
|
|
212
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, isDefaultExport: boolean, node: PackageStructuredTypeDeclaration);
|
|
213
|
-
getNaming(): EntityNaming;
|
|
214
|
-
getName(): Name;
|
|
215
|
-
getContainingPackage(): PackageEntity;
|
|
216
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
217
|
-
getMembers(): TypeEntityMembers;
|
|
218
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
219
|
-
markedBasic(): boolean;
|
|
220
|
-
isAbstract(): boolean;
|
|
221
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
222
|
-
getArity(): number;
|
|
223
|
-
getBaseObjectType(): BaseObjectType;
|
|
224
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
225
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
226
|
-
getTags(): readonly Tag[];
|
|
227
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
228
|
-
getTranslation(): Translation | undefined;
|
|
229
|
-
getLocale(): PackageLocale;
|
|
230
|
-
getDialect(): PackageDialect;
|
|
231
|
-
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
232
|
-
}
|
|
233
|
-
export declare class TsTypeLiteralEntity implements AnonymousStructuredTypeEntity {
|
|
234
|
-
private readonly tsctx;
|
|
235
|
-
private readonly symbol;
|
|
236
|
-
private readonly containingPackage;
|
|
237
|
-
readonly kind = EntityKind.Type;
|
|
238
|
-
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
239
|
-
readonly subkind = "anonymous";
|
|
240
|
-
private readonly baseObjectType;
|
|
241
|
-
private readonly baseAspectTypes;
|
|
242
|
-
private readonly members;
|
|
243
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, containingPackage: PackageEntity);
|
|
244
|
-
getNaming(): EntityNaming;
|
|
245
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
246
|
-
getMembers(): TypeEntityMembers;
|
|
247
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
248
|
-
markedBasic(): boolean;
|
|
249
|
-
isAbstract(): boolean;
|
|
250
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
251
|
-
getArity(): number;
|
|
252
|
-
getBaseObjectType(): BaseObjectType;
|
|
253
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
254
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
255
|
-
getTags(): readonly Tag[];
|
|
256
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
257
|
-
getContainingPackage(): PackageEntity;
|
|
258
|
-
getTranslation(): Translation | undefined;
|
|
259
|
-
getLocale(): PackageLocale;
|
|
260
|
-
getDialect(): PackageDialect;
|
|
261
|
-
getOriginalEntity(): AnonymousStructuredTypeEntity;
|
|
262
|
-
}
|
|
263
|
-
export declare class TsNamedTypeLiteralEntity implements PackageStructuredTypeEntity {
|
|
264
|
-
private readonly tsctx;
|
|
265
|
-
private readonly symbol;
|
|
266
|
-
private readonly owningNamedSymbol;
|
|
267
|
-
private readonly isDefaultExport;
|
|
268
|
-
private readonly owningDeclarationWithTypeParameters;
|
|
269
|
-
private readonly containingPackage;
|
|
270
|
-
private readonly forceHiddenInPackage;
|
|
271
|
-
readonly kind = EntityKind.Type;
|
|
272
|
-
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
273
|
-
readonly subkind = "package";
|
|
274
|
-
private readonly name;
|
|
275
|
-
private readonly typeParameters;
|
|
276
|
-
private readonly baseObjectType;
|
|
277
|
-
private readonly baseAspectTypes;
|
|
278
|
-
private readonly members;
|
|
279
|
-
private readonly hiding;
|
|
280
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, owningNamedSymbol: ts.Symbol, isDefaultExport: boolean, owningDeclarationWithTypeParameters: ts.DeclarationWithTypeParameterChildren, containingPackage: PackageEntity, forceHiddenInPackage: boolean);
|
|
281
|
-
getNaming(): EntityNaming;
|
|
282
|
-
getName(): Name;
|
|
283
|
-
getContainingPackage(): PackageEntity;
|
|
284
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
285
|
-
getMembers(): TypeEntityMembers;
|
|
286
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
287
|
-
markedBasic(): boolean;
|
|
288
|
-
isAbstract(): boolean;
|
|
289
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
290
|
-
getArity(): number;
|
|
291
|
-
getBaseObjectType(): BaseObjectType;
|
|
292
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
293
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
294
|
-
getTags(): readonly Tag[];
|
|
295
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
296
|
-
getTranslation(): Translation | undefined;
|
|
297
|
-
getLocale(): PackageLocale;
|
|
298
|
-
getDialect(): PackageDialect;
|
|
299
|
-
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
300
|
-
}
|
|
301
|
-
export declare class SourceAndTsNamedTypeLiteralMergeEntity implements PackageStructuredTypeEntity {
|
|
302
|
-
private readonly tsctx;
|
|
303
|
-
private readonly symbol;
|
|
304
|
-
private readonly isDefaultExport;
|
|
305
|
-
private readonly node;
|
|
306
|
-
readonly kind = EntityKind.Type;
|
|
307
|
-
readonly typeEntityKind = TypeEntityKind.Structured;
|
|
308
|
-
readonly subkind = "package";
|
|
309
|
-
private readonly sourceData;
|
|
310
|
-
private readonly members;
|
|
311
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, isDefaultExport: boolean, node: PackageStructuredTypeDeclaration);
|
|
312
|
-
getNaming(): EntityNaming;
|
|
313
|
-
getName(): Name;
|
|
314
|
-
getContainingPackage(): PackageEntity;
|
|
315
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
316
|
-
getMembers(): TypeEntityMembers;
|
|
317
|
-
getDefinition(): StructuredTypeEntityDefinition;
|
|
318
|
-
markedBasic(): boolean;
|
|
319
|
-
isAbstract(): boolean;
|
|
320
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
321
|
-
getArity(): number;
|
|
322
|
-
getBaseObjectType(): BaseObjectType;
|
|
323
|
-
getBaseAspectTypes(): BaseAspectTypes;
|
|
324
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
325
|
-
getTags(): readonly Tag[];
|
|
326
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
327
|
-
getTranslation(): Translation | undefined;
|
|
328
|
-
getLocale(): PackageLocale;
|
|
329
|
-
getDialect(): PackageDialect;
|
|
330
|
-
getOriginalEntity(): PackageStructuredTypeEntity;
|
|
331
|
-
}
|
|
332
121
|
export declare class TsPropertyEntity implements FieldEntity {
|
|
333
122
|
private readonly tsctx;
|
|
334
123
|
private readonly symbol;
|
|
@@ -651,36 +440,6 @@ export declare class TsSignatureBasedDefaultConstructorEntity implements Constru
|
|
|
651
440
|
getDialect(): PackageDialect;
|
|
652
441
|
getOriginalEntity(): ConstructorEntity;
|
|
653
442
|
}
|
|
654
|
-
export declare class TsEnumEntity implements PackageVariantTypeEntity {
|
|
655
|
-
private readonly tsctx;
|
|
656
|
-
private readonly symbol;
|
|
657
|
-
private readonly isDefaultExport;
|
|
658
|
-
private readonly containingPackage;
|
|
659
|
-
readonly kind = EntityKind.Type;
|
|
660
|
-
readonly typeEntityKind = TypeEntityKind.Variant;
|
|
661
|
-
readonly subkind = "package";
|
|
662
|
-
private readonly name;
|
|
663
|
-
private readonly members;
|
|
664
|
-
private readonly underlyingType;
|
|
665
|
-
private readonly baseObjectType;
|
|
666
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, isDefaultExport: boolean, containingPackage: PackageEntity);
|
|
667
|
-
getNaming(): EntityNaming;
|
|
668
|
-
getName(): Name;
|
|
669
|
-
getContainingPackage(): PackageEntity;
|
|
670
|
-
getMembers(): TypeEntityMembers;
|
|
671
|
-
getUnderlyingType(): types.Type;
|
|
672
|
-
getDefinition(): VariantTypeEntityDefinition;
|
|
673
|
-
getArity(): number;
|
|
674
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
675
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
676
|
-
getTags(): readonly Tag[];
|
|
677
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
678
|
-
getBaseObjectType(): BaseObjectType;
|
|
679
|
-
getTranslation(): Translation | undefined;
|
|
680
|
-
getLocale(): PackageLocale;
|
|
681
|
-
getDialect(): PackageDialect;
|
|
682
|
-
getOriginalEntity(): PackageVariantTypeEntity;
|
|
683
|
-
}
|
|
684
443
|
export declare class TsEnumMemberEntity implements FieldEntity {
|
|
685
444
|
private readonly tsctx;
|
|
686
445
|
private readonly symbol;
|
|
@@ -713,107 +472,4 @@ export declare class TsEnumMemberEntity implements FieldEntity {
|
|
|
713
472
|
getDialect(): PackageDialect;
|
|
714
473
|
getOriginalEntity(): FieldEntity;
|
|
715
474
|
}
|
|
716
|
-
export declare
|
|
717
|
-
private readonly tsctx;
|
|
718
|
-
private readonly symbol;
|
|
719
|
-
private readonly isDefaultExport;
|
|
720
|
-
private readonly containingPackage;
|
|
721
|
-
readonly kind = EntityKind.Type;
|
|
722
|
-
readonly typeEntityKind = TypeEntityKind.Alias;
|
|
723
|
-
private readonly name;
|
|
724
|
-
private readonly aliasedType;
|
|
725
|
-
private readonly typeParameters;
|
|
726
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, isDefaultExport: boolean, containingPackage: PackageEntity);
|
|
727
|
-
getName(): Name;
|
|
728
|
-
getContainingPackage(): PackageEntity;
|
|
729
|
-
getAliasedType(): AliasedType;
|
|
730
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
731
|
-
getDefinition(): AliasTypeEntityDefinition;
|
|
732
|
-
getMembers(): TypeEntityMembers;
|
|
733
|
-
getArity(): number;
|
|
734
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
735
|
-
getTags(): readonly Tag[];
|
|
736
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
737
|
-
getTranslation(): Translation | undefined;
|
|
738
|
-
getLocale(): PackageLocale;
|
|
739
|
-
getDialect(): PackageDialect;
|
|
740
|
-
getOriginalEntity(): AliasTypeEntity;
|
|
741
|
-
private getDeclaration;
|
|
742
|
-
}
|
|
743
|
-
export declare class TsAnonymousFunctionTypeEntity implements AnonymousFunctionTypeEntity {
|
|
744
|
-
private readonly tsctx;
|
|
745
|
-
private readonly symbol;
|
|
746
|
-
private readonly declaration;
|
|
747
|
-
private readonly containingPackage;
|
|
748
|
-
readonly kind = EntityKind.Type;
|
|
749
|
-
readonly typeEntityKind = TypeEntityKind.Function;
|
|
750
|
-
readonly subkind = "anonymous";
|
|
751
|
-
private readonly parameters;
|
|
752
|
-
private readonly returnType;
|
|
753
|
-
private readonly members;
|
|
754
|
-
private readonly baseObjectType;
|
|
755
|
-
constructor(tsctx: TsInteropContext, symbol: ts.Symbol, declaration: ts.CallSignatureDeclaration | ts.FunctionTypeNode, containingPackage: PackageEntity);
|
|
756
|
-
getNaming(): EntityNaming;
|
|
757
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
758
|
-
getParameters(): readonly ParameterEntity[];
|
|
759
|
-
getReturnType(): types.Type;
|
|
760
|
-
getMembers(): TypeEntityMembers;
|
|
761
|
-
getDefinition(): FunctionTypeEntityDefinition;
|
|
762
|
-
isAsync(): boolean;
|
|
763
|
-
getArity(): number;
|
|
764
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
765
|
-
getTags(): readonly Tag[];
|
|
766
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
767
|
-
getContainingPackage(): PackageEntity;
|
|
768
|
-
getBaseObjectType(): BaseObjectType;
|
|
769
|
-
getTranslation(): Translation | undefined;
|
|
770
|
-
getLocale(): PackageLocale;
|
|
771
|
-
getDialect(): PackageDialect;
|
|
772
|
-
getOriginalEntity(): AnonymousFunctionTypeEntity;
|
|
773
|
-
}
|
|
774
|
-
/**
|
|
775
|
-
* Представляет объявления следующего вида:
|
|
776
|
-
*
|
|
777
|
-
* ```
|
|
778
|
-
* interface MyType { (): number } // интерфейс с единственным членом - сигнатурой вызова
|
|
779
|
-
*
|
|
780
|
-
* type MyType = () => number // псевдоним функционального типа
|
|
781
|
-
*
|
|
782
|
-
* type MyType = { (): number } // псевдоним типа с единственным членом - сигнатурой вызова
|
|
783
|
-
* ```
|
|
784
|
-
*/
|
|
785
|
-
export declare class TsNamedFunctionTypeEntity implements AliasTypeEntity {
|
|
786
|
-
private readonly tsctx;
|
|
787
|
-
private readonly signatureSymbol;
|
|
788
|
-
private readonly signatureDeclaration;
|
|
789
|
-
private readonly owningNamedSymbol;
|
|
790
|
-
private readonly isDefaultExport;
|
|
791
|
-
private readonly owningDeclarationWithTypeParameters;
|
|
792
|
-
private readonly containingPackage;
|
|
793
|
-
private readonly forceHiddenInPackage;
|
|
794
|
-
readonly kind = EntityKind.Type;
|
|
795
|
-
readonly typeEntityKind = TypeEntityKind.Alias;
|
|
796
|
-
readonly subkind = "package";
|
|
797
|
-
private readonly name;
|
|
798
|
-
private readonly typeParameters;
|
|
799
|
-
private readonly aliasedType;
|
|
800
|
-
private readonly members;
|
|
801
|
-
private readonly baseObjectType;
|
|
802
|
-
private readonly hiding;
|
|
803
|
-
constructor(tsctx: TsInteropContext, signatureSymbol: ts.Symbol, signatureDeclaration: ts.CallSignatureDeclaration | ts.FunctionTypeNode, owningNamedSymbol: ts.Symbol, isDefaultExport: boolean, owningDeclarationWithTypeParameters: ts.DeclarationWithTypeParameterChildren, containingPackage: PackageEntity, forceHiddenInPackage: boolean);
|
|
804
|
-
getName(): Name;
|
|
805
|
-
getContainingPackage(): PackageEntity;
|
|
806
|
-
getAliasedType(): AliasedType;
|
|
807
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
808
|
-
getMembers(): TypeEntityMembers;
|
|
809
|
-
getDefinition(): AliasTypeEntityDefinition;
|
|
810
|
-
getArity(): number;
|
|
811
|
-
isHidden(): EntityHidingLevel | undefined;
|
|
812
|
-
getTags(): readonly Tag[];
|
|
813
|
-
getSubstitutionApplicationMode(): SubstitutionApplicationMode;
|
|
814
|
-
getBaseObjectType(): BaseObjectType;
|
|
815
|
-
getTranslation(): Translation | undefined;
|
|
816
|
-
getLocale(): PackageLocale;
|
|
817
|
-
getDialect(): PackageDialect;
|
|
818
|
-
getOriginalEntity(): AliasTypeEntity;
|
|
819
|
-
}
|
|
475
|
+
export declare function createDeclaredStructuredTypeMembers(analyzer: Analyzer, node: tree.StructuredTypeDeclaration): TypeEntityMembers;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { Analyzer
|
|
3
|
-
import {
|
|
4
|
-
import { Translation } from '../analysis/Translation.js';
|
|
2
|
+
import { Analyzer } from '../analysis/Analyzer.js';
|
|
3
|
+
import { WellKnownDeclarations } from '../analysis/WellKnownDeclarations.js';
|
|
5
4
|
import { Name, PackageDialect, PackageLocale } from '../common/index.js';
|
|
6
|
-
import { EntityContainingParameter, EntityHidingLevel, EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, PackageEntityMembers, ParameterEntity, TextTranslationPackageEntityInfo, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
|
|
5
|
+
import { EntityContainingParameter, EntityHidingLevel, EntityKind, InterfacePackageEntityInfo, PackageEntity, PackageEntityDefinition, PackageEntityMembers, ParameterEntity, ProgramPackageEntity, Tag, TextTranslationPackageEntityInfo, Translation, TypeEntity, TypeEntityWithMembers } from '../entities/index.js';
|
|
7
6
|
import { JavaScriptImplementationConfig, PackageName, PlatformKind, ProgramPackage } from '../project/index.js';
|
|
8
7
|
import * as types from '../types/index.js';
|
|
9
8
|
import { SourcePackageLoadedFromDtsEntity, TsPackageEntity } from './Entities.js';
|
|
@@ -141,15 +140,6 @@ declare class TypeContext {
|
|
|
141
140
|
private getContainingPackage;
|
|
142
141
|
private getContainingGlobalDeclaration;
|
|
143
142
|
}
|
|
144
|
-
export declare class TsUtils {
|
|
145
|
-
static isClassOrInterfaceType(type: ts.Type): type is ts.InterfaceType;
|
|
146
|
-
static isObjectType(type: ts.Type): type is ts.ObjectType;
|
|
147
|
-
static isTypeReference(type: ts.Type): type is ts.TypeReference;
|
|
148
|
-
static isSourceFileOrModuleDeclaration(node: ts.Node): node is ts.SourceFile | ts.ModuleDeclaration;
|
|
149
|
-
static isClassOrInterfaceDeclaration(node: ts.Node): node is ts.ClassDeclaration | ts.InterfaceDeclaration;
|
|
150
|
-
static isInterfaceAndVariableMergeSymbol(symbol: ts.Symbol): boolean;
|
|
151
|
-
static isNamespaceDeclaration(node: ts.Node): boolean;
|
|
152
|
-
}
|
|
153
143
|
export declare class TsProgramState {
|
|
154
144
|
readonly program: ts.Program;
|
|
155
145
|
readonly arraySymbol: ts.Symbol | undefined;
|
|
@@ -179,8 +169,9 @@ type TsFileReferenceKind = 'lib' | 'path-or-type';
|
|
|
179
169
|
* - объявление экспортируется, используется в другом экспортируемом объявлении,
|
|
180
170
|
* но не содержится в таблице экспорта ни одного загруженного модуля TS
|
|
181
171
|
*/
|
|
182
|
-
declare class TsPackageEntityForSymbolsWithUnknownOrigin implements
|
|
172
|
+
declare class TsPackageEntityForSymbolsWithUnknownOrigin implements ProgramPackageEntity {
|
|
183
173
|
readonly kind = EntityKind.Package;
|
|
174
|
+
readonly subkind = "program";
|
|
184
175
|
getName(): PackageName;
|
|
185
176
|
getLocale(): PackageLocale;
|
|
186
177
|
getDialect(): PackageDialect;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
2
|
import { NamedPackageMemberEntity, PackageEntity, PackageEntityMembers, TypeEntity } from '../entities/index.js';
|
|
3
3
|
import { SourcePackage } from '../project/index.js';
|
|
4
|
-
import * as tree from '../tree/index.js';
|
|
4
|
+
import * as tree from '../tree/a/index.js';
|
|
5
5
|
import { TsInteropContext } from './TsInteropContext.js';
|
|
6
6
|
import { SymbolFromTs } from './TsPackageContents.js';
|
|
7
7
|
export declare class TsPackageMembersCreator {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import ts from 'typescript';
|
|
2
|
-
import { TypeEntityWithMembers, TypeParameterEntity } from '../entities/index.js';
|
|
3
|
-
import { TypeEntityMembers } from '../entities/TypeEntityMembers.js';
|
|
2
|
+
import { TypeEntityMembers, TypeEntityWithMembers, TypeParameterEntity } from '../entities/index.js';
|
|
4
3
|
import { TsInteropContext } from './TsInteropContext.js';
|
|
5
4
|
export declare class TsTypeMembersCreator {
|
|
6
5
|
private readonly tsctx;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
export declare class TsUtils {
|
|
3
|
+
static isClassOrInterfaceType(type: ts.Type): type is ts.InterfaceType;
|
|
4
|
+
static isObjectType(type: ts.Type): type is ts.ObjectType;
|
|
5
|
+
static isTypeReference(type: ts.Type): type is ts.TypeReference;
|
|
6
|
+
static isSourceFileOrModuleDeclaration(node: ts.Node): node is ts.SourceFile | ts.ModuleDeclaration;
|
|
7
|
+
static isClassOrInterfaceDeclaration(node: ts.Node): node is ts.ClassDeclaration | ts.InterfaceDeclaration;
|
|
8
|
+
static isInterfaceAndVariableMergeSymbol(symbol: ts.Symbol): boolean;
|
|
9
|
+
static isNamespaceDeclaration(node: ts.Node): boolean;
|
|
10
|
+
}
|