@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,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,7 +1,7 @@
|
|
|
1
1
|
import { TaskController, Uri } from '../common/index.js';
|
|
2
2
|
import { Diagnostic, DiagnosticAcceptor } from '../diagnostic/Diagnostic.js';
|
|
3
3
|
import { Compilation } from './Compilation.js';
|
|
4
|
-
import {
|
|
4
|
+
import { PackageOrGroupConfiguration } from './configuration/ConfigurationConverter.js';
|
|
5
5
|
import * as fsTree from './FileSystemTree.js';
|
|
6
6
|
import * as packageContent from './PackageContent.js';
|
|
7
7
|
import { PackageName, ProgramPackageConfiguration } from './SourcePackage.js';
|
|
@@ -92,10 +92,10 @@ export declare class CompilationLoadResult {
|
|
|
92
92
|
constructor(compilation: Compilation | undefined, configurationsByPackageOrGroupUri: ReadonlyMap<string, ProcessedConfigurationInfo>);
|
|
93
93
|
}
|
|
94
94
|
interface ProcessedConfigurationInfo {
|
|
95
|
-
processedConfiguration:
|
|
95
|
+
processedConfiguration: PackageOrGroupConfiguration | undefined;
|
|
96
96
|
diagnostics: readonly Diagnostic[];
|
|
97
97
|
configurationFileVersion: number;
|
|
98
98
|
}
|
|
99
99
|
export type MainPackageConfigurationProvider = () => Promise<ProgramPackageConfiguration>;
|
|
100
|
-
export type ConfigurationProvider = (configurationDirectory: ConfigurationDirectoryInfo, isLoadedFromNodeModules: boolean, process: (configurationDirectory: ConfigurationDirectoryInfo) => Promise<
|
|
100
|
+
export type ConfigurationProvider = (configurationDirectory: ConfigurationDirectoryInfo, isLoadedFromNodeModules: boolean, process: (configurationDirectory: ConfigurationDirectoryInfo) => Promise<PackageOrGroupConfiguration | undefined>) => Promise<PackageOrGroupConfiguration | undefined>;
|
|
101
101
|
export {};
|
|
@@ -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 {
|
|
@@ -52,6 +98,7 @@ export declare class TranslationPackageConfiguration {
|
|
|
52
98
|
readonly translationLocale: PackageLocale;
|
|
53
99
|
readonly locale: PackageLocale;
|
|
54
100
|
readonly dialect: PackageDialect;
|
|
101
|
+
readonly kind = "name-translation-package";
|
|
55
102
|
readonly name: PackageName;
|
|
56
103
|
constructor(targetPackageName: PackageName, translatedName: PackageName, translationLocale: PackageLocale, locale: PackageLocale, dialect?: PackageDialect);
|
|
57
104
|
}
|
|
@@ -65,6 +112,7 @@ export declare class TextTranslationPackageConfiguration {
|
|
|
65
112
|
readonly targetPlatform: TargetPlatformConfig;
|
|
66
113
|
readonly packageImportLocales: readonly PackageImportLocaleConfig[];
|
|
67
114
|
readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
|
|
115
|
+
readonly kind = "text-translation-package";
|
|
68
116
|
readonly name: PackageName;
|
|
69
117
|
constructor(targetPackageName: PackageName, translationLocale: string, isPrimaryTranslation: boolean | undefined, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, targetPlatform?: TargetPlatformConfig, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
70
118
|
}
|
|
@@ -79,6 +127,7 @@ export declare class ProgramPackageConfiguration {
|
|
|
79
127
|
readonly jsProjectRootUri?: Uri | undefined;
|
|
80
128
|
readonly packageImportLocales: readonly PackageImportLocaleConfig[];
|
|
81
129
|
readonly automaticallyImportedPackages?: readonly PackageName[] | undefined;
|
|
130
|
+
readonly kind = "program-package";
|
|
82
131
|
constructor(name: PackageName, locale: PackageLocale, dialect?: PackageDialect, version?: string | undefined, targetPlatform?: TargetPlatformConfig, requiredPackages?: readonly RequiredPackageConfig[], implementedInterfacePackageName?: PackageName | undefined, jsProjectRootUri?: Uri | undefined, packageImportLocales?: readonly PackageImportLocaleConfig[], automaticallyImportedPackages?: readonly PackageName[] | undefined);
|
|
83
132
|
isInterfacePackage(): boolean;
|
|
84
133
|
}
|
|
@@ -90,6 +139,9 @@ export declare class PackageName {
|
|
|
90
139
|
considerEqual(name: PackageName): boolean;
|
|
91
140
|
toString(original?: boolean): string;
|
|
92
141
|
}
|
|
142
|
+
export type SourceFilesA = readonly SourceFileA[];
|
|
143
|
+
export type SourceFilesM = readonly SourceFileM[];
|
|
144
|
+
export type SourceFiles = SourceFilesA | SourceFilesM;
|
|
93
145
|
export type RequiredPackageConfig = RequiredPackageConfig.Npm | RequiredPackageConfig.NuGet;
|
|
94
146
|
export declare namespace RequiredPackageConfig {
|
|
95
147
|
class Npm {
|
|
@@ -5,7 +5,7 @@ import * as origin from '../configuration/types/PackageConfigurationEn.js';
|
|
|
5
5
|
import { PackageConfiguration, ProgramPackageConfiguration, TextTranslationPackageConfiguration, TranslationPackageConfiguration } from '../SourcePackage.js';
|
|
6
6
|
export declare class ConfigurationConverter {
|
|
7
7
|
private static readonly uriRegexp;
|
|
8
|
-
static convert(
|
|
8
|
+
static convert(configuration: origin.Configuration | undefined, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): PackageOrGroupConfiguration;
|
|
9
9
|
static convertPackageConfiguration(configuration: origin.Package, packageOrGroupUri?: Uri, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): ProgramPackageConfiguration;
|
|
10
10
|
static convertPackageGroupConfiguration(configuration: origin.PackageGroup): PackageGroupConfiguration;
|
|
11
11
|
static convertNameTranslationsConfiguration(configuration: origin.NameTranslations, defaultLocale?: PackageLocale, defaultDialect?: PackageDialect): TranslationPackageConfiguration;
|
|
@@ -19,10 +19,8 @@ export declare class ConfigurationConverter {
|
|
|
19
19
|
private static convertJavaScriptModuleFormat;
|
|
20
20
|
private static tryParseUri;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
23
|
-
packageConfiguration?: PackageConfiguration;
|
|
24
|
-
packageGroupConfiguration?: PackageGroupConfiguration;
|
|
25
|
-
}
|
|
22
|
+
export type PackageOrGroupConfiguration = PackageConfiguration | PackageGroupConfiguration;
|
|
26
23
|
export declare class PackageGroupConfiguration {
|
|
24
|
+
readonly kind = "package-group";
|
|
27
25
|
}
|
|
28
26
|
export declare function createDefaultPackageConfiguration(packageUri: Uri | undefined, locale?: PackageLocale, dialect?: PackageDialect): ProgramPackageConfiguration;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Option } from '../../common/index.js';
|
|
1
2
|
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
2
3
|
import { RangeDiagnosticAcceptor } from '../../diagnostic/RangeDiagnostic.js';
|
|
3
4
|
import * as configEn from '../configuration/types/PackageConfigurationEn.js';
|
|
@@ -8,19 +9,19 @@ export declare class ConfigurationFileParser {
|
|
|
8
9
|
* Выполняет разбор и валидацию конфигурации (проверка соответствия JSON схеме), преобразует в конфигурацию на
|
|
9
10
|
* английском языке путём замены имён свойств.
|
|
10
11
|
*
|
|
11
|
-
* @returns Возвращает `
|
|
12
|
+
* @returns Возвращает `Option.some`, если конфигурация была успешно разобрана, `Option.none`, если содержала
|
|
12
13
|
* ошибки (ошибки в синтаксисе JSON, несоответствие JSON схеме).
|
|
13
14
|
*
|
|
14
15
|
* @example
|
|
15
|
-
*
|
|
16
|
+
* {
|
|
16
17
|
* "тип": "Пакет",
|
|
17
18
|
* "имя": "МойПакет"
|
|
18
|
-
* }
|
|
19
|
+
* }
|
|
19
20
|
* ->
|
|
20
|
-
*
|
|
21
|
+
* {
|
|
21
22
|
* "type": "Package",
|
|
22
23
|
* "name": "МойПакет"
|
|
23
|
-
* }
|
|
24
|
+
* }
|
|
24
25
|
*/
|
|
25
|
-
static parse(json: string, locale: PackageLocale, diagnostics: RangeDiagnosticAcceptor | undefined): Promise<configEn.
|
|
26
|
+
static parse(json: string, locale: PackageLocale, diagnostics: RangeDiagnosticAcceptor | undefined): Promise<Option<configEn.Configuration | undefined>>;
|
|
26
27
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PackageLocale } from '../../common/PackageLocale.js';
|
|
2
2
|
import * as configEn from '../configuration/types/PackageConfigurationEn.js';
|
|
3
3
|
import * as configRu from '../configuration/types/PackageConfigurationRu.js';
|
|
4
|
-
export type ConfigurationArray = configEn.ConfigurationArray | configRu.МассивКонфигураций;
|
|
5
4
|
export type Configuration = configEn.Configuration | configRu.Конфигурация;
|
|
6
5
|
/**
|
|
7
6
|
* Заменяет ключи объектов конфигурации на ключи на английском языке.
|
|
@@ -18,6 +17,5 @@ export type Configuration = configEn.Configuration | configRu.Конфигура
|
|
|
18
17
|
* }]
|
|
19
18
|
*/
|
|
20
19
|
export declare class ConfigurationTranslator {
|
|
21
|
-
static translate(configuration:
|
|
22
|
-
static translateConfiguration(configuration: Configuration, locale: PackageLocale): configEn.Configuration;
|
|
20
|
+
static translate(configuration: Configuration, locale: PackageLocale): configEn.Configuration;
|
|
23
21
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export type ConfigurationArray = Configuration[];
|
|
2
1
|
export type Configuration = Package | PackageGroup | NameTranslations | TextTranslations;
|
|
3
2
|
export interface Package {
|
|
4
|
-
type
|
|
3
|
+
type?: 'Package';
|
|
5
4
|
name: string;
|
|
6
5
|
language?: Language;
|
|
7
6
|
dialect?: Dialect;
|
|
@@ -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
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Analyzer } from '
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
1
|
+
import { Analyzer } from '../../analysis/a/Analyzer.js';
|
|
2
|
+
import { SourceFileA } from '../../project/index.js';
|
|
3
|
+
import { CompletionItem, ResolutionResult } from '../common/completion/Types.js';
|
|
4
|
+
export declare class CompletionServiceA {
|
|
5
5
|
private readonly cache;
|
|
6
6
|
private sourceFile;
|
|
7
7
|
private analyzer;
|
|
@@ -9,7 +9,7 @@ export declare class CompletionService {
|
|
|
9
9
|
private dialect;
|
|
10
10
|
private readonly completionItemInfoContext_;
|
|
11
11
|
private get completionItemInfoContext();
|
|
12
|
-
getCompletions(analyzer: Analyzer, sourceFile:
|
|
12
|
+
getCompletions(analyzer: Analyzer, sourceFile: SourceFileA, offset: number): readonly CompletionItem[];
|
|
13
13
|
resolveCompletionItem(cacheId: number, indexInCache: number): ResolutionResult;
|
|
14
14
|
private createSemanticContextAtPosition;
|
|
15
15
|
private createPositionDescription;
|
|
@@ -57,50 +57,3 @@ export declare class CompletionService {
|
|
|
57
57
|
private convertCompletionItemInfos;
|
|
58
58
|
private convertCompletionItemInfo;
|
|
59
59
|
}
|
|
60
|
-
export declare class CompletionItem {
|
|
61
|
-
readonly label: string;
|
|
62
|
-
readonly kind: CompletionItemKind;
|
|
63
|
-
readonly details: string | undefined;
|
|
64
|
-
readonly insertText: string | undefined;
|
|
65
|
-
readonly editRange: Range | undefined;
|
|
66
|
-
readonly sortText: string | undefined;
|
|
67
|
-
readonly cacheId: number;
|
|
68
|
-
readonly indexInCache: number;
|
|
69
|
-
constructor(label: string, kind: CompletionItemKind, details: string | undefined, insertText: string | undefined, editRange: Range | undefined, sortText: string | undefined, cacheId: number, indexInCache: number);
|
|
70
|
-
}
|
|
71
|
-
export declare const enum CompletionItemKind {
|
|
72
|
-
PackageNameSegment = 0,
|
|
73
|
-
PackageAlias = 1,
|
|
74
|
-
Field = 2,
|
|
75
|
-
Method = 3,
|
|
76
|
-
Operator = 4,
|
|
77
|
-
Indexer = 5,
|
|
78
|
-
Constructor = 6,
|
|
79
|
-
PackageVariable = 7,
|
|
80
|
-
PackageFunction = 8,
|
|
81
|
-
LocalVariable = 9,
|
|
82
|
-
Parameter = 10,
|
|
83
|
-
NestedFunction = 11,
|
|
84
|
-
VariantValue = 12,
|
|
85
|
-
Class = 13,
|
|
86
|
-
Structure = 14,
|
|
87
|
-
Aspect = 15,
|
|
88
|
-
Variant = 16,
|
|
89
|
-
TypeParameter = 17,
|
|
90
|
-
AliasType = 18,
|
|
91
|
-
ReducedType = 19,
|
|
92
|
-
InvalidType = 20,
|
|
93
|
-
Keyword = 21,
|
|
94
|
-
TargetSignatureParameter = 22,
|
|
95
|
-
OperatorName = 23
|
|
96
|
-
}
|
|
97
|
-
export type ResolutionResult = ResolutionResult_item | ResolutionResult_notInCache;
|
|
98
|
-
export declare class ResolutionResult_item {
|
|
99
|
-
readonly value: CompletionItem;
|
|
100
|
-
readonly sourceFile: SourceFile;
|
|
101
|
-
readonly kind = "item";
|
|
102
|
-
constructor(value: CompletionItem, sourceFile: SourceFile);
|
|
103
|
-
}
|
|
104
|
-
export declare class ResolutionResult_notInCache {
|
|
105
|
-
readonly kind = "not-in-cache";
|
|
106
|
-
}
|
|
@@ -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 { DefinitionService } from '../common/definition/DefinitionService.js';
|
|
5
|
+
import { NodeSemanticInfo } from '../common/node-semantic-info/Types.js';
|
|
6
|
+
export declare class DefinitionServiceA extends DefinitionService<SourceFileA> {
|
|
7
|
+
protected getSemanticInfoAndRangeAtOffset(analyzer: Analyzer, sourceFile: SourceFileA, offset: number): {
|
|
8
|
+
semanticInfo: NodeSemanticInfo;
|
|
9
|
+
range: Range;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}
|