@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,84 +1,9 @@
|
|
|
1
|
-
import { AccessedFunction } from '
|
|
2
|
-
import {
|
|
3
|
-
import { SubstitutedFunction } from '
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import * as
|
|
7
|
-
import { NamedEntity, StructuredTypeKind } from '../entities/index.js';
|
|
8
|
-
import { SourceFile } from '../project/index.js';
|
|
9
|
-
import { KeywordKind } from '../tree/index.js';
|
|
10
|
-
import * as types from '../types/index.js';
|
|
11
|
-
export declare class DisplayService {
|
|
12
|
-
private readonly analyzer;
|
|
13
|
-
private readonly locale;
|
|
14
|
-
private readonly dialect;
|
|
15
|
-
private readonly contextualSourceFile?;
|
|
16
|
-
private packageNameShorteningMap;
|
|
17
|
-
constructor(analyzer: Analyzer | undefined, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile?: SourceFile | undefined);
|
|
18
|
-
displayVariableDeclaration(variable: VariableDeclaration): string;
|
|
19
|
-
displayType(type: types.Type): string;
|
|
20
|
-
getFunctionTypeBodyDisplayParts(type: types.FunctionType): FunctionTypeBodyDisplayParts;
|
|
21
|
-
getNamedTypeDisplayParts(type: NamedType): NamedTypeDisplayParts;
|
|
22
|
-
displayPackageAliasEntity(entity: e.PackageAliasEntity): string;
|
|
23
|
-
displayPackage(package_: e.PackageEntity): string;
|
|
24
|
-
displayPackageNameTreeNode(node: PackageNameTreeNode): string;
|
|
25
|
-
displayParameterDeclaration(parameter: ParameterDeclaration, options?: TypeDisplayOptions): string;
|
|
26
|
-
getParameterDeclarationDisplayParts(parameter: ParameterDeclaration, options?: TypeDisplayOptions): ParameterDeclarationDisplayParts;
|
|
27
|
-
displayFunctionDeclaration(func: FunctionDeclaration): string;
|
|
28
|
-
getFunctionDeclarationDisplayParts(func: FunctionDeclaration): FunctionDeclarationDisplayParts;
|
|
29
|
-
displayAnonymousFunctionDeclaration(func: AnonymousFunctionDeclaration): string;
|
|
30
|
-
displayOperatorKind(kind: e.OperatorKind): string;
|
|
31
|
-
displayConstructorDeclaration(constructor: ConstructorDeclaration): string;
|
|
32
|
-
getConstructorDeclarationDisplayParts(constructor: ConstructorDeclaration): ConstructorDeclarationDisplayParts;
|
|
33
|
-
displayDestructorDeclaration(constructor: DestructorDeclaration): string;
|
|
34
|
-
displayIndexerDeclaration(indexer: IndexerDeclaration): string;
|
|
35
|
-
getIndexerDeclarationDisplayParts(indexer: IndexerDeclaration): IndexerDeclarationDisplayParts;
|
|
36
|
-
displayDereferenceOperatorDeclaration(referenceOperator: DereferenceOperatorDeclaration): string;
|
|
37
|
-
getDereferenceOperatorDeclarationDisplayParts(dereferenceOperator: DereferenceOperatorDeclaration): DereferenceOperatorDeclarationDisplayParts;
|
|
38
|
-
displayTypeDeclaration(type: TypeDeclaration): string;
|
|
39
|
-
displayTypeDeclarationEntity(entity: e.TypeEntity): string;
|
|
40
|
-
displayTypeParameterValue(value: TypeParameterValue): string;
|
|
41
|
-
displayGetterEntity(entity: e.GetterEntity): string;
|
|
42
|
-
displaySetterEntity(entity: e.SetterEntity): string;
|
|
43
|
-
displayTypeExtensionEntity(entity: e.TypeExtensionEntity): string;
|
|
44
|
-
displayLocalizableTextEntity(entity: e.TextTranslationEntity): string;
|
|
45
|
-
displayEntity(entity: e.Entity): string;
|
|
46
|
-
displayTypeEntity(entity: e.TypeEntity): string;
|
|
47
|
-
displayTypeMember(member: types.TypeMember): string;
|
|
48
|
-
displayKeyword(kind: KeywordKind): string;
|
|
49
|
-
displayHelperPhrase(kind: HelperPhraseKind): string;
|
|
50
|
-
displayEntityName(entity: NamedEntity): string;
|
|
51
|
-
displayName(name: Name): string;
|
|
52
|
-
private displayTypeEntityAsUsage;
|
|
53
|
-
private displayStructuredTypeUsage;
|
|
54
|
-
private displayVariantTypeUsage;
|
|
55
|
-
private displayFunctionTypeUsage;
|
|
56
|
-
private displayParameterTypeUsage;
|
|
57
|
-
private displayAliasTypeUsage;
|
|
58
|
-
private displayReducedTypeUsage;
|
|
59
|
-
private displayUnionOrIntersectionTypeUsage;
|
|
60
|
-
private displayUnresolvedTypeUsage;
|
|
61
|
-
private displaySubstitutionStubTypeUsage;
|
|
62
|
-
private displayTypeInternal;
|
|
63
|
-
private displayTypeUsageInternal;
|
|
64
|
-
private displayUnionOrIntersectionTypeTypes;
|
|
65
|
-
private displayDeclarationContainer;
|
|
66
|
-
private displayDeclarationContainerWithEndingDot;
|
|
67
|
-
private getPackageNameShorteningMap;
|
|
68
|
-
}
|
|
69
|
-
interface TypeDisplayOptions {
|
|
70
|
-
readonly unionAndAliasTypeDisplayKind: UnionAndAliasTypeDisplayKind;
|
|
71
|
-
readonly functionTypeDisplayKind: FunctionTypeDisplayKind;
|
|
72
|
-
readonly displayContainer: boolean;
|
|
73
|
-
}
|
|
74
|
-
declare const enum UnionAndAliasTypeDisplayKind {
|
|
75
|
-
Full = 0,
|
|
76
|
-
OnlyOriginalType = 1
|
|
77
|
-
}
|
|
78
|
-
declare const enum FunctionTypeDisplayKind {
|
|
79
|
-
Full = 0,
|
|
80
|
-
OnlyOriginalType = 1
|
|
81
|
-
}
|
|
1
|
+
import { AccessedFunction } from '../../../analysis/AccessedFunction.js';
|
|
2
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
3
|
+
import { SubstitutedFunction } from '../../../analysis/SubstitutedFunction.js';
|
|
4
|
+
import { Name } from '../../../common/Name.js';
|
|
5
|
+
import type * as e from '../../../entities/index.js';
|
|
6
|
+
import type * as types from '../../../types/index.js';
|
|
82
7
|
export type VariableDeclaration = VariableDeclaration_entity | VariableDeclaration_typeMember;
|
|
83
8
|
export declare class VariableDeclaration_entity implements IVariableDeclaration {
|
|
84
9
|
readonly value: e.VariableEntity;
|
|
@@ -339,7 +264,7 @@ export declare class TypeDeclarationStructured_entity implements ITypeDeclaratio
|
|
|
339
264
|
constructor(entity: e.StructuredTypeEntity);
|
|
340
265
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
341
266
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
342
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
267
|
+
getStructuredTypeKind(): e.StructuredTypeKind;
|
|
343
268
|
getContainer(): DeclarationContainer | undefined;
|
|
344
269
|
}
|
|
345
270
|
export declare class TypeDeclarationStructured_type implements ITypeDeclarationStructured {
|
|
@@ -348,13 +273,13 @@ export declare class TypeDeclarationStructured_type implements ITypeDeclarationS
|
|
|
348
273
|
constructor(type: types.StructuredType);
|
|
349
274
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
350
275
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
351
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
276
|
+
getStructuredTypeKind(): e.StructuredTypeKind;
|
|
352
277
|
getContainer(): DeclarationContainer | undefined;
|
|
353
278
|
}
|
|
354
279
|
interface ITypeDeclarationStructured {
|
|
355
280
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
356
281
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
357
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
282
|
+
getStructuredTypeKind(): e.StructuredTypeKind;
|
|
358
283
|
getContainer(): DeclarationContainer | undefined;
|
|
359
284
|
}
|
|
360
285
|
export declare class TypeDeclaration_function implements ITypeDeclaration {
|
|
@@ -511,7 +436,7 @@ interface ITypeDeclaration {
|
|
|
511
436
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
512
437
|
getContainer(): DeclarationContainer | undefined;
|
|
513
438
|
}
|
|
514
|
-
type NamedType = NamedType_structured | NamedType_typeParameter | NamedType_variant | NamedType_alias | NamedType_reduced;
|
|
439
|
+
export type NamedType = NamedType_structured | NamedType_typeParameter | NamedType_variant | NamedType_alias | NamedType_reduced;
|
|
515
440
|
export declare class NamedType_structured implements INamedType {
|
|
516
441
|
readonly value: e.PackageStructuredTypeEntity;
|
|
517
442
|
readonly kind = "structured";
|
|
@@ -558,7 +483,7 @@ export declare class StructuredTypeUsage_type implements IStructuredTypeUsage {
|
|
|
558
483
|
readonly kind = "structured";
|
|
559
484
|
constructor(type: types.StructuredType);
|
|
560
485
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
561
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
486
|
+
getStructuredTypeKind(): e.StructuredTypeKind;
|
|
562
487
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
563
488
|
getContainer(): DeclarationContainer | undefined;
|
|
564
489
|
}
|
|
@@ -567,14 +492,14 @@ export declare class StructuredTypeUsage_entity implements IStructuredTypeUsage
|
|
|
567
492
|
readonly kind = "structured";
|
|
568
493
|
constructor(entity: e.StructuredTypeEntity);
|
|
569
494
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
570
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
495
|
+
getStructuredTypeKind(): e.StructuredTypeKind;
|
|
571
496
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
572
497
|
getContainer(): DeclarationContainer | undefined;
|
|
573
498
|
}
|
|
574
499
|
interface IStructuredTypeUsage {
|
|
575
500
|
readonly kind: 'structured';
|
|
576
501
|
ifNamedThenEntity(): e.NamedTypeEntity | undefined;
|
|
577
|
-
getStructuredTypeKind(): StructuredTypeKind;
|
|
502
|
+
getStructuredTypeKind(): e.StructuredTypeKind;
|
|
578
503
|
getTypeParameterValues(): readonly TypeParameterValue[];
|
|
579
504
|
getContainer(): DeclarationContainer | undefined;
|
|
580
505
|
}
|
|
@@ -702,8 +627,8 @@ interface IParameterTypeUsage {
|
|
|
702
627
|
getEntity(): e.NamedTypeEntity;
|
|
703
628
|
isNullExcluded(): boolean;
|
|
704
629
|
}
|
|
705
|
-
type UnionOrIntersectionTypeUsage = UnionOrIntersectionTypeUsage_type;
|
|
706
|
-
declare class UnionOrIntersectionTypeUsage_type {
|
|
630
|
+
export type UnionOrIntersectionTypeUsage = UnionOrIntersectionTypeUsage_type;
|
|
631
|
+
export declare class UnionOrIntersectionTypeUsage_type {
|
|
707
632
|
readonly type: types.UnionType | types.IntersectionType;
|
|
708
633
|
readonly kind = "union-or-intersection";
|
|
709
634
|
constructor(type: types.UnionType | types.IntersectionType);
|
|
@@ -712,19 +637,19 @@ declare class UnionOrIntersectionTypeUsage_type {
|
|
|
712
637
|
getUnaliasedFlattenedTypes(): readonly types.Type[];
|
|
713
638
|
}
|
|
714
639
|
type UnresolvedTypeUsage = UnresolvedTypeUsage_type;
|
|
715
|
-
declare class UnresolvedTypeUsage_type {
|
|
640
|
+
export declare class UnresolvedTypeUsage_type {
|
|
716
641
|
readonly kind = "unresolved";
|
|
717
642
|
}
|
|
718
|
-
type SubstitutionStubTypeUsage = SubstitutionStubTypeUsage_type;
|
|
719
|
-
declare class SubstitutionStubTypeUsage_type {
|
|
643
|
+
export type SubstitutionStubTypeUsage = SubstitutionStubTypeUsage_type;
|
|
644
|
+
export declare class SubstitutionStubTypeUsage_type {
|
|
720
645
|
readonly type: types.SubstitutionStubType;
|
|
721
646
|
readonly kind = "substitution-stub";
|
|
722
647
|
constructor(type: types.SubstitutionStubType);
|
|
723
648
|
getIndex(): number;
|
|
724
649
|
}
|
|
725
|
-
type TypeMemberDeclarationContainer = DeclarationContainer.Type | DeclarationContainer.TypeExtension;
|
|
726
|
-
type DeclarationContainer = DeclarationContainer.Type | DeclarationContainer.TypeExtension | DeclarationContainer.Package;
|
|
727
|
-
declare namespace DeclarationContainer {
|
|
650
|
+
export type TypeMemberDeclarationContainer = DeclarationContainer.Type | DeclarationContainer.TypeExtension;
|
|
651
|
+
export type DeclarationContainer = DeclarationContainer.Type | DeclarationContainer.TypeExtension | DeclarationContainer.Package;
|
|
652
|
+
export declare namespace DeclarationContainer {
|
|
728
653
|
class Type {
|
|
729
654
|
readonly typeUsage: TypeUsage;
|
|
730
655
|
readonly parent: Package | undefined;
|
|
@@ -744,106 +669,64 @@ declare namespace DeclarationContainer {
|
|
|
744
669
|
}
|
|
745
670
|
}
|
|
746
671
|
export declare class FunctionDeclarationDisplayParts {
|
|
747
|
-
readonly
|
|
748
|
-
readonly functionKeyword: string;
|
|
749
|
-
readonly whitespaceAfterFunctionKeyword: string;
|
|
750
|
-
readonly container: string;
|
|
751
|
-
readonly name: string;
|
|
752
|
-
readonly typeParametersStart: string;
|
|
672
|
+
readonly beforeTypeParameters: string;
|
|
753
673
|
readonly typeParameters: readonly string[];
|
|
754
674
|
readonly typeParameterSeparator: string;
|
|
755
|
-
readonly
|
|
756
|
-
readonly
|
|
757
|
-
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
758
|
-
readonly parameterSeparator: string;
|
|
759
|
-
readonly parametersEnd: string;
|
|
760
|
-
readonly returnTypeAnnotationColon: string;
|
|
761
|
-
readonly returnType: string;
|
|
762
|
-
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
|
763
|
-
toString(): string;
|
|
764
|
-
}
|
|
765
|
-
export declare class OperatorDeclarationDisplayParts {
|
|
766
|
-
readonly functionKeyword: string;
|
|
767
|
-
readonly whitespaceAfterFunctionKeyword: string;
|
|
768
|
-
readonly container: string;
|
|
769
|
-
readonly name: string;
|
|
770
|
-
readonly parametersStart: string;
|
|
771
|
-
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
675
|
+
readonly afterTypeParametersBeforeParameters: string;
|
|
676
|
+
readonly parameters: readonly string[];
|
|
772
677
|
readonly parameterSeparator: string;
|
|
773
|
-
readonly
|
|
774
|
-
readonly
|
|
775
|
-
readonly returnType: string;
|
|
776
|
-
constructor(functionKeyword: string, whitespaceAfterFunctionKeyword: string, container: string, name: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
|
777
|
-
toString(): string;
|
|
778
|
-
}
|
|
779
|
-
export declare class ParameterDeclarationDisplayParts {
|
|
780
|
-
readonly name: string;
|
|
781
|
-
readonly optionalityText: string;
|
|
782
|
-
readonly colonWithWhitespace: string;
|
|
783
|
-
readonly type: string;
|
|
784
|
-
constructor(name: string, optionalityText: string, colonWithWhitespace: string, type: string);
|
|
785
|
-
toString(): string;
|
|
786
|
-
}
|
|
787
|
-
export declare class TypeDeclarationDisplayParts {
|
|
788
|
-
readonly typeKeyword: string;
|
|
789
|
-
readonly whitespaceAfterTypeKeyword: string;
|
|
790
|
-
readonly container: string;
|
|
791
|
-
readonly name: string;
|
|
792
|
-
readonly constraint: string;
|
|
793
|
-
readonly typeParametersStart: string;
|
|
794
|
-
readonly typeParameters: readonly string[];
|
|
795
|
-
readonly typeParameterSeparator: string;
|
|
796
|
-
readonly typeParametersEnd: string;
|
|
797
|
-
readonly equalsSignWithWhitespace: string;
|
|
798
|
-
readonly typeBody: string;
|
|
799
|
-
constructor(typeKeyword: string, whitespaceAfterTypeKeyword: string, container: string, name: string, constraint: string, typeParametersStart: string, typeParameters: readonly string[], typeParameterSeparator: string, typeParametersEnd: string, equalsSignWithWhitespace: string, typeBody: string);
|
|
678
|
+
readonly afterParameters: string;
|
|
679
|
+
constructor(beforeTypeParameters: string, typeParameters: readonly string[], typeParameterSeparator: string, afterTypeParametersBeforeParameters: string, parameters: readonly string[], parameterSeparator: string, afterParameters: string);
|
|
800
680
|
toString(): string;
|
|
801
681
|
}
|
|
802
682
|
export declare class ConstructorDeclarationDisplayParts {
|
|
803
|
-
readonly
|
|
804
|
-
readonly
|
|
805
|
-
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
683
|
+
readonly beforeParameters: string;
|
|
684
|
+
readonly parameters: readonly string[];
|
|
806
685
|
readonly parameterSeparator: string;
|
|
807
|
-
readonly
|
|
808
|
-
constructor(
|
|
686
|
+
readonly afterParameters: string;
|
|
687
|
+
constructor(beforeParameters: string, parameters: readonly string[], parameterSeparator: string, afterParameters: string);
|
|
809
688
|
toString(): string;
|
|
810
689
|
}
|
|
811
690
|
export declare class IndexerDeclarationDisplayParts {
|
|
812
|
-
readonly
|
|
813
|
-
readonly
|
|
814
|
-
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
691
|
+
readonly beforeParameters: string;
|
|
692
|
+
readonly parameters: readonly string[];
|
|
815
693
|
readonly parameterSeparator: string;
|
|
816
|
-
readonly
|
|
817
|
-
readonly
|
|
818
|
-
readonly type: string;
|
|
819
|
-
constructor(container: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, typeAnnotationColon: string, type: string);
|
|
820
|
-
toString(): string;
|
|
821
|
-
}
|
|
822
|
-
export declare class DereferenceOperatorDeclarationDisplayParts {
|
|
823
|
-
readonly container: string;
|
|
824
|
-
readonly operatorToken: string;
|
|
825
|
-
readonly typeAnnotationColon: string;
|
|
826
|
-
readonly type: string;
|
|
827
|
-
constructor(container: string, operatorToken: string, typeAnnotationColon: string, type: string);
|
|
694
|
+
readonly afterParameters: string;
|
|
695
|
+
constructor(beforeParameters: string, parameters: readonly string[], parameterSeparator: string, afterParameters: string);
|
|
828
696
|
toString(): string;
|
|
829
697
|
}
|
|
830
698
|
export declare class NamedTypeDisplayParts {
|
|
831
|
-
readonly
|
|
699
|
+
readonly beforeTypeParameters: string;
|
|
832
700
|
readonly typeParameters: readonly string[];
|
|
833
701
|
readonly typeParameterSeparator: string;
|
|
834
|
-
readonly
|
|
835
|
-
constructor(
|
|
702
|
+
readonly afterTypeParameters: string;
|
|
703
|
+
constructor(beforeTypeParameters: string, typeParameters: readonly string[], typeParameterSeparator: string, afterTypeParameters: string);
|
|
836
704
|
}
|
|
837
705
|
export declare class FunctionTypeBodyDisplayParts {
|
|
838
|
-
readonly
|
|
839
|
-
readonly
|
|
840
|
-
readonly parametersStart: string;
|
|
841
|
-
readonly parameters: readonly ParameterDeclarationDisplayParts[];
|
|
706
|
+
readonly beforeParameters: string;
|
|
707
|
+
readonly parameters: readonly string[];
|
|
842
708
|
readonly parameterSeparator: string;
|
|
843
|
-
readonly
|
|
844
|
-
readonly
|
|
845
|
-
readonly returnType: string;
|
|
846
|
-
constructor(asyncKeywordWithWhitespace: string, functionKeyword: string, parametersStart: string, parameters: readonly ParameterDeclarationDisplayParts[], parameterSeparator: string, parametersEnd: string, returnTypeAnnotationColon: string, returnType: string);
|
|
709
|
+
readonly afterParameters: string;
|
|
710
|
+
constructor(beforeParameters: string, parameters: readonly string[], parameterSeparator: string, afterParameters: string);
|
|
847
711
|
toString(): string;
|
|
848
712
|
}
|
|
713
|
+
export interface TypeDisplayOptions {
|
|
714
|
+
readonly unionAndAliasTypeDisplayKind: UnionAndAliasTypeDisplayKind;
|
|
715
|
+
readonly functionTypeDisplayKind: FunctionTypeDisplayKind;
|
|
716
|
+
readonly displayContainer: boolean;
|
|
717
|
+
}
|
|
718
|
+
export declare const enum UnionAndAliasTypeDisplayKind {
|
|
719
|
+
Full = 0,
|
|
720
|
+
OnlyOriginalType = 1
|
|
721
|
+
}
|
|
722
|
+
export declare const enum FunctionTypeDisplayKind {
|
|
723
|
+
Full = 0,
|
|
724
|
+
OnlyOriginalType = 1
|
|
725
|
+
}
|
|
726
|
+
export declare function typeToTypeUsage(type: types.Type): TypeUsage;
|
|
727
|
+
export declare function typeEntityToTypeUsage(entity: e.TypeEntity): TypeUsage;
|
|
728
|
+
export declare function createTypeMemberContainer(member: types.TypeMember, analyzer: Analyzer | undefined): TypeMemberDeclarationContainer;
|
|
729
|
+
export declare function createPackageMemberEntityContainer(entity: e.PackageMemberEntity): DeclarationContainer.Package;
|
|
730
|
+
export declare function createTypeMemberEntityContainer(entity: e.TypeMemberEntity): TypeMemberDeclarationContainer;
|
|
731
|
+
export declare function createTypeEntityContainer(entity: e.TypeEntity): DeclarationContainer.Package | undefined;
|
|
849
732
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { TaskController } from '../../../common/index.js';
|
|
3
|
+
import { SourceFile } from '../../../project/index.js';
|
|
4
|
+
import { Highlight } from './Types.js';
|
|
5
|
+
export declare class DocumentHighlightsService {
|
|
6
|
+
private readonly referencesService;
|
|
7
|
+
getDocumentHighlights(analyzer: Analyzer, sourceFile: SourceFile, offset: number, taskController: TaskController): Promise<Highlight[]>;
|
|
8
|
+
private referenceKindToHighlightKind;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Range } from '../../../common/index.js';
|
|
2
|
+
export declare class Highlight {
|
|
3
|
+
readonly range: Range;
|
|
4
|
+
readonly kind: HighlightKind;
|
|
5
|
+
constructor(range: Range, kind: HighlightKind);
|
|
6
|
+
}
|
|
7
|
+
export declare const enum HighlightKind {
|
|
8
|
+
Text = 1,
|
|
9
|
+
Read = 2,
|
|
10
|
+
Write = 3
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { Range } from '../../../common/index.js';
|
|
3
|
+
import { SourceFile } from '../../../project/index.js';
|
|
4
|
+
import { NodeSemanticInfo } from '../node-semantic-info/Types.js';
|
|
5
|
+
import { Hover } from './Types.js';
|
|
6
|
+
export declare abstract class HoverService<TSourceFile extends SourceFile> {
|
|
7
|
+
private displayService;
|
|
8
|
+
getHover(analyzer: Analyzer, sourceFile: TSourceFile, offset: number): Hover | undefined;
|
|
9
|
+
protected abstract getSemanticInfoAndRangeAtOffset(analyzer: Analyzer, sourceFile: TSourceFile, offset: number): {
|
|
10
|
+
semanticInfo: NodeSemanticInfo;
|
|
11
|
+
range: Range;
|
|
12
|
+
} | undefined;
|
|
13
|
+
private createHoverForEntity;
|
|
14
|
+
private createHoverAtReference;
|
|
15
|
+
private createHoverAtAccessedFunction;
|
|
16
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { MatchResultParameter } from '../../../analysis/a/ArgumentToParameterMatchResult.js';
|
|
2
|
+
import { AccessedFunction } from '../../../analysis/AccessedFunction.js';
|
|
3
|
+
import { PackageNameTreeNode } from '../../../analysis/ImportedPackageNameTree.js';
|
|
4
|
+
import { AccessKind, ReadonlyNonEmptyArray } from '../../../common/index.js';
|
|
5
|
+
import { AliasTypeEntity, Entity, FunctionEntity, FunctionTypeEntity, PackageEntity, StructuredTypeEntity, Translation, TypeParameterEntity, VariableEntity, VariantTypeEntity } from '../../../entities/index.js';
|
|
6
|
+
import * as types from '../../../types/index.js';
|
|
7
|
+
export type NodeSemanticInfo = DefinitionNodeSemanticInfo | ReferenceNodeSemanticInfo | DefaultSwitchMatchNodeSemanticInfo;
|
|
8
|
+
export declare class DefinitionNodeSemanticInfo {
|
|
9
|
+
readonly entity: Entity;
|
|
10
|
+
readonly kind = "definition";
|
|
11
|
+
constructor(entity: Entity);
|
|
12
|
+
}
|
|
13
|
+
export declare class ReferenceNodeSemanticInfo {
|
|
14
|
+
readonly targets: ReadonlyNonEmptyArray<ReferenceTarget>;
|
|
15
|
+
readonly isAmbiguous: boolean;
|
|
16
|
+
readonly betterTargets?: ReadonlyNonEmptyArray<ReferenceTarget> | undefined;
|
|
17
|
+
readonly kind = "reference";
|
|
18
|
+
get firstTarget(): ReferenceTarget;
|
|
19
|
+
get firstBetterTargetWithFallback(): ReferenceTarget;
|
|
20
|
+
constructor(targets: ReadonlyNonEmptyArray<ReferenceTarget>, isAmbiguous: boolean, betterTargets?: ReadonlyNonEmptyArray<ReferenceTarget> | undefined);
|
|
21
|
+
}
|
|
22
|
+
export type ReferenceTarget = EntityReferenceTarget | FieldReferenceTarget | TypeParameterReferenceTarget | ConstructorReferenceTarget | DereferenceOperatorReferenceTarget | AccessedFunctionReferenceTarget | IndexerReferenceTarget | MatchResultParameterReferenceTarget | PackageReferenceTarget | PackageNameTreeNodeReferenceTarget | TypeContextReferenceTarget;
|
|
23
|
+
export declare class EntityReferenceTarget {
|
|
24
|
+
readonly entity: Entity;
|
|
25
|
+
readonly accessKind: AccessKind;
|
|
26
|
+
readonly narrowedType?: types.Type | undefined;
|
|
27
|
+
readonly kind = "entity";
|
|
28
|
+
constructor(entity: Entity, accessKind: AccessKind, narrowedType?: types.Type | undefined);
|
|
29
|
+
}
|
|
30
|
+
export declare class FieldReferenceTarget {
|
|
31
|
+
readonly field: types.Field;
|
|
32
|
+
readonly accessKind: AccessKind;
|
|
33
|
+
readonly narrowedType: types.Type | undefined;
|
|
34
|
+
readonly kind = "field";
|
|
35
|
+
constructor(field: types.Field, accessKind: AccessKind, narrowedType: types.Type | undefined);
|
|
36
|
+
}
|
|
37
|
+
export declare class TypeParameterReferenceTarget {
|
|
38
|
+
readonly parameter: types.Parameter;
|
|
39
|
+
readonly accessKind: AccessKind;
|
|
40
|
+
readonly kind = "type-value-parameter";
|
|
41
|
+
constructor(parameter: types.Parameter, accessKind: AccessKind);
|
|
42
|
+
}
|
|
43
|
+
export declare class ConstructorReferenceTarget {
|
|
44
|
+
readonly constructor_: types.Constructor;
|
|
45
|
+
readonly kind = "type-constructor";
|
|
46
|
+
constructor(constructor_: types.Constructor);
|
|
47
|
+
}
|
|
48
|
+
export declare class DereferenceOperatorReferenceTarget {
|
|
49
|
+
readonly operator: types.DereferenceOperator;
|
|
50
|
+
readonly accessKind: AccessKind;
|
|
51
|
+
readonly kind = "type-dereference-operator";
|
|
52
|
+
constructor(operator: types.DereferenceOperator, accessKind: AccessKind);
|
|
53
|
+
}
|
|
54
|
+
export declare class AccessedFunctionReferenceTarget {
|
|
55
|
+
readonly func: AccessedFunction;
|
|
56
|
+
readonly kind = "accessed-function";
|
|
57
|
+
constructor(func: AccessedFunction);
|
|
58
|
+
}
|
|
59
|
+
export declare class MatchResultParameterReferenceTarget {
|
|
60
|
+
readonly parameter: MatchResultParameter;
|
|
61
|
+
readonly accessKind: AccessKind;
|
|
62
|
+
readonly kind = "match-result-value-parameter";
|
|
63
|
+
constructor(parameter: MatchResultParameter, accessKind: AccessKind);
|
|
64
|
+
}
|
|
65
|
+
export declare class PackageReferenceTarget {
|
|
66
|
+
readonly package_: PackageEntity;
|
|
67
|
+
readonly kind = "package";
|
|
68
|
+
constructor(package_: PackageEntity);
|
|
69
|
+
}
|
|
70
|
+
export declare class PackageNameTreeNodeReferenceTarget {
|
|
71
|
+
readonly node: PackageNameTreeNode;
|
|
72
|
+
readonly kind = "package-name-tree-node";
|
|
73
|
+
constructor(node: PackageNameTreeNode);
|
|
74
|
+
}
|
|
75
|
+
export declare class TypeContextReferenceTarget {
|
|
76
|
+
readonly type: types.Type;
|
|
77
|
+
readonly typeContextKind: 'object' | 'base';
|
|
78
|
+
readonly kind = "type-context";
|
|
79
|
+
constructor(type: types.Type, typeContextKind: 'object' | 'base');
|
|
80
|
+
}
|
|
81
|
+
export declare class IndexerReferenceTarget {
|
|
82
|
+
readonly indexer: types.Indexer;
|
|
83
|
+
readonly accessKind: AccessKind;
|
|
84
|
+
readonly kind = "type-indexer";
|
|
85
|
+
constructor(indexer: types.Indexer, accessKind: AccessKind);
|
|
86
|
+
}
|
|
87
|
+
export declare class NameTranslationNodeSemanticInfo {
|
|
88
|
+
readonly targets: ReadonlyNonEmptyArray<TranslationTargetEntity>;
|
|
89
|
+
readonly isAmbiguous: boolean;
|
|
90
|
+
readonly translation: Translation;
|
|
91
|
+
readonly kind = "name-translation";
|
|
92
|
+
get firstTarget(): TranslationTargetEntity;
|
|
93
|
+
constructor(targets: ReadonlyNonEmptyArray<TranslationTargetEntity>, isAmbiguous: boolean, translation: Translation);
|
|
94
|
+
}
|
|
95
|
+
type TranslationTargetEntity = VariableEntity | VariantTypeEntity | FunctionEntity | TypeParameterEntity | FunctionTypeEntity | StructuredTypeEntity | AliasTypeEntity;
|
|
96
|
+
export declare class DefaultSwitchMatchNodeSemanticInfo {
|
|
97
|
+
readonly type: types.Type;
|
|
98
|
+
readonly kind = "default-switch-match";
|
|
99
|
+
constructor(type: types.Type);
|
|
100
|
+
}
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { Entity } from '../../../entities/index.js';
|
|
3
|
+
import { NodeSemanticInfo } from '../node-semantic-info/Types.js';
|
|
4
|
+
import { DefinitionInfo, ReferenceKind, ReferenceRestrictions, ReferencesSearchOptions } from './Types.js';
|
|
5
|
+
export declare abstract class ReferencesFinder {
|
|
6
|
+
protected readonly analyzer: Analyzer;
|
|
7
|
+
protected readonly definitions: readonly DefinitionInfo[];
|
|
8
|
+
protected readonly restrictions: ReferenceRestrictions;
|
|
9
|
+
protected readonly options: ReferencesSearchOptions;
|
|
10
|
+
private isForRename;
|
|
11
|
+
constructor(analyzer: Analyzer, definitions: readonly DefinitionInfo[], restrictions: ReferenceRestrictions, options: ReferencesSearchOptions);
|
|
12
|
+
protected ifReferenceToSomeOfDefinitionsThenKind(potentialReferenceSemanticInfo: NodeSemanticInfo | undefined): ReferenceKind | undefined;
|
|
13
|
+
protected areEntitiesWithSameDefinition(entity1: Entity, entity2: Entity): boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { TaskController } from '../../../common/index.js';
|
|
3
|
+
import { SourceFile } from '../../../project/index.js';
|
|
4
|
+
import { Reference, ReferencesSearchOptions } from './Types.js';
|
|
5
|
+
export declare class ReferencesService {
|
|
6
|
+
getReferencesInCompilation(analyzer: Analyzer, sourceFile: SourceFile, offset: number, options: ReferencesSearchOptions, taskController: TaskController): Promise<Reference[]>;
|
|
7
|
+
getReferencesInFiles(analyzer: Analyzer, sourceFile: SourceFile, offset: number, sourceFiles: Iterable<SourceFile>, options: ReferencesSearchOptions, taskController: TaskController): Promise<Reference[]>;
|
|
8
|
+
private getReferencedDefinitionInfosAtOffset;
|
|
9
|
+
private getDefinitionsFromNodeSemanticInfo;
|
|
10
|
+
private getReferenceRestrictions;
|
|
11
|
+
private isEntityWithRegularName;
|
|
12
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Name, Range } from '../../../common/index.js';
|
|
2
|
+
import { Entity } from '../../../entities/index.js';
|
|
3
|
+
import { SourceFile } from '../../../project/index.js';
|
|
4
|
+
export type EntityWithRegularNameInfo = {
|
|
5
|
+
name: Name;
|
|
6
|
+
};
|
|
7
|
+
export declare class Reference {
|
|
8
|
+
readonly sourceFile: SourceFile;
|
|
9
|
+
readonly range: Range;
|
|
10
|
+
readonly kind: ReferenceKind;
|
|
11
|
+
constructor(sourceFile: SourceFile, range: Range, kind: ReferenceKind);
|
|
12
|
+
}
|
|
13
|
+
export declare const enum ReferenceKind {
|
|
14
|
+
Read = 0,
|
|
15
|
+
Write = 1,
|
|
16
|
+
Declaration = 2
|
|
17
|
+
}
|
|
18
|
+
export type ReferencesSearchOptions = {
|
|
19
|
+
readonly onlyWithSameAlias: boolean;
|
|
20
|
+
readonly onlyNamed: boolean;
|
|
21
|
+
readonly allowAmbiguous: boolean;
|
|
22
|
+
readonly isForRename?: boolean;
|
|
23
|
+
};
|
|
24
|
+
export declare class DefinitionInfo {
|
|
25
|
+
readonly value: Entity;
|
|
26
|
+
readonly referenceKind: ReferenceKind;
|
|
27
|
+
constructor(value: Entity, referenceKind: ReferenceKind);
|
|
28
|
+
}
|
|
29
|
+
export declare class ReferenceRestrictions {
|
|
30
|
+
canBeIdentifier: boolean;
|
|
31
|
+
canBeAutotypeCall: boolean;
|
|
32
|
+
canBePrefixUnaryOperator: boolean;
|
|
33
|
+
canBeBinaryExpressionOperator: boolean;
|
|
34
|
+
canBeDereferenceOperator: boolean;
|
|
35
|
+
canBeAssignmentStatementOperator: boolean;
|
|
36
|
+
canBeObjectParameter: boolean;
|
|
37
|
+
canBeConstructorDeclaration: boolean;
|
|
38
|
+
canBeOwnOrBaseConstructorCall: boolean;
|
|
39
|
+
canBeBaseExpression: boolean;
|
|
40
|
+
canBeIndexer: boolean;
|
|
41
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { Range, TaskController } from '../../../common/index.js';
|
|
3
|
+
import { SourceFile } from '../../../project/index.js';
|
|
4
|
+
import { NodeSemanticInfo } from '../node-semantic-info/Types.js';
|
|
5
|
+
import { Rename } from './Types.js';
|
|
6
|
+
export declare abstract class RenameService<TSourceFile extends SourceFile> {
|
|
7
|
+
private readonly referencesService;
|
|
8
|
+
prepareRename(analyzer: Analyzer, sourceFile: TSourceFile, offset: number): Range | undefined;
|
|
9
|
+
rename(analyzer: Analyzer, sourceFile: TSourceFile, offset: number, newText: string, taskController: TaskController): Promise<Rename[]>;
|
|
10
|
+
protected abstract getSemanticInfoAndRangeOffset(analyzer: Analyzer, sourceFile: TSourceFile, offset: number): {
|
|
11
|
+
semanticInfo: NodeSemanticInfo;
|
|
12
|
+
range: Range;
|
|
13
|
+
} | undefined;
|
|
14
|
+
private canRename;
|
|
15
|
+
private declarationWithSemanticInfoCanBeRenamed;
|
|
16
|
+
private entityCanBeRenamed;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Range } from '../../../common/index.js';
|
|
2
|
+
import { SourceFile } from '../../../project/index.js';
|
|
3
|
+
export declare class Rename {
|
|
4
|
+
readonly sourceFile: SourceFile;
|
|
5
|
+
readonly range: Range;
|
|
6
|
+
readonly text: string;
|
|
7
|
+
constructor(sourceFile: SourceFile, range: Range, text: string);
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Name } from '../../../common/index.js';
|
|
2
|
+
import { AddedScriptBlockInfo } from './Types.js';
|
|
3
|
+
export declare abstract class ScriptEditingService {
|
|
4
|
+
protected static readonly indentationStep = " ";
|
|
5
|
+
protected static readonly elementParameterNameText = "o";
|
|
6
|
+
protected static readonly elementParameterName: Name;
|
|
7
|
+
protected createScriptBlockText(blockInfo: AddedScriptBlockInfo, indentation: string, newLine: string): string;
|
|
8
|
+
protected detectNewLine(text: string): string;
|
|
9
|
+
}
|
package/build/types/services/{SemanticTokensService.d.ts → common/semantic-tokens/Types.d.ts}
RENAMED
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Range, TaskController } from '../common/index.js';
|
|
3
|
-
import { SourceFile } from '../project/index.js';
|
|
4
|
-
export declare class SemanticTokensService {
|
|
5
|
-
getSemanticTokens(analyzer: Analyzer, sourceFile: SourceFile, taskController: TaskController): Promise<SemanticToken[]>;
|
|
6
|
-
getSemanticTokensInRange(analyzer: Analyzer, sourceFile: SourceFile, range: Range, taskController: TaskController): Promise<SemanticToken[]>;
|
|
7
|
-
private rangesOverlap;
|
|
8
|
-
private getSemanticTokenKindForNamedFunctionEntity;
|
|
9
|
-
private isCapitalizedName;
|
|
10
|
-
}
|
|
1
|
+
import { Range } from '../../../common/index.js';
|
|
11
2
|
export declare class SemanticToken {
|
|
12
3
|
readonly range: Range;
|
|
13
4
|
readonly kind: SemanticTokenKind;
|