@artel/artc 0.6.26018 → 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 +6985 -9180
- package/build/{chunk-4LBH5LW4.js → chunk-27AIX6Z7.js} +3 -5
- package/build/{chunk-NQCSWP3L.js → chunk-LYYIQT6J.js} +62212 -59409
- package/build/{chunk-WVQAJC2B.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 -583
- 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} +6 -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 -4
- 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/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/SourceFile.d.ts +34 -10
- package/build/types/project/SourcePackage.d.ts +68 -19
- 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 +3 -2
- 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,34 +1,21 @@
|
|
|
1
|
-
import { AnalyzedTranslationPackage } from '../../analysis/AnalyzedTranslationPackage.js';
|
|
2
|
-
import { Tag } from '../../analysis/Tag.js';
|
|
3
|
-
import { Translation } from '../../analysis/Translation.js';
|
|
4
1
|
import { Name, PackageDialect, PackageLocale } from '../../common/index.js';
|
|
5
|
-
import * as tree from '../../tree/index.js';
|
|
6
2
|
import * as types from '../../types/Type.js';
|
|
7
3
|
import { BaseObjectType } from '../BaseObjectType.js';
|
|
8
|
-
import { EntityHidingLevel } from '../
|
|
9
|
-
|
|
10
|
-
import { EntityKind } from '../index.js';
|
|
11
|
-
import { PackageEntity } from '../interfaces/PackageEntity.js';
|
|
12
|
-
import { TypeParameterEntity } from '../interfaces/TypeParameterEntity.js';
|
|
13
|
-
import type { PackageVariantTypeEntity } from '../interfaces/VariantTypeEntity.js';
|
|
14
|
-
import { VariantTypeEntityDefinition } from '../interfaces/VariantTypeEntity.js';
|
|
15
|
-
import { SubstitutionApplicationMode } from '../SubstitutionApplicationMode.js';
|
|
16
|
-
import { TypeEntityKind } from '../TypeEntity.js';
|
|
17
|
-
import { TypeEntityMembers } from '../TypeEntityMembers.js';
|
|
18
|
-
export declare class TranslatedPackageVariantTypeEntity implements PackageVariantTypeEntity {
|
|
4
|
+
import { EntityHidingLevel, EntityKind, EntityNaming, PackageEntity, PackageVariantTypeEntity, SubstitutionApplicationMode, Tag, Translation, TypeEntityKind, TypeEntityMembers, TypeParameterEntity, VariantTypeEntityDefinition } from '../index.js';
|
|
5
|
+
export declare abstract class TranslatedPackageVariantTypeEntity implements PackageVariantTypeEntity {
|
|
19
6
|
readonly kind = EntityKind.Type;
|
|
20
7
|
readonly typeEntityKind = TypeEntityKind.Variant;
|
|
21
8
|
readonly subkind = "package";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
private readonly
|
|
26
|
-
private readonly node;
|
|
27
|
-
private readonly typeParameters;
|
|
9
|
+
protected readonly originalEntity: PackageVariantTypeEntity;
|
|
10
|
+
protected readonly translation: Translation;
|
|
11
|
+
protected readonly name: Name;
|
|
12
|
+
private readonly containingPackage;
|
|
28
13
|
private readonly underlyingType;
|
|
29
|
-
private readonly members;
|
|
30
14
|
private readonly baseObjectType;
|
|
31
|
-
|
|
15
|
+
private get localizationContext();
|
|
16
|
+
constructor(originalEntity: PackageVariantTypeEntity, translation: Translation, name: Name);
|
|
17
|
+
abstract getTypeParameters(): readonly TypeParameterEntity[];
|
|
18
|
+
abstract getMembers(): TypeEntityMembers;
|
|
32
19
|
getName(): Name;
|
|
33
20
|
getContainingPackage(): PackageEntity;
|
|
34
21
|
getTranslation(): Translation | undefined;
|
|
@@ -36,9 +23,7 @@ export declare class TranslatedPackageVariantTypeEntity implements PackageVarian
|
|
|
36
23
|
getDialect(): PackageDialect;
|
|
37
24
|
getOriginalEntity(): PackageVariantTypeEntity;
|
|
38
25
|
getNaming(): EntityNaming;
|
|
39
|
-
getTypeParameters(): readonly TypeParameterEntity[];
|
|
40
26
|
getUnderlyingType(): types.Type;
|
|
41
|
-
getMembers(): TypeEntityMembers;
|
|
42
27
|
getDefinition(): VariantTypeEntityDefinition;
|
|
43
28
|
getArity(): number;
|
|
44
29
|
isHidden(): EntityHidingLevel | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { Name } from '../../../../common/index.js';
|
|
3
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
4
|
+
import { AliasTypeEntity, Translation, TypeEntityMembers, TypeParameterEntity } from '../../../index.js';
|
|
5
|
+
import { TranslatedAliasTypeEntity } from '../../index.js';
|
|
6
|
+
export declare class SourceTranslatedAliasTypeEntity extends TranslatedAliasTypeEntity {
|
|
7
|
+
private readonly translationPackage;
|
|
8
|
+
private readonly node;
|
|
9
|
+
private readonly typeParameters;
|
|
10
|
+
private readonly members;
|
|
11
|
+
constructor(originalEntity: AliasTypeEntity, translation: Translation, name: Name, translationPackage: ResolvedTranslationPackage, node: tree.TypeTranslationDeclaration | tree.FunctionTypeTranslationDeclaration | undefined);
|
|
12
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
13
|
+
getMembers(): TypeEntityMembers;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { Analyzer } from '../../../../analysis/Analyzer.js';
|
|
3
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
4
|
+
import { ConstructorEntity, ParameterEntity, Translation, TypeWithMembersOrExtensionEntity } from '../../../index.js';
|
|
5
|
+
import { TranslatedConstructorEntity } from '../../TranslatedConstructorEntity.js';
|
|
6
|
+
export declare class SourceTranslatedConstructorEntity extends TranslatedConstructorEntity {
|
|
7
|
+
private readonly translationPackage;
|
|
8
|
+
private readonly node;
|
|
9
|
+
private readonly parameters;
|
|
10
|
+
constructor(analyzer: Analyzer, originalEntity: ConstructorEntity, translation: Translation, translationPackage: ResolvedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity, node: tree.ConstructorTranslation | undefined);
|
|
11
|
+
getParameters(): readonly ParameterEntity[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { DestructorEntity, ParameterEntity, Translation, TypeWithMembersOrExtensionEntity } from '../../../index.js';
|
|
3
|
+
import { TranslatedDestructorEntity } from '../../TranslatedDestructorEntity.js';
|
|
4
|
+
export declare class SourceTranslatedDestructorEntity extends TranslatedDestructorEntity {
|
|
5
|
+
private readonly translationPackage;
|
|
6
|
+
private readonly parameters;
|
|
7
|
+
constructor(originalEntity: DestructorEntity, translation: Translation, translationPackage: ResolvedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity);
|
|
8
|
+
getParameters(): readonly ParameterEntity[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { Analyzer } from '../../../../analysis/Analyzer.js';
|
|
3
|
+
import { Name } from '../../../../common/index.js';
|
|
4
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
5
|
+
import { MethodEntity, PackageFunctionEntity, ParameterEntity, Translation, TypeParameterEntity, TypeWithMembersOrExtensionEntity } from '../../../index.js';
|
|
6
|
+
import { TranslatedMethodEntity, TranslatedPackageFunctionEntity } from '../../index.js';
|
|
7
|
+
export declare class SourceTranslatedPackageFunctionEntity extends TranslatedPackageFunctionEntity {
|
|
8
|
+
private readonly translationPackage;
|
|
9
|
+
private readonly node;
|
|
10
|
+
private readonly typeParameters;
|
|
11
|
+
private readonly parameters;
|
|
12
|
+
constructor(originalEntity: PackageFunctionEntity, translation: Translation, name: Name, translationPackage: ResolvedTranslationPackage, node: tree.PackageFunctionTranslationDeclaration | undefined);
|
|
13
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
14
|
+
getParameters(): readonly ParameterEntity[];
|
|
15
|
+
}
|
|
16
|
+
export declare class SourceTranslatedMethodEntity extends TranslatedMethodEntity {
|
|
17
|
+
private readonly node;
|
|
18
|
+
private readonly translationPackage;
|
|
19
|
+
private readonly typeParameters;
|
|
20
|
+
private readonly parameters;
|
|
21
|
+
constructor(analyzer: Analyzer, originalEntity: MethodEntity, translation: Translation, name: Name, translationPackage: ResolvedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity, node: tree.MethodTranslation | undefined);
|
|
22
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
23
|
+
getParameters(): readonly ParameterEntity[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
3
|
+
import { AnonymousFunctionTypeEntity, ParameterEntity, Translation, TypeEntityMembers } from '../../../index.js';
|
|
4
|
+
import { TranslatedAnonymousFunctionTypeEntity } from '../../TranslatedFunctionTypeEntity.js';
|
|
5
|
+
export declare class SourceTranslatedAnonymousFunctionTypeEntity extends TranslatedAnonymousFunctionTypeEntity {
|
|
6
|
+
private readonly translationPackage;
|
|
7
|
+
private readonly node;
|
|
8
|
+
private readonly parameters;
|
|
9
|
+
private readonly members;
|
|
10
|
+
constructor(originalEntity: AnonymousFunctionTypeEntity, translation: Translation, translationPackage: ResolvedTranslationPackage, node: tree.FunctionTypeTranslationDeclaration | undefined);
|
|
11
|
+
getParameters(): readonly ParameterEntity[];
|
|
12
|
+
getMembers(): TypeEntityMembers;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
3
|
+
import { IndexerEntity, ParameterEntity, Translation, TypeWithMembersOrExtensionEntity } from '../../../index.js';
|
|
4
|
+
import { TranslatedIndexerEntity } from '../../TranslatedIndexerEntity.js';
|
|
5
|
+
export declare class SourceTranslatedIndexerEntity extends TranslatedIndexerEntity {
|
|
6
|
+
readonly translationPackage: ResolvedTranslationPackage;
|
|
7
|
+
private readonly node;
|
|
8
|
+
private readonly parameters;
|
|
9
|
+
constructor(originalEntity: IndexerEntity, translation: Translation, translationPackage: ResolvedTranslationPackage, translatedContainingEntity: TypeWithMembersOrExtensionEntity, node: tree.IndexerTranslation | undefined);
|
|
10
|
+
getParameters(): readonly ParameterEntity[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { PackageName } from '../../../../project/SourcePackage.js';
|
|
3
|
+
import { NameTranslationPackageEntity, PackageEntityMembers, ProgramPackageEntity, TextTranslationPackageEntity, Translation } from '../../../index.js';
|
|
4
|
+
import { TranslatedNameTranslationPackageEntity, TranslatedProgramPackageEntity, TranslatedTextTranslationPackageEntity } from '../../index.js';
|
|
5
|
+
export declare class SourceTranslatedProgramPackageEntity extends TranslatedProgramPackageEntity {
|
|
6
|
+
private readonly translationPackage;
|
|
7
|
+
constructor(originalEntity: ProgramPackageEntity, translation: Translation, name: PackageName, translationPackage: ResolvedTranslationPackage);
|
|
8
|
+
getMembers(): PackageEntityMembers;
|
|
9
|
+
}
|
|
10
|
+
export declare class SourceTranslatedNameTranslationPackageEntity extends TranslatedNameTranslationPackageEntity {
|
|
11
|
+
private readonly translationPackage;
|
|
12
|
+
constructor(originalEntity: NameTranslationPackageEntity, translation: Translation, name: PackageName, translationPackage: ResolvedTranslationPackage);
|
|
13
|
+
getMembers(): PackageEntityMembers;
|
|
14
|
+
}
|
|
15
|
+
export declare class SourceTranslatedTextTranslationPackageEntity extends TranslatedTextTranslationPackageEntity {
|
|
16
|
+
private readonly translationPackage;
|
|
17
|
+
constructor(originalEntity: TextTranslationPackageEntity, translation: Translation, name: PackageName, translationPackage: ResolvedTranslationPackage);
|
|
18
|
+
getMembers(): PackageEntityMembers;
|
|
19
|
+
}
|
package/build/types/entities/translated/source/a/SourceTranslatedPackageStructuredTypeEntity.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { Name } from '../../../../common/index.js';
|
|
3
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
4
|
+
import { AnonymousStructuredTypeEntity, PackageStructuredTypeEntity, Translation, TypeEntityMembers, TypeParameterEntity } from '../../../index.js';
|
|
5
|
+
import { TranslatedAnonymousStructuredTypeEntity, TranslatedPackageStructuredTypeEntity } from '../../TranslatedStructuredTypeEntity.js';
|
|
6
|
+
export declare class SourceTranslatedPackageStructuredTypeEntity extends TranslatedPackageStructuredTypeEntity {
|
|
7
|
+
private readonly translationPackage;
|
|
8
|
+
private readonly node;
|
|
9
|
+
private readonly typeParameters;
|
|
10
|
+
private readonly members;
|
|
11
|
+
constructor(originalEntity: PackageStructuredTypeEntity, translation: Translation, name: Name, translationPackage: ResolvedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
12
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
13
|
+
getMembers(): TypeEntityMembers;
|
|
14
|
+
}
|
|
15
|
+
export declare class SourceTranslatedAnonymousStructuredTypeEntity extends TranslatedAnonymousStructuredTypeEntity {
|
|
16
|
+
private readonly translationPackage;
|
|
17
|
+
private readonly members;
|
|
18
|
+
constructor(originalEntity: AnonymousStructuredTypeEntity, translation: Translation, translationPackage: ResolvedTranslationPackage);
|
|
19
|
+
getMembers(): TypeEntityMembers;
|
|
20
|
+
}
|
package/build/types/entities/translated/source/a/SourceTranslatedPackageVariantTypeEntity.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { Name } from '../../../../common/index.js';
|
|
3
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
4
|
+
import { PackageVariantTypeEntity, Translation, TypeEntityMembers, TypeParameterEntity } from '../../../index.js';
|
|
5
|
+
import { TranslatedPackageVariantTypeEntity } from '../../TranslatedVariantTypeEntity.js';
|
|
6
|
+
export declare class SourceTranslatedPackageVariantTypeEntity extends TranslatedPackageVariantTypeEntity {
|
|
7
|
+
private readonly translationPackage;
|
|
8
|
+
private readonly node;
|
|
9
|
+
private readonly typeParameters;
|
|
10
|
+
private readonly members;
|
|
11
|
+
constructor(originalEntity: PackageVariantTypeEntity, translation: Translation, name: Name, translationPackage: ResolvedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
12
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
13
|
+
getMembers(): TypeEntityMembers;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { Name } from '../../../../common/index.js';
|
|
3
|
+
import * as tree from '../../../../tree/a/index.js';
|
|
4
|
+
import { ReducedTypeEntity, Translation, TypeEntityMembers, TypeParameterEntity } from '../../../index.js';
|
|
5
|
+
import { TranslatedReducedTypeEntity } from '../../TranslatedReducedTypeEntity.js';
|
|
6
|
+
export declare class SourceTranslatedReducedTypeEntity extends TranslatedReducedTypeEntity {
|
|
7
|
+
private readonly translationPackage;
|
|
8
|
+
private readonly node;
|
|
9
|
+
private readonly typeParameters;
|
|
10
|
+
private readonly members;
|
|
11
|
+
constructor(originalEntity: ReducedTypeEntity, translation: Translation, name: Name, translationPackage: ResolvedTranslationPackage, node: tree.TypeTranslationDeclaration | undefined);
|
|
12
|
+
getTypeParameters(): readonly TypeParameterEntity[];
|
|
13
|
+
getMembers(): TypeEntityMembers;
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResolvedTranslationPackage } from '../../../../analysis/a/ResolvedTranslationPackage.js';
|
|
2
|
+
import { Translation, TypeEntityMembers, TypeExtensionEntity } from '../../../index.js';
|
|
3
|
+
import { TranslatedTypeExtensionEntity } from '../../index.js';
|
|
4
|
+
export declare class SourceTranslatedTypeExtensionEntity extends TranslatedTypeExtensionEntity {
|
|
5
|
+
private readonly translationPackage;
|
|
6
|
+
private readonly members;
|
|
7
|
+
constructor(originalEntity: TypeExtensionEntity, translation: Translation, translationPackage: ResolvedTranslationPackage);
|
|
8
|
+
getMembers(): TypeEntityMembers;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './SourceTranslatedAliasTypeEntity.js';
|
|
2
|
+
export * from './SourceTranslatedConstructorEntity.js';
|
|
3
|
+
export * from './SourceTranslatedDestructorEntity.js';
|
|
4
|
+
export * from './SourceTranslatedFunctionEntity.js';
|
|
5
|
+
export * from './SourceTranslatedFunctionTypeEntity.js';
|
|
6
|
+
export * from './SourceTranslatedIndexerEntity.js';
|
|
7
|
+
export * from './SourceTranslatedPackageEntity.js';
|
|
8
|
+
export * from './SourceTranslatedPackageStructuredTypeEntity.js';
|
|
9
|
+
export * from './SourceTranslatedPackageVariantTypeEntity.js';
|
|
10
|
+
export * from './SourceTranslatedReducedTypeEntity.js';
|
|
11
|
+
export * from './SourceTranslatedTypeExtensionEntity.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Analyzer } from '../analysis/
|
|
1
|
+
import { Analyzer } from '../analysis/Analyzer.js';
|
|
2
2
|
import { TaskController, Uri } from '../common/index.js';
|
|
3
3
|
import { Diagnostic, DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
4
4
|
import { EmitOptions } from '../emitter/index.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TokenKind as TreeTokenKind } from '
|
|
1
|
+
import { TokenKind as TreeTokenKind } from '../../tree/a/index.js';
|
|
2
2
|
import { TokenKind as ScannerTokenKind } from './TokenKind.js';
|
|
3
3
|
export declare function scannerTokenKindToTreeTokenKind(kind: ScannerTokenKind): TreeTokenKind;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PackageDialect
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { PackageDialect } from '../../common/PackageDialect.js';
|
|
2
|
+
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
3
|
+
import { KeywordFlags } from '../../tree/a/KeywordFlags.js';
|
|
4
|
+
import { KeywordKind } from '../../tree/a/KeywordKind.js';
|
|
4
5
|
export type KeywordDictionary = Map<string, Array<KeywordPart>>;
|
|
5
6
|
export type KeywordKindDictionary = Map<KeywordKind, Array<Keyword>>;
|
|
6
7
|
export declare enum KeywordPartKind {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PackageDialect, PackageLocale } from '
|
|
2
|
-
import * as tree from '
|
|
1
|
+
import { PackageDialect, PackageLocale } from '../../common/index.js';
|
|
2
|
+
import * as tree from '../../tree/a/index.js';
|
|
3
3
|
export declare class Parser {
|
|
4
4
|
private readonly parser;
|
|
5
5
|
constructor(text: string, locale?: PackageLocale, dialect?: PackageDialect);
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export declare enum TokenKind {
|
|
2
|
+
Unknown = 0,
|
|
3
|
+
EndOfFile = 1,
|
|
4
|
+
Whitespace = 2,
|
|
5
|
+
NewLine = 3,
|
|
6
|
+
SingleLineComment = 4,
|
|
7
|
+
MultiLineComment = 5,
|
|
8
|
+
IntegerLiteral = 6,
|
|
9
|
+
RealLiteral = 7,
|
|
10
|
+
MeasureLiteral = 8,
|
|
11
|
+
CharLiteral = 9,
|
|
12
|
+
TextLiteral = 10,
|
|
13
|
+
TextTemplateHead = 11,
|
|
14
|
+
TextTemplatePart = 12,
|
|
15
|
+
TextTemplateTail = 13,
|
|
16
|
+
LocalizableTextLiteral = 14,
|
|
17
|
+
LocalizableTextTemplateHead = 15,
|
|
18
|
+
LocalizableTextTemplateTail = 16,
|
|
19
|
+
Identifier = 17,
|
|
20
|
+
QuotedIdentifier = 18,
|
|
21
|
+
Ampersand = 19,
|
|
22
|
+
AmpersandAmpersand = 20,
|
|
23
|
+
AmpersandEquals = 21,
|
|
24
|
+
Asterisk = 22,
|
|
25
|
+
AsteriskAsterisk = 23,
|
|
26
|
+
AsteriskEquals = 24,
|
|
27
|
+
BackQuote = 25,
|
|
28
|
+
Bar = 26,
|
|
29
|
+
BarBar = 27,
|
|
30
|
+
BarEquals = 28,
|
|
31
|
+
BarBarEquals = 29,
|
|
32
|
+
BarLeftAngle = 30,
|
|
33
|
+
BarLeftAngleEquals = 31,
|
|
34
|
+
BarRightAngle = 32,
|
|
35
|
+
BarRightAngleEquals = 33,
|
|
36
|
+
BarRightAngleRightAngle = 34,
|
|
37
|
+
BarRightAngleRightAngleEquals = 35,
|
|
38
|
+
Caret = 36,
|
|
39
|
+
RightBrace = 37,
|
|
40
|
+
RightParenthesis = 38,
|
|
41
|
+
RightSquareBracket = 39,
|
|
42
|
+
Colon = 40,
|
|
43
|
+
Comma = 41,
|
|
44
|
+
CommercialAt = 42,
|
|
45
|
+
Dot = 43,
|
|
46
|
+
DoublePeriod = 44,
|
|
47
|
+
Ellipsis = 45,
|
|
48
|
+
EqualsEquals = 46,
|
|
49
|
+
Exclamation = 47,
|
|
50
|
+
ExclamationEquals = 48,
|
|
51
|
+
RightAngle = 49,
|
|
52
|
+
RightAngleEquals = 50,
|
|
53
|
+
HashSign = 51,
|
|
54
|
+
LeftAngle = 52,
|
|
55
|
+
LeftAngleEquals = 53,
|
|
56
|
+
LeftAngleMinus = 54,
|
|
57
|
+
Minus = 55,
|
|
58
|
+
MinusMinus = 56,
|
|
59
|
+
MinusEquals = 57,
|
|
60
|
+
MinusRightAngle = 58,
|
|
61
|
+
LeftBrace = 59,
|
|
62
|
+
LeftParenthesis = 60,
|
|
63
|
+
LeftSquareBracket = 61,
|
|
64
|
+
Plus = 62,
|
|
65
|
+
PlusPlus = 63,
|
|
66
|
+
PlusEquals = 64,
|
|
67
|
+
Question = 65,
|
|
68
|
+
QuestionQuestion = 66,
|
|
69
|
+
Semicolon = 67,
|
|
70
|
+
Slash = 68,
|
|
71
|
+
SlashEquals = 69,
|
|
72
|
+
Tilde = 70,
|
|
73
|
+
TildeTilde = 71,
|
|
74
|
+
Underscore = 72,
|
|
75
|
+
Equals = 73,
|
|
76
|
+
Percent = 74,
|
|
77
|
+
PercentEquals = 75,
|
|
78
|
+
PercentPercent = 76,
|
|
79
|
+
BackSlash = 77
|
|
80
|
+
}
|
|
@@ -1,23 +1,47 @@
|
|
|
1
1
|
import { PackageDialect, PackageLocale, Uri } from '../common/index.js';
|
|
2
|
+
import * as treeA from '../tree/a/index.js';
|
|
2
3
|
import * as tree from '../tree/index.js';
|
|
3
|
-
import
|
|
4
|
+
import * as treeM from '../tree/m/index.js';
|
|
5
|
+
import { SourcePackage, SourcePackageA, SourcePackageM } from './SourcePackage.js';
|
|
4
6
|
import { TextFile } from './TextFile.js';
|
|
5
|
-
export declare class
|
|
7
|
+
export declare abstract class BaseSourceFile extends TextFile {
|
|
6
8
|
readonly name: string;
|
|
7
9
|
private package_;
|
|
8
|
-
private readonly node;
|
|
9
10
|
get package(): SourcePackage;
|
|
10
11
|
get locale(): PackageLocale;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
protected constructor(text: string, uri: Uri, version: number);
|
|
13
|
+
abstract getSyntaxNode(): tree.SourceFile;
|
|
14
|
+
abstract parse(): tree.SourceFile;
|
|
15
|
+
abstract getSyntaxNodeIfParsed(): tree.SourceFile | undefined;
|
|
14
16
|
/**
|
|
15
17
|
* Данный метод должен вызываться только пакетом этого исходного файла.
|
|
16
18
|
*/
|
|
17
19
|
setPackage(package_: SourcePackage): void;
|
|
18
|
-
createCopy(): SourceFile;
|
|
19
20
|
getSourceText(): string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
}
|
|
22
|
+
export declare class SourceFileA extends BaseSourceFile {
|
|
23
|
+
readonly dialect = PackageDialect.ArtelA;
|
|
24
|
+
private readonly node;
|
|
25
|
+
get package(): SourcePackageA;
|
|
26
|
+
protected constructor(text: string, uri: Uri, version: number, node: treeA.SourceFile | undefined);
|
|
27
|
+
getSyntaxNode(): treeA.SourceFile;
|
|
28
|
+
parse(): treeA.SourceFile;
|
|
29
|
+
getSyntaxNodeIfParsed(): treeA.SourceFile | undefined;
|
|
30
|
+
static create(text: string, uri: Uri, version: number): SourceFileA;
|
|
31
|
+
createCopy(): SourceFileA;
|
|
32
|
+
}
|
|
33
|
+
export declare class SourceFileM extends BaseSourceFile {
|
|
34
|
+
readonly dialect = PackageDialect.ArtelM;
|
|
35
|
+
private readonly node;
|
|
36
|
+
get package(): SourcePackageM;
|
|
37
|
+
protected constructor(text: string, uri: Uri, version: number, node: treeM.SourceFile | undefined);
|
|
38
|
+
getSyntaxNode(): treeM.SourceFile;
|
|
39
|
+
parse(): treeM.SourceFile;
|
|
40
|
+
getSyntaxNodeIfParsed(): treeM.SourceFile | undefined;
|
|
41
|
+
static create(text: string, uri: Uri, version: number): SourceFileM;
|
|
42
|
+
createCopy(): SourceFileM;
|
|
43
|
+
}
|
|
44
|
+
export type SourceFile = SourceFileA | SourceFileM;
|
|
45
|
+
export declare namespace SourceFile {
|
|
46
|
+
function create(text: string, uri: Uri, version: number, dialect: PackageDialect): SourceFile;
|
|
23
47
|
}
|
|
@@ -1,49 +1,95 @@
|
|
|
1
1
|
import { Name, PackageDialect, PackageLocale, ReadonlyNonEmptyArray, Uri } from '../common/index.js';
|
|
2
2
|
import { Compilation } from './Compilation.js';
|
|
3
|
-
import { SourceFile } from './SourceFile.js';
|
|
3
|
+
import { SourceFile, SourceFileA, SourceFileM } from './SourceFile.js';
|
|
4
4
|
export type SourcePackage = ProgramPackage | TranslationPackage | TextTranslationPackage;
|
|
5
|
+
export type SourcePackageA = ProgramPackageA | TranslationPackageA | TextTranslationPackageA;
|
|
6
|
+
export type SourcePackageM = ProgramPackageM | TranslationPackageM | TextTranslationPackageM;
|
|
5
7
|
export type ProgramOrTextTranslationPackage = ProgramPackage | TextTranslationPackage;
|
|
6
|
-
|
|
8
|
+
export type ProgramOrTextTranslationPackageA = ProgramOrTextTranslationPackage & SourcePackageA;
|
|
9
|
+
export type ProgramOrTextTranslationPackageM = ProgramOrTextTranslationPackage & SourcePackageM;
|
|
10
|
+
declare abstract class BaseSourcePackage {
|
|
7
11
|
readonly uri: Uri;
|
|
8
12
|
readonly name: PackageName;
|
|
9
|
-
readonly sourceFiles: readonly SourceFile[];
|
|
10
13
|
private compilation_;
|
|
14
|
+
abstract readonly sourceFiles: SourceFiles;
|
|
11
15
|
get compilation(): Compilation;
|
|
12
|
-
protected abstract
|
|
13
|
-
abstract
|
|
14
|
-
abstract
|
|
15
|
-
constructor(uri: Uri, name: PackageName
|
|
16
|
+
protected abstract readonly asPackage: SourcePackage;
|
|
17
|
+
abstract readonly locale: PackageLocale;
|
|
18
|
+
abstract readonly dialect: PackageDialect;
|
|
19
|
+
constructor(uri: Uri, name: PackageName);
|
|
16
20
|
/**
|
|
17
21
|
* Данный метод должен вызываться только из конструктора компиляции (Compilation).
|
|
18
22
|
*/
|
|
19
23
|
setCompilation(compilation: Compilation): void;
|
|
20
24
|
}
|
|
21
|
-
export declare class
|
|
25
|
+
export declare abstract class BaseProgramPackage extends BaseSourcePackage {
|
|
22
26
|
readonly kind = "program";
|
|
23
27
|
readonly configuration: ProgramPackageConfiguration;
|
|
24
|
-
protected get asPackage(): SourcePackage;
|
|
25
28
|
get locale(): PackageLocale;
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
constructor(uri: Uri, configuration: ProgramPackageConfiguration);
|
|
30
|
+
}
|
|
31
|
+
export declare class ProgramPackageA extends BaseProgramPackage {
|
|
32
|
+
readonly dialect = PackageDialect.ArtelA;
|
|
33
|
+
readonly sourceFiles: SourceFilesA;
|
|
34
|
+
protected get asPackage(): SourcePackage;
|
|
35
|
+
constructor(uri: Uri, configuration: ProgramPackageConfiguration, sourceFiles: SourceFilesA);
|
|
36
|
+
}
|
|
37
|
+
export declare class ProgramPackageM extends BaseProgramPackage {
|
|
38
|
+
readonly dialect = PackageDialect.ArtelM;
|
|
39
|
+
readonly sourceFiles: SourceFilesM;
|
|
40
|
+
protected get asPackage(): SourcePackage;
|
|
41
|
+
constructor(uri: Uri, configuration: ProgramPackageConfiguration, sourceFiles: SourceFilesM);
|
|
28
42
|
}
|
|
29
|
-
export
|
|
43
|
+
export type ProgramPackage = ProgramPackageA | ProgramPackageM;
|
|
44
|
+
export declare namespace ProgramPackage {
|
|
45
|
+
function create(uri: Uri, configuration: ProgramPackageConfiguration, sourceFiles: readonly SourceFile[]): ProgramPackage;
|
|
46
|
+
}
|
|
47
|
+
export declare abstract class BaseTranslationPackage extends BaseSourcePackage {
|
|
30
48
|
readonly kind = "translation";
|
|
31
49
|
readonly configuration: TranslationPackageConfiguration;
|
|
32
|
-
protected get asPackage(): SourcePackage;
|
|
33
50
|
get locale(): PackageLocale;
|
|
34
|
-
|
|
35
|
-
|
|
51
|
+
constructor(uri: Uri, configuration: TranslationPackageConfiguration);
|
|
52
|
+
}
|
|
53
|
+
export declare class TranslationPackageA extends BaseTranslationPackage {
|
|
54
|
+
readonly dialect = PackageDialect.ArtelA;
|
|
55
|
+
readonly sourceFiles: SourceFilesA;
|
|
56
|
+
protected get asPackage(): SourcePackage;
|
|
57
|
+
constructor(uri: Uri, configuration: TranslationPackageConfiguration, sourceFiles: SourceFilesA);
|
|
36
58
|
}
|
|
37
|
-
export declare class
|
|
59
|
+
export declare class TranslationPackageM extends BaseTranslationPackage {
|
|
60
|
+
readonly dialect = PackageDialect.ArtelM;
|
|
61
|
+
readonly sourceFiles: SourceFilesM;
|
|
62
|
+
protected get asPackage(): SourcePackage;
|
|
63
|
+
constructor(uri: Uri, configuration: TranslationPackageConfiguration, sourceFiles: SourceFilesM);
|
|
64
|
+
}
|
|
65
|
+
export type TranslationPackage = TranslationPackageA | TranslationPackageM;
|
|
66
|
+
export declare namespace TranslationPackage {
|
|
67
|
+
function create(uri: Uri, configuration: TranslationPackageConfiguration, sourceFiles: readonly SourceFile[]): TranslationPackage;
|
|
68
|
+
}
|
|
69
|
+
export declare abstract class BaseTextTranslationPackage extends BaseSourcePackage {
|
|
38
70
|
readonly kind = "text-translation";
|
|
39
71
|
readonly configuration: TextTranslationPackageConfiguration;
|
|
40
|
-
protected get asPackage(): SourcePackage;
|
|
41
72
|
get locale(): PackageLocale;
|
|
42
|
-
get dialect(): PackageDialect;
|
|
43
73
|
get translationLocale(): string;
|
|
44
74
|
get targetPackageName(): PackageName;
|
|
45
75
|
get isPrimary(): boolean;
|
|
46
|
-
constructor(uri: Uri, configuration: TextTranslationPackageConfiguration
|
|
76
|
+
constructor(uri: Uri, configuration: TextTranslationPackageConfiguration);
|
|
77
|
+
}
|
|
78
|
+
export declare class TextTranslationPackageA extends BaseTextTranslationPackage {
|
|
79
|
+
readonly dialect = PackageDialect.ArtelA;
|
|
80
|
+
readonly sourceFiles: SourceFilesA;
|
|
81
|
+
protected get asPackage(): SourcePackage;
|
|
82
|
+
constructor(uri: Uri, configuration: TextTranslationPackageConfiguration, sourceFiles: SourceFilesA);
|
|
83
|
+
}
|
|
84
|
+
export declare class TextTranslationPackageM extends BaseTextTranslationPackage {
|
|
85
|
+
readonly dialect = PackageDialect.ArtelM;
|
|
86
|
+
readonly sourceFiles: SourceFilesM;
|
|
87
|
+
protected get asPackage(): SourcePackage;
|
|
88
|
+
constructor(uri: Uri, configuration: TextTranslationPackageConfiguration, sourceFiles: SourceFilesM);
|
|
89
|
+
}
|
|
90
|
+
export type TextTranslationPackage = TextTranslationPackageA | TextTranslationPackageM;
|
|
91
|
+
export declare namespace TextTranslationPackage {
|
|
92
|
+
function create(uri: Uri, configuration: TextTranslationPackageConfiguration, sourceFiles: readonly SourceFile[]): TextTranslationPackage;
|
|
47
93
|
}
|
|
48
94
|
export type PackageConfiguration = ProgramPackageConfiguration | TranslationPackageConfiguration | TextTranslationPackageConfiguration;
|
|
49
95
|
export declare class TranslationPackageConfiguration {
|
|
@@ -93,6 +139,9 @@ export declare class PackageName {
|
|
|
93
139
|
considerEqual(name: PackageName): boolean;
|
|
94
140
|
toString(original?: boolean): string;
|
|
95
141
|
}
|
|
142
|
+
export type SourceFilesA = readonly SourceFileA[];
|
|
143
|
+
export type SourceFilesM = readonly SourceFileM[];
|
|
144
|
+
export type SourceFiles = SourceFilesA | SourceFilesM;
|
|
96
145
|
export type RequiredPackageConfig = RequiredPackageConfig.Npm | RequiredPackageConfig.NuGet;
|
|
97
146
|
export declare namespace RequiredPackageConfig {
|
|
98
147
|
class Npm {
|
|
@@ -18,22 +18,22 @@ export declare class LanguageServer {
|
|
|
18
18
|
private manuallyUpdatedFileSystemTreeProvider;
|
|
19
19
|
private readonly sourceFileItemsService;
|
|
20
20
|
private readonly workspaceItemsService;
|
|
21
|
-
private
|
|
21
|
+
private definitionServiceA;
|
|
22
22
|
private sourceGenerationService;
|
|
23
23
|
private readonly referencesService;
|
|
24
24
|
private readonly documentHighlightService;
|
|
25
|
-
private readonly
|
|
26
|
-
private readonly
|
|
27
|
-
private readonly
|
|
28
|
-
private readonly
|
|
29
|
-
private readonly
|
|
25
|
+
private readonly renameServiceA;
|
|
26
|
+
private readonly hoverServiceA;
|
|
27
|
+
private readonly evaluatableExpressionServiceA;
|
|
28
|
+
private readonly completionServiceA;
|
|
29
|
+
private readonly semanticTokensServiceA;
|
|
30
30
|
private readonly semanticTokenTypeIndexBySemanticTokenKind;
|
|
31
31
|
private readonly protocolSemanticTokenModifierFlagByIndex;
|
|
32
|
-
private readonly
|
|
32
|
+
private readonly signatureHelpServiceA;
|
|
33
33
|
private readonly fileSystemTreeDisplayService;
|
|
34
|
-
private readonly
|
|
35
|
-
private readonly
|
|
36
|
-
private readonly
|
|
34
|
+
private readonly selectionRangeServiceA;
|
|
35
|
+
private readonly scriptEditingServiceA;
|
|
36
|
+
private readonly codeActionsServiceA;
|
|
37
37
|
constructor(config: LanguageServerConfig);
|
|
38
38
|
start(): void;
|
|
39
39
|
dispose(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
2
|
+
import { DiagnosticCode } from '../../diagnostic/DiagnosticCode.js';
|
|
3
|
+
import { SourceFileA } from '../../project/SourceFile.js';
|
|
4
|
+
import { CodeAction } from '../common/code-action/Types.js';
|
|
5
|
+
import { SourceFileEdit } from '../common/Types.js';
|
|
6
|
+
export declare class CodeActionsServiceA {
|
|
7
|
+
private readonly translationsGeneratorService;
|
|
8
|
+
getCodeActions(analyzer: Analyzer, sourceFile: SourceFileA, offset: number, diagnosticCodes: readonly DiagnosticCode[] | undefined): CodeAction[] | undefined;
|
|
9
|
+
resolveEdits(analyzer: Analyzer, sourceFile: SourceFileA, offset: number, name: string, data: any): SourceFileEdit[] | undefined;
|
|
10
|
+
}
|