@artel/artc 0.6.26017 → 0.6.26019
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/Cli.js +3 -3
- package/build/api/Api.js +39 -161
- package/build/api/ApiNodeJS.js +3 -3
- package/build/api/ApiServices.js +6744 -8943
- package/build/{chunk-UCBPXOLW.js → chunk-27AIX6Z7.js} +3 -5
- package/build/{chunk-SJFIPH42.js → chunk-LYYIQT6J.js} +63496 -60655
- package/build/{chunk-65XBWCU7.js → chunk-QBUXIP7E.js} +11 -11
- package/build/types/analysis/AccessedFunction.d.ts +3 -6
- package/build/types/analysis/AccessedFunctionParameter.d.ts +7 -0
- package/build/types/analysis/Analyzer.d.ts +81 -580
- package/build/types/analysis/BaseMemberConflictsValidator.d.ts +1 -1
- package/build/types/analysis/DeclarationsUsageMap.d.ts +14 -0
- package/build/types/analysis/EntityOrPackageNameTreeNode.d.ts +13 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +6 -2
- package/build/types/analysis/NodeOrDiagnosticLocation.d.ts +12 -0
- package/build/types/analysis/OverridableTypeMember.d.ts +6 -0
- package/build/types/analysis/ReferencedPackagesCollector.d.ts +24 -0
- package/build/types/analysis/ResolvedImplementationPackage.d.ts +1 -2
- package/build/types/analysis/SignatureComparisonOptions.d.ts +6 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +2 -3
- package/build/types/analysis/SpecialNameKey.d.ts +1 -1
- package/build/types/analysis/SubstitutedFunction.d.ts +1 -1
- package/build/types/analysis/TsInteropInputs.d.ts +9 -0
- package/build/types/analysis/TypeAssignabilityFlags.d.ts +22 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +1 -1
- package/build/types/analysis/a/Analyzer.d.ts +466 -0
- package/build/types/analysis/{ArgumentToParameterMatchResult.d.ts → a/ArgumentToParameterMatchResult.d.ts} +4 -4
- package/build/types/analysis/{ArgumentsToParametersMatcher.d.ts → a/ArgumentsToParametersMatcher.d.ts} +5 -5
- package/build/types/analysis/{AutotypeCallExpressionMeaning.d.ts → a/AutotypeCallExpressionMeaning.d.ts} +8 -9
- package/build/types/analysis/{BaseExpressionMeaning.d.ts → a/BaseExpressionMeaning.d.ts} +7 -8
- package/build/types/analysis/{CallExpressionMeaning.d.ts → a/CallExpressionMeaning.d.ts} +11 -16
- package/build/types/analysis/{ConstructorCallResolver.d.ts → a/ConstructorCallResolver.d.ts} +9 -7
- package/build/types/analysis/a/DeclarationsUsageCounter.d.ts +12 -0
- package/build/types/analysis/{DereferenceExpressionMeaning.d.ts → a/DereferenceExpressionMeaning.d.ts} +5 -5
- package/build/types/analysis/a/ExpressionAnalysisOptions.d.ts +21 -0
- package/build/types/analysis/a/FindModifier.d.ts +5 -0
- package/build/types/analysis/{FunctionAccessResolver.d.ts → a/FunctionAccessResolver.d.ts} +11 -8
- package/build/types/analysis/{IdentifierExpressionMeaning.d.ts → a/IdentifierExpressionMeaning.d.ts} +11 -13
- package/build/types/analysis/{IndexedAccessExpressionMeaning.d.ts → a/IndexedAccessExpressionMeaning.d.ts} +5 -5
- package/build/types/analysis/{InstanceFieldsInitializationValidator.d.ts → a/InstanceFieldsInitializationValidator.d.ts} +4 -4
- package/build/types/analysis/{MemberAccessExpressionMeaning.d.ts → a/MemberAccessExpressionMeaning.d.ts} +15 -23
- package/build/types/analysis/{ModifierValidator.d.ts → a/ModifierValidator.d.ts} +3 -3
- package/build/types/analysis/{NamedTypeResolver.d.ts → a/NamedTypeResolver.d.ts} +5 -5
- package/build/types/analysis/{NamedTypeSpecifierResolver.d.ts → a/NamedTypeSpecifierResolver.d.ts} +4 -4
- package/build/types/analysis/{NodeTypeUtils.d.ts → a/NodeTypeUtils.d.ts} +1 -1
- package/build/types/analysis/{ObjectExpressionMeaning.d.ts → a/ObjectExpressionMeaning.d.ts} +4 -5
- package/build/types/analysis/{OverloadResolver.d.ts → a/OverloadResolver.d.ts} +9 -8
- package/build/types/analysis/{OwnAndBaseConstructorCallsChecker.d.ts → a/OwnAndBaseConstructorCallsChecker.d.ts} +4 -4
- package/build/types/analysis/{OwnConstructorCallExpressionMeaning.d.ts → a/OwnConstructorCallExpressionMeaning.d.ts} +6 -8
- package/build/types/analysis/{PackageAndStaticVariablesInitializationValidator.d.ts → a/PackageAndStaticVariablesInitializationValidator.d.ts} +4 -4
- package/build/types/analysis/{ReductionSourceMemberFinder.d.ts → a/ReductionSourceMemberFinder.d.ts} +5 -6
- package/build/types/analysis/{ReservedNameDictionary.d.ts → a/ReservedNameDictionary.d.ts} +3 -1
- package/build/types/analysis/{AnalyzedTranslationPackage.d.ts → a/ResolvedTranslationPackage.d.ts} +10 -12
- package/build/types/analysis/{ReturnTypeInferrer.d.ts → a/ReturnTypeInferrer.d.ts} +3 -3
- package/build/types/analysis/{SourceFileAnalyzer.d.ts → a/SourceFileAnalyzer.d.ts} +6 -6
- package/build/types/analysis/{SourcePackageMembersCreator.d.ts → a/SourcePackageMembersCreator.d.ts} +3 -3
- package/build/types/analysis/a/SyntacticAccessKind.d.ts +6 -0
- package/build/types/analysis/{TagMeaning.d.ts → a/TagMeaning.d.ts} +14 -21
- package/build/types/analysis/{TextIdentity.d.ts → a/TextIdentity.d.ts} +2 -2
- package/build/types/analysis/{TranslatedEntityNameConflictsValidator.d.ts → a/TranslatedEntityNameConflictsValidator.d.ts} +3 -3
- package/build/types/analysis/{TreeQuery.d.ts → a/TreeQuery.d.ts} +7 -8
- package/build/types/analysis/{TypeArgumentInferrer.d.ts → a/TypeArgumentInferrer.d.ts} +5 -4
- package/build/types/analysis/{TypeInferrer.d.ts → a/TypeInferrer.d.ts} +2 -2
- package/build/types/analysis/{TypeNarrower.d.ts → a/TypeNarrower.d.ts} +2 -2
- package/build/types/analysis/{TypeOverloadResolver.d.ts → a/TypeOverloadResolver.d.ts} +1 -1
- package/build/types/analysis/{UserDefinableBinaryOperatorResolver.d.ts → a/UserDefinableBinaryOperatorResolver.d.ts} +6 -6
- package/build/types/analysis/{UserDefinableUnaryOperatorResolver.d.ts → a/UserDefinableUnaryOperatorResolver.d.ts} +4 -4
- package/build/types/analysis/{control-flow → a/control-flow}/GraphBuilder.d.ts +6 -7
- package/build/types/analysis/{control-flow → a/control-flow}/NarrowableExpression.d.ts +1 -1
- package/build/types/analysis/{control-flow → a/control-flow}/NarrowableReference.d.ts +3 -3
- package/build/types/analysis/{control-flow → a/control-flow}/Nodes.d.ts +1 -1
- package/build/types/analysis/{semantic-context → a/semantic-context}/Declarations.d.ts +4 -4
- package/build/types/analysis/{semantic-context → a/semantic-context}/FieldWithInitializerSemanticContext.d.ts +3 -3
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextBase.d.ts +28 -22
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextBuilder.d.ts +16 -13
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextValidatingNameConflicts.d.ts +4 -4
- package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContextWithParent.d.ts +1 -1
- package/build/types/analysis/{semantic-context → a/semantic-context}/SourceFileSemanticContext.d.ts +9 -10
- package/build/types/analysis/{semantic-context → a/semantic-context}/SpecialLocalDeclarationsBuilder.d.ts +2 -2
- package/build/types/analysis/{semantic-context → a/semantic-context}/SubprogramBodyAndParametersSemanticContext.d.ts +3 -3
- package/build/types/analysis/{semantic-context → a/semantic-context}/SubprogramSemanticContext.d.ts +7 -8
- package/build/types/analysis/{semantic-context → a/semantic-context}/TypeSemanticContext.d.ts +8 -9
- package/build/types/analysis/m/Analyzer.d.ts +10 -0
- package/build/types/api/Api.d.ts +24 -25
- package/build/types/common/LocalizationHelper.d.ts +1 -11
- package/build/types/common/LocalizationHelperA.d.ts +16 -0
- package/build/types/common/Logger.d.ts +1 -1
- package/build/types/common/index.d.ts +1 -1
- package/build/types/diagnostic/DiagnosticCode.d.ts +177 -174
- package/build/types/diagnostic/TokenDiagnostic.d.ts +1 -1
- package/build/types/emitter/Emitter.d.ts +1 -1
- package/build/types/emitter/{IrBuilder.d.ts → IrBuilderA.d.ts} +7 -7
- package/build/types/entities/BaseObjectType.d.ts +1 -1
- package/build/types/entities/Entity.d.ts +3 -47
- package/build/types/entities/EntityKind.d.ts +16 -0
- package/build/types/entities/EntityLocalizationContext.d.ts +8 -6
- package/build/types/entities/EntityToStringDecorator.d.ts +4 -0
- package/build/types/entities/IEntity.d.ts +1 -3
- package/build/types/entities/OperatorKind.d.ts +2 -2
- package/build/types/entities/PackageEntityMembers.d.ts +1 -2
- package/build/types/{analysis → entities}/Tag.d.ts +5 -2
- package/build/types/{analysis → entities}/Translation.d.ts +7 -7
- package/build/types/entities/TypeEntity.d.ts +2 -1
- package/build/types/entities/TypeMemberEntity.d.ts +31 -0
- package/build/types/entities/index.d.ts +5 -1
- package/build/types/entities/interfaces/AliasTypeEntity.d.ts +4 -5
- package/build/types/entities/interfaces/ConstructorEntity.d.ts +3 -4
- package/build/types/entities/interfaces/DereferenceOperatorEntity.d.ts +2 -2
- package/build/types/entities/interfaces/DestructorEntity.d.ts +2 -2
- package/build/types/entities/interfaces/FunctionEntity.d.ts +3 -5
- package/build/types/entities/interfaces/FunctionTypeEntity.d.ts +3 -5
- package/build/types/entities/interfaces/GetterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/IndexerEntity.d.ts +2 -2
- package/build/types/entities/interfaces/PackageAliasEntity.d.ts +2 -2
- package/build/types/entities/interfaces/PackageEntity.d.ts +23 -2
- package/build/types/entities/interfaces/ReducedTypeEntity.d.ts +4 -5
- package/build/types/entities/interfaces/SetterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/StructuredTypeEntity.d.ts +3 -5
- package/build/types/entities/interfaces/TextTranslationEntity.d.ts +3 -3
- package/build/types/entities/interfaces/TypeExtensionEntity.d.ts +3 -4
- package/build/types/entities/interfaces/TypeParameterEntity.d.ts +2 -2
- package/build/types/entities/interfaces/VariableEntity.d.ts +11 -11
- package/build/types/entities/interfaces/VariantTypeEntity.d.ts +3 -5
- package/build/types/entities/intrinsic/IntrinsicConstructorEntity.d.ts +7 -5
- package/build/types/entities/intrinsic/IntrinsicFunctionEntity.d.ts +9 -4
- package/build/types/entities/intrinsic/IntrinsicFunctionTypeEntity.d.ts +3 -3
- package/build/types/entities/intrinsic/IntrinsicGetterEntity.d.ts +5 -4
- package/build/types/entities/intrinsic/IntrinsicSetterEntity.d.ts +21 -0
- package/build/types/entities/intrinsic/IntrinsicStructuredTypeEntity.d.ts +5 -3
- package/build/types/entities/intrinsic/IntrinsicTypeParameterEntity.d.ts +6 -4
- package/build/types/entities/intrinsic/IntrinsicVariableEntity.d.ts +6 -4
- package/build/types/entities/intrinsic/index.d.ts +1 -0
- package/build/types/entities/source/{SourceAliasTypeEntity.d.ts → a/SourceAliasTypeEntity.d.ts} +5 -8
- package/build/types/entities/source/{SourceConstructorEntity.d.ts → a/SourceConstructorEntity.d.ts} +6 -8
- package/build/types/entities/source/{SourceDereferenceOperatorEntity.d.ts → a/SourceDereferenceOperatorEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceDestructorEntity.d.ts → a/SourceDestructorEntity.d.ts} +6 -8
- package/build/types/entities/source/{SourceFunctionEntity.d.ts → a/SourceFunctionEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceFunctionTypeEntity.d.ts → a/SourceFunctionTypeEntity.d.ts} +7 -12
- package/build/types/entities/source/{SourceGetterEntity.d.ts → a/SourceGetterEntity.d.ts} +9 -11
- package/build/types/entities/source/{SourceIndexerEntity.d.ts → a/SourceIndexerEntity.d.ts} +6 -7
- package/build/types/entities/source/{SourcePackageAliasEntity.d.ts → a/SourcePackageAliasEntity.d.ts} +5 -7
- package/build/types/entities/source/a/SourcePackageEntity.d.ts +67 -0
- package/build/types/entities/source/{SourceReducedTypeEntity.d.ts → a/SourceReducedTypeEntity.d.ts} +6 -9
- package/build/types/entities/source/{SourceSetterEntity.d.ts → a/SourceSetterEntity.d.ts} +8 -25
- package/build/types/entities/source/{SourceStructuredTypeEntity.d.ts → a/SourceStructuredTypeEntity.d.ts} +10 -15
- package/build/types/entities/source/{SourceTextTranslationEntity.d.ts → a/SourceTextTranslationEntity.d.ts} +4 -7
- package/build/types/entities/source/{SourceTypeExtensionEntity.d.ts → a/SourceTypeExtensionEntity.d.ts} +5 -8
- package/build/types/entities/source/{SourceTypeParameterEntity.d.ts → a/SourceTypeParameterEntity.d.ts} +6 -9
- package/build/types/entities/source/{SourceVariableEntity.d.ts → a/SourceVariableEntity.d.ts} +7 -8
- package/build/types/entities/source/{SourceVariantTypeEntity.d.ts → a/SourceVariantTypeEntity.d.ts} +6 -10
- package/build/types/entities/translated/TranslatedAliasTypeEntity.d.ts +11 -21
- package/build/types/entities/translated/TranslatedConstructorEntity.d.ts +5 -17
- package/build/types/entities/translated/TranslatedDereferenceOperatorEntity.d.ts +5 -8
- package/build/types/entities/translated/TranslatedDestructorEntity.d.ts +10 -14
- package/build/types/entities/translated/TranslatedFunctionEntity.d.ts +14 -31
- package/build/types/entities/translated/TranslatedFunctionTypeEntity.d.ts +9 -25
- package/build/types/entities/translated/TranslatedGetterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedIndexerEntity.d.ts +6 -16
- package/build/types/entities/translated/TranslatedPackageEntity.d.ts +37 -12
- package/build/types/entities/translated/TranslatedReducedTypeEntity.d.ts +10 -19
- package/build/types/entities/translated/TranslatedSetterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedStructuredTypeEntity.d.ts +18 -27
- package/build/types/entities/translated/TranslatedTypeExtensionEntity.d.ts +8 -15
- package/build/types/entities/translated/TranslatedTypeParameterEntity.d.ts +5 -9
- package/build/types/entities/translated/TranslatedVariableEntity.d.ts +10 -16
- package/build/types/entities/translated/TranslatedVariantTypeEntity.d.ts +10 -25
- package/build/types/entities/translated/source/a/SourceTranslatedAliasTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedConstructorEntity.d.ts +12 -0
- package/build/types/entities/translated/source/a/SourceTranslatedDestructorEntity.d.ts +9 -0
- package/build/types/entities/translated/source/a/SourceTranslatedFunctionEntity.d.ts +24 -0
- package/build/types/entities/translated/source/a/SourceTranslatedFunctionTypeEntity.d.ts +13 -0
- package/build/types/entities/translated/source/a/SourceTranslatedIndexerEntity.d.ts +11 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageEntity.d.ts +19 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageStructuredTypeEntity.d.ts +20 -0
- package/build/types/entities/translated/source/a/SourceTranslatedPackageVariantTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedReducedTypeEntity.d.ts +14 -0
- package/build/types/entities/translated/source/a/SourceTranslatedTypeExtensionEntity.d.ts +9 -0
- package/build/types/entities/translated/source/a/index.d.ts +11 -0
- package/build/types/executor/NodeCompiler.d.ts +1 -1
- package/build/types/parser/{ConvertTokenKind.d.ts → a/ConvertTokenKind.d.ts} +1 -1
- package/build/types/parser/{KeywordDictionary.d.ts → a/KeywordDictionary.d.ts} +4 -3
- package/build/types/parser/{Parser.d.ts → a/Parser.d.ts} +2 -2
- package/build/types/parser/a/TokenKind.d.ts +80 -0
- package/build/types/parser/{TriviaInterner.d.ts → a/TriviaInterner.d.ts} +1 -1
- package/build/types/project/CompilationLoader.d.ts +3 -3
- package/build/types/project/SourceFile.d.ts +34 -10
- package/build/types/project/SourcePackage.d.ts +71 -19
- package/build/types/project/configuration/ConfigurationConverter.d.ts +3 -5
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +7 -6
- package/build/types/project/configuration/ConfigurationTranslator.d.ts +1 -3
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +1 -2
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +1 -2
- package/build/types/services/LanguageServer.d.ts +10 -10
- package/build/types/services/a/CodeActionsService.d.ts +10 -0
- package/build/types/services/{CompletionService.d.ts → a/CompletionService.d.ts} +5 -52
- package/build/types/services/a/DefinitionService.d.ts +11 -0
- package/build/types/services/a/DisplayService.d.ts +57 -0
- package/build/types/services/a/EvaluatableExpressionService.d.ts +10 -0
- package/build/types/services/a/HoverService.d.ts +11 -0
- package/build/types/services/a/NodeSemanticInfo.d.ts +45 -0
- package/build/types/services/a/RenameService.d.ts +11 -0
- package/build/types/services/a/ScriptEditingService.d.ts +13 -0
- package/build/types/services/a/SelectionRangeService.d.ts +7 -0
- package/build/types/services/a/SemanticTokensService.d.ts +11 -0
- package/build/types/services/a/SourceFileItemsService.d.ts +11 -0
- package/build/types/services/{TranslationService.d.ts → a/TranslationService.d.ts} +4 -4
- package/build/types/services/a/TranslationsGenerationService.d.ts +7 -0
- package/build/types/services/{TreeUtils.d.ts → a/TreeUtils.d.ts} +1 -1
- package/build/types/services/a/references/DefinitionInfoFinder.d.ts +6 -0
- package/build/types/services/a/references/ReferencesFinder.d.ts +7 -0
- package/build/types/services/{signature-help → a/signature-help}/ParametersSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/a/signature-help/SignatureHelpService.d.ts +6 -0
- package/build/types/services/{signature-help → a/signature-help}/SignatureWithParameters.d.ts +6 -6
- package/build/types/services/{signature-help → a/signature-help}/TypeParameterSignatureHelpProvider.d.ts +4 -4
- package/build/types/services/{signature-help → a/signature-help}/utils.d.ts +1 -1
- package/build/types/services/{FileSystemTreeDisplayService.d.ts → common/FileSystemTreeDisplayService.d.ts} +1 -1
- package/build/types/services/{Types.d.ts → common/Types.d.ts} +5 -5
- package/build/types/services/{Utils.d.ts → common/Utils.d.ts} +2 -2
- package/build/types/services/common/WorkspaceItemsService.d.ts +6 -0
- package/build/types/services/{CodeActionsService.d.ts → common/code-action/Types.d.ts} +8 -9
- package/build/types/services/common/completion/Types.d.ts +49 -0
- package/build/types/services/common/definition/DefinitionService.d.ts +23 -0
- package/build/types/services/common/definition/Types.d.ts +7 -0
- package/build/types/services/common/display/BaseDisplayService.d.ts +41 -0
- package/build/types/services/common/display/DisplayService.d.ts +52 -0
- package/build/types/services/{DisplayService.d.ts → common/display/Types.d.ts} +60 -177
- package/build/types/services/common/display/index.d.ts +2 -0
- package/build/types/services/common/document-highlights/DocumentHighlightsService.d.ts +9 -0
- package/build/types/services/common/document-highlights/Types.d.ts +11 -0
- package/build/types/services/common/evaluatable-expression/Types.d.ts +6 -0
- package/build/types/services/common/hover/HoverService.d.ts +16 -0
- package/build/types/services/common/hover/Types.d.ts +8 -0
- package/build/types/services/common/node-semantic-info/Types.d.ts +101 -0
- package/build/types/services/common/references/ReferencesFinder.d.ts +14 -0
- package/build/types/services/common/references/ReferencesSearchUtils.d.ts +5 -0
- package/build/types/services/common/references/ReferencesService.d.ts +12 -0
- package/build/types/services/common/references/Types.d.ts +41 -0
- package/build/types/services/common/rename/RenameService.d.ts +17 -0
- package/build/types/services/common/rename/Types.d.ts +8 -0
- package/build/types/services/common/script-editing/ScriptEditingService.d.ts +9 -0
- package/build/types/services/common/script-editing/Types.d.ts +9 -0
- package/build/types/services/common/selection-rage/Types.d.ts +6 -0
- package/build/types/services/{SemanticTokensService.d.ts → common/semantic-tokens/Types.d.ts} +1 -10
- package/build/types/services/{signature-help/SignatureHelpService.d.ts → common/signature-help/Types.d.ts} +1 -6
- package/build/types/services/{SourceFileItemsService.d.ts → common/source-file-items/Types.d.ts} +7 -16
- package/build/types/services/{source-generation → common/source-generation}/EntityToSyntax.d.ts +3 -3
- package/build/types/services/{source-generation → common/source-generation}/SourceGenerationService.d.ts +6 -6
- package/build/types/services/workspace/CompilationController.d.ts +5 -4
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +1 -1
- package/build/types/services/workspace/Workspace.d.ts +1 -1
- package/build/types/tree/NodePath.d.ts +6 -2
- package/build/types/tree/Types.d.ts +7 -0
- package/build/types/tree/Utils.d.ts +4 -7
- package/build/types/tree/a/BaseNode.d.ts +42 -0
- package/build/types/tree/{Nodes.d.ts → a/Nodes.d.ts} +87 -66
- package/build/types/tree/{SyntaxFactory.d.ts → a/SyntaxFactory.d.ts} +8 -4
- package/build/types/tree/{SyntaxToCode.d.ts → a/SyntaxToCode.d.ts} +2 -2
- package/build/types/tree/a/Token.d.ts +46 -0
- package/build/types/tree/a/TokenKind.d.ts +74 -0
- package/build/types/tree/a/TreeTraversal.d.ts +18 -0
- package/build/types/tree/a/Types.d.ts +45 -0
- package/build/types/tree/a/Utils.d.ts +3 -0
- package/build/types/tree/a/index.d.ts +15 -0
- package/build/types/tree/index.d.ts +1 -9
- package/build/types/tree/{BaseNode.d.ts → m/BaseNode.d.ts} +4 -27
- package/build/types/tree/m/NodeKind.d.ts +4 -0
- package/build/types/tree/m/Nodes.d.ts +17 -0
- package/build/types/tree/m/TokenKind.d.ts +74 -0
- package/build/types/tree/m/TriviaKind.d.ts +7 -0
- package/build/types/tree/m/index.d.ts +5 -0
- package/build/types/ts-interop/Entities.d.ts +9 -353
- package/build/types/ts-interop/TsInteropContext.d.ts +5 -14
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +1 -1
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +1 -2
- package/build/types/ts-interop/TsUtils.d.ts +10 -0
- package/build/types/ts-interop/TypeEntities.d.ts +359 -0
- package/build/types/ts-interop/Utils.d.ts +1 -1
- package/build/types/types/AliasType.d.ts +6 -8
- package/build/types/types/FunctionType.d.ts +7 -8
- package/build/types/types/IntersectionType.d.ts +4 -7
- package/build/types/types/ParameterType.d.ts +7 -9
- package/build/types/types/ReducedType.d.ts +6 -8
- package/build/types/types/StandardTypes.d.ts +4 -2
- package/build/types/types/StructuredType.d.ts +6 -7
- package/build/types/types/SubstitutionStubType.d.ts +5 -8
- package/build/types/types/Substitutions.d.ts +1 -1
- package/build/types/types/Type.d.ts +15 -9
- package/build/types/types/TypeFactory.d.ts +11 -2
- package/build/types/types/TypeMembers.d.ts +5 -2
- package/build/types/types/UnionType.d.ts +4 -7
- package/build/types/types/UnresolvedType.d.ts +4 -7
- package/build/types/types/VariantType.d.ts +6 -8
- package/package.json +13 -11
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +0 -21
- package/build/types/analysis/FindModifier.d.ts +0 -7
- package/build/types/analysis/ResolvedTextTranslationPackage.d.ts +0 -9
- package/build/types/analysis/Utils.d.ts +0 -47
- package/build/types/analysis/Visitor.d.ts +0 -7
- package/build/types/analysis/index.d.ts +0 -8
- package/build/types/common/TreeTraversal.d.ts +0 -14
- package/build/types/entities/source/SourcePackageEntity.d.ts +0 -33
- package/build/types/parser/TokenKind.d.ts +0 -75
- package/build/types/services/DefinitionService.d.ts +0 -24
- package/build/types/services/DocumentHighlightsService.d.ts +0 -18
- package/build/types/services/EvaluatableExpressionService.d.ts +0 -15
- package/build/types/services/HoverService.d.ts +0 -17
- package/build/types/services/NodeSemanticInfo.d.ts +0 -147
- package/build/types/services/ReferencesService.d.ts +0 -30
- package/build/types/services/RenameService.d.ts +0 -17
- package/build/types/services/ScriptEditingService.d.ts +0 -25
- package/build/types/services/SelectionRangeService.d.ts +0 -12
- package/build/types/services/TranslationsGenerationService.d.ts +0 -7
- package/build/types/services/WorkspaceItemsService.d.ts +0 -6
- package/build/types/tree/TokenKind.d.ts +0 -74
- /package/build/types/analysis/{ModifierFlags.d.ts → a/ModifierFlags.d.ts} +0 -0
- /package/build/types/analysis/{ReachabilityChecker.d.ts → a/ReachabilityChecker.d.ts} +0 -0
- /package/build/types/analysis/{VariableIsAssignedChecker.d.ts → a/VariableIsAssignedChecker.d.ts} +0 -0
- /package/build/types/analysis/{VariableIsNotAssignedChecker.d.ts → a/VariableIsNotAssignedChecker.d.ts} +0 -0
- /package/build/types/analysis/{control-flow → a/control-flow}/GraphVisualizer.d.ts +0 -0
- /package/build/types/analysis/{control-flow → a/control-flow}/index.d.ts +0 -0
- /package/build/types/analysis/{semantic-context → a/semantic-context}/SemanticContext.d.ts +0 -0
- /package/build/types/analysis/{semantic-context → a/semantic-context}/index.d.ts +0 -0
- /package/build/types/entities/source/{index.d.ts → a/index.d.ts} +0 -0
- /package/build/types/parser/{Scanner.d.ts → a/Scanner.d.ts} +0 -0
- /package/build/types/tree/{KeywordFlags.d.ts → a/KeywordFlags.d.ts} +0 -0
- /package/build/types/tree/{KeywordKind.d.ts → a/KeywordKind.d.ts} +0 -0
- /package/build/types/tree/{NodeKind.d.ts → a/NodeKind.d.ts} +0 -0
- /package/build/types/tree/{NodesDebug.d.ts → a/NodesDebug.d.ts} +0 -0
- /package/build/types/tree/{OperatorKind.d.ts → a/OperatorKind.d.ts} +0 -0
- /package/build/types/tree/{TokenFlags.d.ts → a/TokenFlags.d.ts} +0 -0
- /package/build/types/tree/{TriviaKind.d.ts → a/TriviaKind.d.ts} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/Analyzer.js';
|
|
2
|
+
import { PackageNameTreeNode } from '../../analysis/ImportedPackageNameTree.js';
|
|
3
|
+
import { PackageLocale } from '../../common/index.js';
|
|
4
|
+
import { GetterEntity, PackageAliasEntity, PackageEntity, SetterEntity, TextTranslationEntity, TypeEntity, TypeExtensionEntity } from '../../entities/index.js';
|
|
5
|
+
import { OperatorKind } from '../../entities/OperatorKind.js';
|
|
6
|
+
import { SourceFile } from '../../project/index.js';
|
|
7
|
+
import { KeywordKind } from '../../tree/a/index.js';
|
|
8
|
+
import type * as types from '../../types/index.js';
|
|
9
|
+
import { BaseDisplayService } from '../common/display/BaseDisplayService.js';
|
|
10
|
+
import { DisplayService } from '../common/display/DisplayService.js';
|
|
11
|
+
import * as t from '../common/display/Types.js';
|
|
12
|
+
export declare class DisplayServiceA extends BaseDisplayService {
|
|
13
|
+
private readonly locale;
|
|
14
|
+
protected readonly contextualSourceFile: SourceFile | undefined;
|
|
15
|
+
constructor(common: DisplayService, analyzer: Analyzer | undefined, locale: PackageLocale, contextualSourceFile: SourceFile | undefined);
|
|
16
|
+
displayVariableDeclaration(variable: t.VariableDeclaration): string;
|
|
17
|
+
displayType(type: types.Type): string;
|
|
18
|
+
getFunctionTypeBodyDisplayParts(type: types.FunctionType): t.FunctionTypeBodyDisplayParts;
|
|
19
|
+
getNamedTypeDisplayParts(type: t.NamedType): t.NamedTypeDisplayParts;
|
|
20
|
+
displayPackageAliasEntity(entity: PackageAliasEntity): string;
|
|
21
|
+
displayPackage(package_: PackageEntity): string;
|
|
22
|
+
displayPackageNameTreeNode(node: PackageNameTreeNode): string;
|
|
23
|
+
displayParameterDeclaration(parameter: t.ParameterDeclaration, options?: t.TypeDisplayOptions): string;
|
|
24
|
+
displayFunctionDeclaration(func: t.FunctionDeclaration): string;
|
|
25
|
+
getFunctionDeclarationDisplayParts(func: t.FunctionDeclaration): t.FunctionDeclarationDisplayParts;
|
|
26
|
+
displayAnonymousFunctionDeclaration(func: t.AnonymousFunctionDeclaration): string;
|
|
27
|
+
displayOperatorKind(kind: OperatorKind): string;
|
|
28
|
+
displayConstructorDeclaration(constructor: t.ConstructorDeclaration): string;
|
|
29
|
+
getConstructorDeclarationDisplayParts(constructor: t.ConstructorDeclaration): t.ConstructorDeclarationDisplayParts;
|
|
30
|
+
displayDestructorDeclaration(destructor: t.DestructorDeclaration): string;
|
|
31
|
+
displayIndexerDeclaration(indexer: t.IndexerDeclaration): string;
|
|
32
|
+
getIndexerDeclarationDisplayParts(indexer: t.IndexerDeclaration): t.IndexerDeclarationDisplayParts;
|
|
33
|
+
displayDereferenceOperatorDeclaration(dereferenceOperator: t.DereferenceOperatorDeclaration): string;
|
|
34
|
+
displayTypeDeclaration(type: t.TypeDeclaration): string;
|
|
35
|
+
displayTypeDeclarationEntity(entity: TypeEntity): string;
|
|
36
|
+
displayTypeParameterValue(value: t.TypeParameterValue): string;
|
|
37
|
+
displayGetterEntity(entity: GetterEntity): string;
|
|
38
|
+
displaySetterEntity(entity: SetterEntity): string;
|
|
39
|
+
displayTypeExtensionEntity(entity: TypeExtensionEntity): string;
|
|
40
|
+
displayLocalizableTextEntity(entity: TextTranslationEntity): string;
|
|
41
|
+
displayKeyword(kind: KeywordKind): string;
|
|
42
|
+
private displayTypeEntityAsUsage;
|
|
43
|
+
private displayStructuredTypeUsage;
|
|
44
|
+
private displayVariantTypeUsage;
|
|
45
|
+
private displayFunctionTypeUsage;
|
|
46
|
+
private displayParameterTypeUsage;
|
|
47
|
+
private displayAliasTypeUsage;
|
|
48
|
+
private displayReducedTypeUsage;
|
|
49
|
+
private displayUnionOrIntersectionTypeUsage;
|
|
50
|
+
private displayUnresolvedTypeUsage;
|
|
51
|
+
private displaySubstitutionStubTypeUsage;
|
|
52
|
+
private displayTypeInternal;
|
|
53
|
+
private displayTypeUsageInternal;
|
|
54
|
+
private displayUnionOrIntersectionTypeTypes;
|
|
55
|
+
private displayDeclarationContainer;
|
|
56
|
+
private displayDeclarationContainerWithEndingDot;
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../project/index.js';
|
|
3
|
+
import { EvaluatableExpression } from '../common/evaluatable-expression/Types.js';
|
|
4
|
+
export declare class EvaluatableExpressionServiceA {
|
|
5
|
+
getEvaluatableExpression(analyzer: Analyzer, sourceFile: SourceFileA, offset: number): EvaluatableExpression | undefined;
|
|
6
|
+
private convertEvaluatableExpressionToString;
|
|
7
|
+
private getEvaluatableExpressionForIdentifier;
|
|
8
|
+
private isEvaluatableReceiver;
|
|
9
|
+
private ifNamedDeclarationThenName;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/Analyzer.js';
|
|
2
|
+
import { Range } from '../../common/index.js';
|
|
3
|
+
import { SourceFileA } from '../../project/index.js';
|
|
4
|
+
import { HoverService } from '../common/hover/HoverService.js';
|
|
5
|
+
import { NodeSemanticInfo } from '../common/node-semantic-info/Types.js';
|
|
6
|
+
export declare class HoverServiceA extends HoverService<SourceFileA> {
|
|
7
|
+
protected getSemanticInfoAndRangeAtOffset(analyzer: Analyzer, sourceFile: SourceFileA, offset: number): {
|
|
8
|
+
semanticInfo: NodeSemanticInfo;
|
|
9
|
+
range: Range;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
2
|
+
import * as tree from '../../tree/a/index.js';
|
|
3
|
+
import { TokenOrKeyword } from '../a/TreeUtils.js';
|
|
4
|
+
import { NodeSemanticInfo } from '../common/node-semantic-info/Types.js';
|
|
5
|
+
export declare class NodeSemanticInfoServiceA {
|
|
6
|
+
static ofTokenOrKeyword(analyzer: Analyzer, tokenOrKeyword: TokenOrKeyword, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
7
|
+
static ofRegularOrBlockFunctionLiteral(analyzer: Analyzer, node: tree.RegularOrBlockFunctionLiteral): NodeSemanticInfo | undefined;
|
|
8
|
+
static ofDefaultMatchExpression(analyzer: Analyzer, node: tree.DefaultMatchExpression): NodeSemanticInfo | undefined;
|
|
9
|
+
static ofNonKeywordIdentifier(analyzer: Analyzer, node: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
10
|
+
static ofMember(analyzer: Analyzer, node: tree.MemberAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
11
|
+
static ofQualifiedNameQualifier(analyzer: Analyzer, node: tree.QualifiedName, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
12
|
+
static ofNamedTypeSpecifierNameQualifier(analyzer: Analyzer, node: tree.NamedTypeSpecifier, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
13
|
+
static ofTagNameQualifier(analyzer: Analyzer, node: tree.Tag, qualifier: tree.Identifier, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
14
|
+
static ofIdentifierExpression(analyzer: Analyzer, node: tree.IdentifierExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
15
|
+
static ofConstructorDeclaration(analyzer: Analyzer, node: tree.ConstructorDeclaration): NodeSemanticInfo;
|
|
16
|
+
static ofIndexedElementAccessorDeclaration(analyzer: Analyzer, node: tree.IndexedElementAccessorDeclaration): NodeSemanticInfo;
|
|
17
|
+
static ofIndexedAccessExpressionOperator(analyzer: Analyzer, node: tree.IndexedAccessExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
18
|
+
static ofAssignmentStatementOperator(analyzer: Analyzer, node: tree.AssignmentStatement, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
19
|
+
static ofBinaryExpressionOperator(analyzer: Analyzer, node: tree.BinaryExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
20
|
+
static ofPrefixUnaryExpressionOperator(analyzer: Analyzer, node: tree.PrefixUnaryExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
21
|
+
static ofDereferenceOperatorDeclaration(analyzer: Analyzer, node: tree.DereferencedVariableGetterDeclaration | tree.DereferencedVariableSetterDeclaration): NodeSemanticInfo | undefined;
|
|
22
|
+
static ofDereferenceExpressionOperator(analyzer: Analyzer, node: tree.DereferenceExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
23
|
+
static ofAutotypeCallExpression(analyzer: Analyzer, node: tree.AutotypeCallExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
24
|
+
static ofOwnConstructorCallExpression(analyzer: Analyzer, node: tree.OwnConstructorCallExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
25
|
+
static ofObjectExpression(analyzer: Analyzer, node: tree.ObjectExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
26
|
+
static ofBaseExpression(analyzer: Analyzer, node: tree.BaseExpression, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
27
|
+
static ofConstructorTranslationSourceConstructor(analyzer: Analyzer, node: tree.ConstructorTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
28
|
+
static ofConstructorTranslationTranslatedConstructor(analyzer: Analyzer, node: tree.ConstructorTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
29
|
+
static ofIndexerTranslationSourceIndexer(analyzer: Analyzer, node: tree.IndexerTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
30
|
+
static ofIndexerTranslationTranslatedIndexer(analyzer: Analyzer, node: tree.IndexerTranslation, options: NodeSemanticInfoServiceOptions): NodeSemanticInfo | undefined;
|
|
31
|
+
static ofOjectParameterDeclaration(analyzer: Analyzer, node: tree.ParameterDeclaration, _objectKeyword: tree.Keyword<tree.KeywordKind.Object>): NodeSemanticInfo;
|
|
32
|
+
private static ofPackageNameSegmentAccess;
|
|
33
|
+
private static ofConstructorCallWithTypeAccess;
|
|
34
|
+
private static ofTranslationTypeParameterListParameter;
|
|
35
|
+
private static ofTranslationParameterListParameter;
|
|
36
|
+
private static getBetterReferenceTargetsOrPreserve;
|
|
37
|
+
private static getBetterReferenceTarget;
|
|
38
|
+
private static getResolvedContainingTranslationPackage;
|
|
39
|
+
private static ofAccessedFunctions;
|
|
40
|
+
private static ofConstructors;
|
|
41
|
+
}
|
|
42
|
+
export type NodeSemanticInfoServiceOptions = {
|
|
43
|
+
readonly preferredTargetOfExplicitConstructorCall: 'type-declaration' | 'constructor-declaration';
|
|
44
|
+
readonly includeBetterReferenceTargets: boolean;
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/Analyzer.js';
|
|
2
|
+
import { Range } from '../../common/index.js';
|
|
3
|
+
import { SourceFileA } from '../../project/index.js';
|
|
4
|
+
import { NodeSemanticInfo } from '../common/node-semantic-info/Types.js';
|
|
5
|
+
import { RenameService } from '../common/rename/RenameService.js';
|
|
6
|
+
export declare class RenameServiceA extends RenameService<SourceFileA> {
|
|
7
|
+
protected getSemanticInfoAndRangeOffset(analyzer: Analyzer, sourceFile: SourceFileA, offset: number): {
|
|
8
|
+
semanticInfo: NodeSemanticInfo;
|
|
9
|
+
range: Range;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../project/index.js';
|
|
3
|
+
import * as tree from '../../tree/a/index.js';
|
|
4
|
+
import { ScriptEditingService } from '../common/script-editing/ScriptEditingService.js';
|
|
5
|
+
import { AddedScriptBlockInfo } from '../common/script-editing/Types.js';
|
|
6
|
+
import { NodeLocation, SourceFileEdit } from '../common/Types.js';
|
|
7
|
+
export declare class ScriptEditingServiceA extends ScriptEditingService {
|
|
8
|
+
createEditWithFieldAssignment(analyzer: Analyzer, sourceFile: SourceFileA, scriptDeclaration: tree.SubprogramDeclarationOrLiteral, fieldName: string, value: string): SourceFileEdit | undefined;
|
|
9
|
+
createEditAddingBlocks(sourceFile: SourceFileA, scriptDeclaration: tree.SubprogramDeclarationOrLiteral, addedBlockInfos: readonly AddedScriptBlockInfo[]): SourceFileEdit | undefined;
|
|
10
|
+
canDeleteBlocks(outerScriptFunctionLocation: NodeLocation, scriptFunctionLocations: readonly NodeLocation[]): boolean;
|
|
11
|
+
createEditDeletingBlock(sourceFile: SourceFileA, scriptDeclaration: tree.SubprogramDeclarationOrLiteral): SourceFileEdit | undefined;
|
|
12
|
+
private findLastAssignmentToField;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SourceFileA } from '../../project/SourceFile.js';
|
|
2
|
+
import { SelectionRange } from '../common/selection-rage/Types.js';
|
|
3
|
+
export declare class SelectionRangeServiceA {
|
|
4
|
+
getSelectionRange(sourceFile: SourceFileA, offset: number): SelectionRange | undefined;
|
|
5
|
+
private nodeContainsOffset;
|
|
6
|
+
private nodeShouldBeSkipped;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
2
|
+
import { Range, TaskController } from '../../common/index.js';
|
|
3
|
+
import { SourceFileA } from '../../project/index.js';
|
|
4
|
+
import { SemanticToken } from '../common/semantic-tokens/Types.js';
|
|
5
|
+
export declare class SemanticTokensServiceA {
|
|
6
|
+
getSemanticTokens(analyzer: Analyzer, sourceFile: SourceFileA, taskController: TaskController): Promise<SemanticToken[]>;
|
|
7
|
+
getSemanticTokensInRange(analyzer: Analyzer, sourceFile: SourceFileA, range: Range, taskController: TaskController): Promise<SemanticToken[]>;
|
|
8
|
+
private rangesOverlap;
|
|
9
|
+
private getSemanticTokenKindForNamedFunctionEntity;
|
|
10
|
+
private isCapitalizedName;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SourceFileA } from '../../project/index.js';
|
|
2
|
+
import { SourceFileItem } from '../common/source-file-items/Types.js';
|
|
3
|
+
export declare class SourceFileItemsServiceA {
|
|
4
|
+
private sourceFile;
|
|
5
|
+
getItems(sourceFile: SourceFileA): SourceFileItem[];
|
|
6
|
+
private get locale();
|
|
7
|
+
private get dialect();
|
|
8
|
+
private getChildItems;
|
|
9
|
+
private createItem;
|
|
10
|
+
private getNameOrStubIfEmpty;
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { TextDocument } from 'vscode-languageserver-textdocument';
|
|
2
|
-
import { Analyzer } from '
|
|
3
|
-
import { Range } from '
|
|
4
|
-
import {
|
|
2
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
3
|
+
import { Range } from '../../common/index.js';
|
|
4
|
+
import { SourceFileA } from '../../project/index.js';
|
|
5
5
|
export declare class TranslationService {
|
|
6
6
|
private readonly translationCache;
|
|
7
7
|
constructor();
|
|
8
|
-
translateSourceFile(analyzer: Analyzer, sourceFile:
|
|
8
|
+
translateSourceFile(analyzer: Analyzer, sourceFile: SourceFileA, localeText: string): Translation;
|
|
9
9
|
clearTranslationCache(): void;
|
|
10
10
|
private translateIdentifier;
|
|
11
11
|
private translateKeywords;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../project/SourceFile.js';
|
|
3
|
+
import { SourceFileEdit } from '../common/Types.js';
|
|
4
|
+
export declare class TranslationsGenerationServiceA {
|
|
5
|
+
generateMissingTranslations(analyzer: Analyzer, sourceFile: SourceFileA, offset: number, onlyTypeMembers: boolean): SourceFileEdit[] | undefined;
|
|
6
|
+
isOffsetAtTranslationsContainingPartiallyTranslatedTypes(analyzer: Analyzer, sourceFile: SourceFileA, offset: number): boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../../project/index.js';
|
|
3
|
+
import { DefinitionInfo, ReferencesSearchOptions } from '../../common/references/Types.js';
|
|
4
|
+
export declare class DefinitionInfoFinderA {
|
|
5
|
+
static getReferencedDefinitionInfosAtOffsetA(analyzer: Analyzer, sourceFile: SourceFileA, offset: number, options: ReferencesSearchOptions): readonly DefinitionInfo[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TaskController } from '../../../common/index.js';
|
|
2
|
+
import { SourceFileA } from '../../../project/SourceFile.js';
|
|
3
|
+
import { ReferencesFinder } from '../../common/references/ReferencesFinder.js';
|
|
4
|
+
import { Reference } from '../../common/references/Types.js';
|
|
5
|
+
export declare class ReferencesFinderA extends ReferencesFinder {
|
|
6
|
+
findReferencesInSourceFileA(sourceFile: SourceFileA, result: Reference[], taskController: TaskController): Promise<void>;
|
|
7
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Analyzer } from '
|
|
2
|
-
import {
|
|
3
|
-
import { SignatureHelp } from '
|
|
1
|
+
import { Analyzer } from '../../../analysis/a/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../../project/index.js';
|
|
3
|
+
import { SignatureHelp } from '../../common/signature-help/Types.js';
|
|
4
4
|
export declare class ParametersSignatureHelpProvider {
|
|
5
5
|
private readonly signatureContext_;
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly sourceFile;
|
|
8
8
|
private readonly offset;
|
|
9
9
|
private get signatureContext();
|
|
10
|
-
constructor(analyzer: Analyzer, sourceFile:
|
|
10
|
+
constructor(analyzer: Analyzer, sourceFile: SourceFileA, offset: number);
|
|
11
11
|
provideSignatureHelp(): SignatureHelp | undefined;
|
|
12
12
|
private getNodeWithArgumentsInfoAtOffset;
|
|
13
13
|
private getArgumentIndexInList;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/a/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../../project/index.js';
|
|
3
|
+
import { SignatureHelp } from '../../common/signature-help/Types.js';
|
|
4
|
+
export declare class SignatureHelpServiceA {
|
|
5
|
+
getSignatureHelp(analyzer: Analyzer, sourceFile: SourceFileA, offset: number): SignatureHelp | undefined;
|
|
6
|
+
}
|
package/build/types/services/{signature-help → a/signature-help}/SignatureWithParameters.d.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AccessedFunction } from '
|
|
2
|
-
import { Analyzer } from '
|
|
3
|
-
import { Name } from '
|
|
4
|
-
import { ParameterEntity } from '
|
|
5
|
-
import * as tree from '
|
|
6
|
-
import * as types from '
|
|
1
|
+
import { AccessedFunction } from '../../../analysis/AccessedFunction.js';
|
|
2
|
+
import { Analyzer } from '../../../analysis/a/Analyzer.js';
|
|
3
|
+
import { Name } from '../../../common/index.js';
|
|
4
|
+
import { ParameterEntity } from '../../../entities/index.js';
|
|
5
|
+
import * as tree from '../../../tree/a/index.js';
|
|
6
|
+
import * as types from '../../../types/index.js';
|
|
7
7
|
export declare class ArgumentFactory {
|
|
8
8
|
static createArgumentsOfCallExpression(node: tree.CallExpression): Argument[];
|
|
9
9
|
static createArgumentsOfAutotypeCallExpression(node: tree.AutotypeCallExpression): Argument[];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Analyzer } from '
|
|
2
|
-
import {
|
|
3
|
-
import { SignatureHelp } from '
|
|
1
|
+
import { Analyzer } from '../../../analysis/a/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../../project/index.js';
|
|
3
|
+
import { SignatureHelp } from '../../common/signature-help/Types.js';
|
|
4
4
|
export declare class TypeParameterSignatureHelpProvider {
|
|
5
5
|
private readonly signatureContext_;
|
|
6
6
|
private readonly analyzer;
|
|
7
7
|
private readonly sourceFile;
|
|
8
8
|
private readonly offset;
|
|
9
9
|
private get signatureContext();
|
|
10
|
-
constructor(analyzer: Analyzer, sourceFile:
|
|
10
|
+
constructor(analyzer: Analyzer, sourceFile: SourceFileA, offset: number);
|
|
11
11
|
provideSignatureHelp(): SignatureHelp | undefined;
|
|
12
12
|
private getNodeWithTypeArgumentsInfoAtOffset;
|
|
13
13
|
private getArgumentIndex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ls from 'vscode-languageserver';
|
|
2
|
-
import { Range, Uri } from '
|
|
3
|
-
import { SourceFile } from '
|
|
4
|
-
import
|
|
2
|
+
import { Range, Uri } from '../../common/index.js';
|
|
3
|
+
import { SourceFile } from '../../project/index.js';
|
|
4
|
+
import { NodePath } from '../../tree/index.js';
|
|
5
5
|
export type RangeLocation = {
|
|
6
6
|
uri: Uri;
|
|
7
7
|
range: Range;
|
|
@@ -33,6 +33,6 @@ export declare class SourceFileEdit {
|
|
|
33
33
|
}
|
|
34
34
|
export declare class NodeLocation {
|
|
35
35
|
readonly sourceFile: SourceFile;
|
|
36
|
-
readonly path:
|
|
37
|
-
constructor(sourceFile: SourceFile, path:
|
|
36
|
+
readonly path: NodePath;
|
|
37
|
+
constructor(sourceFile: SourceFile, path: NodePath);
|
|
38
38
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Analyzer } from '
|
|
2
|
-
import { Entity } from '
|
|
1
|
+
import { Analyzer } from '../../analysis/Analyzer.js';
|
|
2
|
+
import { Entity } from '../../entities/index.js';
|
|
3
3
|
import { SourceLocation } from './Types.js';
|
|
4
4
|
export declare function getEntitySourceLocations(analyzer: Analyzer, entity: Entity): SourceLocation[] | undefined;
|
|
5
5
|
export declare function debounce(timeMs: number, action: () => void): () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Compilation } from '../../project/index.js';
|
|
2
|
+
import { SourceFileItem } from './source-file-items/Types.js';
|
|
3
|
+
export declare class WorkspaceItemsService {
|
|
4
|
+
private readonly sourceFileItemsServiceA;
|
|
5
|
+
getItems(compilations: readonly Compilation[]): SourceFileItem[];
|
|
6
|
+
}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DiagnosticCode } from '../diagnostic/DiagnosticCode.js';
|
|
3
|
-
import { SourceFile } from '../project/SourceFile.js';
|
|
4
|
-
import { SourceFileEdit } from './Types.js';
|
|
5
|
-
export declare class CodeActionsService {
|
|
6
|
-
private readonly translationsGeneratorService;
|
|
7
|
-
getCodeActions(analyzer: Analyzer, sourceFile: SourceFile, offset: number, diagnosticCodes: readonly DiagnosticCode[] | undefined): CodeAction[] | undefined;
|
|
8
|
-
resolveEdits(analyzer: Analyzer, sourceFile: SourceFile, offset: number, name: string, data: any): SourceFileEdit[] | undefined;
|
|
9
|
-
}
|
|
1
|
+
import { SourceFileEdit } from '../../common/Types.js';
|
|
10
2
|
export declare class CodeAction {
|
|
11
3
|
readonly title: string;
|
|
12
4
|
readonly name: string;
|
|
@@ -20,3 +12,10 @@ export declare class CodeAction {
|
|
|
20
12
|
export declare enum CodeActionKind {
|
|
21
13
|
QuickFix = 0
|
|
22
14
|
}
|
|
15
|
+
export declare enum CodeActionName {
|
|
16
|
+
GenerateMissingTranslations = "GenerateMissingTranslations"
|
|
17
|
+
}
|
|
18
|
+
export interface GenerateMissingTranslationsCodeActionData {
|
|
19
|
+
onlyTypeMembers: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function isGenerateMissingTranslationsCodeActionData(value: unknown): value is GenerateMissingTranslationsCodeActionData;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Range } from '../../../common/index.js';
|
|
2
|
+
import { SourceFile } from '../../../project/SourceFile.js';
|
|
3
|
+
export declare class CompletionItem {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly kind: CompletionItemKind;
|
|
6
|
+
readonly details: string | undefined;
|
|
7
|
+
readonly insertText: string | undefined;
|
|
8
|
+
readonly editRange: Range | undefined;
|
|
9
|
+
readonly sortText: string | undefined;
|
|
10
|
+
readonly cacheId: number;
|
|
11
|
+
readonly indexInCache: number;
|
|
12
|
+
constructor(label: string, kind: CompletionItemKind, details: string | undefined, insertText: string | undefined, editRange: Range | undefined, sortText: string | undefined, cacheId: number, indexInCache: number);
|
|
13
|
+
}
|
|
14
|
+
export declare const enum CompletionItemKind {
|
|
15
|
+
PackageNameSegment = 0,
|
|
16
|
+
PackageAlias = 1,
|
|
17
|
+
Field = 2,
|
|
18
|
+
Method = 3,
|
|
19
|
+
Operator = 4,
|
|
20
|
+
Indexer = 5,
|
|
21
|
+
Constructor = 6,
|
|
22
|
+
PackageVariable = 7,
|
|
23
|
+
PackageFunction = 8,
|
|
24
|
+
LocalVariable = 9,
|
|
25
|
+
Parameter = 10,
|
|
26
|
+
NestedFunction = 11,
|
|
27
|
+
VariantValue = 12,
|
|
28
|
+
Class = 13,
|
|
29
|
+
Structure = 14,
|
|
30
|
+
Aspect = 15,
|
|
31
|
+
Variant = 16,
|
|
32
|
+
TypeParameter = 17,
|
|
33
|
+
AliasType = 18,
|
|
34
|
+
ReducedType = 19,
|
|
35
|
+
InvalidType = 20,
|
|
36
|
+
Keyword = 21,
|
|
37
|
+
TargetSignatureParameter = 22,
|
|
38
|
+
OperatorName = 23
|
|
39
|
+
}
|
|
40
|
+
export type ResolutionResult = ResolutionResult_item | ResolutionResult_notInCache;
|
|
41
|
+
export declare class ResolutionResult_item {
|
|
42
|
+
readonly value: CompletionItem;
|
|
43
|
+
readonly sourceFile: SourceFile;
|
|
44
|
+
readonly kind = "item";
|
|
45
|
+
constructor(value: CompletionItem, sourceFile: SourceFile);
|
|
46
|
+
}
|
|
47
|
+
export declare class ResolutionResult_notInCache {
|
|
48
|
+
readonly kind = "not-in-cache";
|
|
49
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { SourceGenerationService } from '../source-generation/SourceGenerationService.js';
|
|
6
|
+
import { DefinitionsAndReferenceInfo } from './Types.js';
|
|
7
|
+
export declare abstract class DefinitionService<TSourceFile extends SourceFile> {
|
|
8
|
+
private readonly sourceGenerationService;
|
|
9
|
+
constructor(sourceGenerationService: SourceGenerationService | undefined);
|
|
10
|
+
getDefinition(analyzer: Analyzer, sourceFile: TSourceFile, offset: number, taskController: TaskController): Promise<DefinitionsAndReferenceInfo | undefined>;
|
|
11
|
+
getTypeDefinition(analyzer: Analyzer, sourceFile: TSourceFile, offset: number, taskController: TaskController): Promise<DefinitionsAndReferenceInfo | undefined>;
|
|
12
|
+
protected abstract getSemanticInfoAndRangeAtOffset(analyzer: Analyzer, sourceFile: TSourceFile, offset: number): {
|
|
13
|
+
semanticInfo: NodeSemanticInfo;
|
|
14
|
+
range: Range;
|
|
15
|
+
} | undefined;
|
|
16
|
+
private getDefinitionOfReference;
|
|
17
|
+
private getReferenceTargetSourceLocation;
|
|
18
|
+
private getReferenceTargetEntity;
|
|
19
|
+
private getSourceLocationsOfVariableEntity;
|
|
20
|
+
private getSourceLocationsOfSpecialVariable;
|
|
21
|
+
private getTypesOfReference;
|
|
22
|
+
private getEntitiesThatMakeUpTheType;
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Range } from '../../../common/index.js';
|
|
2
|
+
import { SourceLocation } from '../Types.js';
|
|
3
|
+
export declare class DefinitionsAndReferenceInfo {
|
|
4
|
+
readonly definitionLocations: readonly SourceLocation[];
|
|
5
|
+
readonly referenceRange: Range;
|
|
6
|
+
constructor(definitionLocations: readonly SourceLocation[], referenceRange: Range);
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { PackageNameTreeNode } from '../../../analysis/ImportedPackageNameTree.js';
|
|
3
|
+
import { Name, Option } from '../../../common/index.js';
|
|
4
|
+
import * as e from '../../../entities/index.js';
|
|
5
|
+
import { SourceFile } from '../../../project/SourceFile.js';
|
|
6
|
+
import * as types from '../../../types/index.js';
|
|
7
|
+
import { DisplayService } from './DisplayService.js';
|
|
8
|
+
import * as t from './Types.js';
|
|
9
|
+
export declare abstract class BaseDisplayService {
|
|
10
|
+
protected readonly analyzer: Analyzer | undefined;
|
|
11
|
+
protected readonly common: DisplayService;
|
|
12
|
+
private packageNameShorteningMap;
|
|
13
|
+
protected abstract contextualSourceFile: SourceFile | undefined;
|
|
14
|
+
constructor(analyzer: Analyzer | undefined, common: DisplayService);
|
|
15
|
+
abstract displayVariableDeclaration(variable: t.VariableDeclaration): string;
|
|
16
|
+
abstract displayType(type: types.Type): string;
|
|
17
|
+
abstract getFunctionTypeBodyDisplayParts(type: types.FunctionType): t.FunctionTypeBodyDisplayParts;
|
|
18
|
+
abstract getNamedTypeDisplayParts(type: t.NamedType): t.NamedTypeDisplayParts;
|
|
19
|
+
abstract displayPackageAliasEntity(entity: e.PackageAliasEntity): string;
|
|
20
|
+
abstract displayPackage(package_: e.PackageEntity): string;
|
|
21
|
+
abstract displayPackageNameTreeNode(node: PackageNameTreeNode): string;
|
|
22
|
+
abstract displayParameterDeclaration(parameter: t.ParameterDeclaration, options: t.TypeDisplayOptions | undefined): string;
|
|
23
|
+
abstract displayFunctionDeclaration(func: t.FunctionDeclaration): string;
|
|
24
|
+
abstract getFunctionDeclarationDisplayParts(func: t.FunctionDeclaration): t.FunctionDeclarationDisplayParts;
|
|
25
|
+
abstract displayAnonymousFunctionDeclaration(func: t.AnonymousFunctionDeclaration): string;
|
|
26
|
+
abstract displayOperatorKind(kind: e.OperatorKind): string;
|
|
27
|
+
abstract displayConstructorDeclaration(constructor: t.ConstructorDeclaration): string;
|
|
28
|
+
abstract getConstructorDeclarationDisplayParts(constructor: t.ConstructorDeclaration): t.ConstructorDeclarationDisplayParts;
|
|
29
|
+
abstract displayDestructorDeclaration(destructor: t.DestructorDeclaration): string;
|
|
30
|
+
abstract displayIndexerDeclaration(indexer: t.IndexerDeclaration): string;
|
|
31
|
+
abstract getIndexerDeclarationDisplayParts(indexer: t.IndexerDeclaration): t.IndexerDeclarationDisplayParts;
|
|
32
|
+
abstract displayDereferenceOperatorDeclaration(dereferenceOperator: t.DereferenceOperatorDeclaration): string;
|
|
33
|
+
abstract displayTypeDeclaration(type: t.TypeDeclaration): string;
|
|
34
|
+
abstract displayTypeDeclarationEntity(entity: e.TypeEntity): string;
|
|
35
|
+
abstract displayTypeParameterValue(value: t.TypeParameterValue): string;
|
|
36
|
+
abstract displayGetterEntity(entity: e.GetterEntity): string;
|
|
37
|
+
abstract displaySetterEntity(entity: e.SetterEntity): string;
|
|
38
|
+
abstract displayTypeExtensionEntity(entity: e.TypeExtensionEntity): string;
|
|
39
|
+
abstract displayLocalizableTextEntity(entity: e.TextTranslationEntity): string;
|
|
40
|
+
protected getPackageNameShorteningMap(): ReadonlyMap<e.PackageEntity, Option<Name>> | undefined;
|
|
41
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Analyzer } from '../../../analysis/Analyzer.js';
|
|
2
|
+
import { PackageNameTreeNode } from '../../../analysis/ImportedPackageNameTree.js';
|
|
3
|
+
import { HelperPhraseKind, Name, PackageDialect, PackageLocale } from '../../../common/index.js';
|
|
4
|
+
import { Entity, NamedEntity } from '../../../entities/Entity.js';
|
|
5
|
+
import { GetterEntity, PackageAliasEntity, PackageEntity, SetterEntity, TextTranslationEntity, TypeExtensionEntity } from '../../../entities/interfaces/index.js';
|
|
6
|
+
import { OperatorKind } from '../../../entities/OperatorKind.js';
|
|
7
|
+
import { TypeEntity } from '../../../entities/TypeEntity.js';
|
|
8
|
+
import { SourceFile } from '../../../project/index.js';
|
|
9
|
+
import * as types from '../../../types/index.js';
|
|
10
|
+
import { DisplayServiceA } from '../../a/DisplayService.js';
|
|
11
|
+
import * as t from './Types.js';
|
|
12
|
+
export declare class DisplayService {
|
|
13
|
+
private readonly analyzer;
|
|
14
|
+
private readonly locale;
|
|
15
|
+
private readonly dialect;
|
|
16
|
+
private readonly contextualSourceFile?;
|
|
17
|
+
private a_;
|
|
18
|
+
get a(): DisplayServiceA;
|
|
19
|
+
constructor(analyzer: Analyzer | undefined, locale: PackageLocale, dialect: PackageDialect, contextualSourceFile?: SourceFile | undefined);
|
|
20
|
+
displayVariableDeclaration(variable: t.VariableDeclaration): string;
|
|
21
|
+
displayType(type: types.Type): string;
|
|
22
|
+
getFunctionTypeBodyDisplayParts(type: types.FunctionType): t.FunctionTypeBodyDisplayParts;
|
|
23
|
+
getNamedTypeDisplayParts(type: t.NamedType): t.NamedTypeDisplayParts;
|
|
24
|
+
displayPackageAliasEntity(entity: PackageAliasEntity): string;
|
|
25
|
+
displayPackage(package_: PackageEntity): string;
|
|
26
|
+
displayPackageNameTreeNode(node: PackageNameTreeNode): string;
|
|
27
|
+
displayParameterDeclaration(parameter: t.ParameterDeclaration, options?: t.TypeDisplayOptions): string;
|
|
28
|
+
displayFunctionDeclaration(func: t.FunctionDeclaration): string;
|
|
29
|
+
getFunctionDeclarationDisplayParts(func: t.FunctionDeclaration): t.FunctionDeclarationDisplayParts;
|
|
30
|
+
displayAnonymousFunctionDeclaration(func: t.AnonymousFunctionDeclaration): string;
|
|
31
|
+
displayOperatorKind(kind: OperatorKind): string;
|
|
32
|
+
displayConstructorDeclaration(constructor: t.ConstructorDeclaration): string;
|
|
33
|
+
getConstructorDeclarationDisplayParts(constructor: t.ConstructorDeclaration): t.ConstructorDeclarationDisplayParts;
|
|
34
|
+
displayDestructorDeclaration(destructor: t.DestructorDeclaration): string;
|
|
35
|
+
displayIndexerDeclaration(indexer: t.IndexerDeclaration): string;
|
|
36
|
+
getIndexerDeclarationDisplayParts(indexer: t.IndexerDeclaration): t.IndexerDeclarationDisplayParts;
|
|
37
|
+
displayDereferenceOperatorDeclaration(dereferenceOperator: t.DereferenceOperatorDeclaration): string;
|
|
38
|
+
displayTypeDeclaration(type: t.TypeDeclaration): string;
|
|
39
|
+
displayTypeDeclarationEntity(entity: TypeEntity): string;
|
|
40
|
+
displayTypeParameterValue(value: t.TypeParameterValue): string;
|
|
41
|
+
displayGetterEntity(entity: GetterEntity): string;
|
|
42
|
+
displaySetterEntity(entity: SetterEntity): string;
|
|
43
|
+
displayTypeExtensionEntity(entity: TypeExtensionEntity): string;
|
|
44
|
+
displayLocalizableTextEntity(entity: TextTranslationEntity): string;
|
|
45
|
+
displayEntity(entity: Entity): string;
|
|
46
|
+
displayTypeEntity(entity: TypeEntity): string;
|
|
47
|
+
displayTypeMember(member: types.TypeMember): string;
|
|
48
|
+
displayHelperPhrase(kind: HelperPhraseKind): string;
|
|
49
|
+
displayEntityName(entity: NamedEntity): string;
|
|
50
|
+
displayName(name: Name): string;
|
|
51
|
+
private getDialectSpecificService;
|
|
52
|
+
}
|