@artel/artc 0.6.25191
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 +20 -0
- package/build/api/Api.js +664 -0
- package/build/api/ApiNodeJS.js +20 -0
- package/build/api/ApiServices.js +12847 -0
- package/build/chunk-BQHCAH6D.js +588 -0
- package/build/chunk-O2JKESUU.js +63219 -0
- package/build/chunk-QRBDQKYM.js +94 -0
- package/build/types/Cli.d.ts +3 -0
- package/build/types/analysis/AccessedMethod.d.ts +53 -0
- package/build/types/analysis/AnalyzedTranslationPackage.d.ts +191 -0
- package/build/types/analysis/Analyzer.d.ts +665 -0
- package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +25 -0
- package/build/types/analysis/BaseExpressionMeaning.d.ts +47 -0
- package/build/types/analysis/BuiltInOperators.d.ts +14 -0
- package/build/types/analysis/CallArgumentToParameterMatchResult.d.ts +30 -0
- package/build/types/analysis/CallArgumentsToParametersMatcher.d.ts +44 -0
- package/build/types/analysis/CallExpressionMeaning.d.ts +39 -0
- package/build/types/analysis/ConstructorOverloadResolver.d.ts +34 -0
- package/build/types/analysis/DeclarationsUsageCounter.d.ts +18 -0
- package/build/types/analysis/DereferenceExpressionMeaning.d.ts +23 -0
- package/build/types/analysis/DiagnosticCollector.d.ts +68 -0
- package/build/types/analysis/EntityLocalizationHelper.d.ts +15 -0
- package/build/types/analysis/FindModifier.d.ts +4 -0
- package/build/types/analysis/FoundDeclaration.d.ts +19 -0
- package/build/types/analysis/IdentifierExpressionMeaning.d.ts +98 -0
- package/build/types/analysis/ImportedPackageNameTree.d.ts +22 -0
- package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +26 -0
- package/build/types/analysis/IndexerAccess.d.ts +10 -0
- package/build/types/analysis/Localization.d.ts +54 -0
- package/build/types/analysis/LocalizationContext.d.ts +15 -0
- package/build/types/analysis/Lookup.d.ts +23 -0
- package/build/types/analysis/NamedTypeResolver.d.ts +42 -0
- package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +20 -0
- package/build/types/analysis/NodeTypeUtils.d.ts +28 -0
- package/build/types/analysis/ObjectExpressionMeaning.d.ts +38 -0
- package/build/types/analysis/OperationOverloadResolver.d.ts +19 -0
- package/build/types/analysis/OverloadResolver.d.ts +12 -0
- package/build/types/analysis/PackageMemberLookup.d.ts +15 -0
- package/build/types/analysis/PrefixUnaryOperatorResolver.d.ts +27 -0
- package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +100 -0
- package/build/types/analysis/Scope.d.ts +309 -0
- package/build/types/analysis/SemanticContext.d.ts +320 -0
- package/build/types/analysis/SemanticContextBuilder.d.ts +54 -0
- package/build/types/analysis/SourceFileMembers.d.ts +92 -0
- package/build/types/analysis/SourcePackageDependencyGraph.d.ts +41 -0
- package/build/types/analysis/SourcePackageMembersCreator.d.ts +6 -0
- package/build/types/analysis/StatementBlockScopeBuilder.d.ts +22 -0
- package/build/types/analysis/SubstitutedMethod.d.ts +49 -0
- package/build/types/analysis/TagMeaning.d.ts +26 -0
- package/build/types/analysis/Tags.d.ts +29 -0
- package/build/types/analysis/TargetTypeHint.d.ts +5 -0
- package/build/types/analysis/TypeInferrer.d.ts +9 -0
- package/build/types/analysis/TypeMemberLookup.d.ts +27 -0
- package/build/types/analysis/TypeOverloadResolver.d.ts +7 -0
- package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +37 -0
- package/build/types/analysis/Utils.d.ts +17 -0
- package/build/types/analysis/VariableAccess.d.ts +10 -0
- package/build/types/analysis/VariantLookup.d.ts +20 -0
- package/build/types/analysis/Visitor.d.ts +7 -0
- package/build/types/analysis/WellKnownDeclarations.d.ts +34 -0
- package/build/types/analysis/index.d.ts +8 -0
- package/build/types/api/Api.d.ts +59 -0
- package/build/types/api/ApiNodeJS.d.ts +5 -0
- package/build/types/api/ApiServices.d.ts +3 -0
- package/build/types/common/AccessKind.d.ts +4 -0
- package/build/types/common/ArtelFileCheck.d.ts +2 -0
- package/build/types/common/Cached.d.ts +6 -0
- package/build/types/common/CancellationToken.d.ts +13 -0
- package/build/types/common/Constants.d.ts +19 -0
- package/build/types/common/Debug.d.ts +10 -0
- package/build/types/common/Delayed.d.ts +7 -0
- package/build/types/common/ErrorHandlingStrategy.d.ts +3 -0
- package/build/types/common/FormatString.d.ts +5 -0
- package/build/types/common/HelperPhrases.d.ts +11 -0
- package/build/types/common/Interner.d.ts +4 -0
- package/build/types/common/L10nConfig.d.ts +1 -0
- package/build/types/common/Lazy.d.ts +9 -0
- package/build/types/common/LocalizationHelper.d.ts +10 -0
- package/build/types/common/Logger.d.ts +10 -0
- package/build/types/common/Name.d.ts +83 -0
- package/build/types/common/NameFormatConversion.d.ts +12 -0
- package/build/types/common/NonEmptyArray.d.ts +8 -0
- package/build/types/common/Option.d.ts +28 -0
- package/build/types/common/PackageDialect.d.ts +5 -0
- package/build/types/common/PackageLocale.d.ts +15 -0
- package/build/types/common/PackageLocaleGuard.d.ts +1 -0
- package/build/types/common/Path.d.ts +8 -0
- package/build/types/common/PerformanceMeasurement.d.ts +20 -0
- package/build/types/common/Query.d.ts +39 -0
- package/build/types/common/Range.d.ts +10 -0
- package/build/types/common/Result.d.ts +13 -0
- package/build/types/common/SearchName.d.ts +13 -0
- package/build/types/common/ThrottledCancellationToken.d.ts +17 -0
- package/build/types/common/TreeQuery.d.ts +53 -0
- package/build/types/common/TreeTraversal.d.ts +13 -0
- package/build/types/common/Uri.d.ts +28 -0
- package/build/types/common/UriTree.d.ts +41 -0
- package/build/types/common/UserLocale.d.ts +2 -0
- package/build/types/common/WithDiagnostics.d.ts +19 -0
- package/build/types/common/YieldExecution.d.ts +1 -0
- package/build/types/common/index.d.ts +32 -0
- package/build/types/diagnostic/Diagnostic.d.ts +21 -0
- package/build/types/diagnostic/DiagnosticCode.d.ts +146 -0
- package/build/types/diagnostic/DiagnosticData.d.ts +20 -0
- package/build/types/diagnostic/DiagnosticFormatter.d.ts +8 -0
- package/build/types/diagnostic/RangeDiagnostic.d.ts +19 -0
- package/build/types/emitter/BlockStatementTransformationResult.d.ts +10 -0
- package/build/types/emitter/CustomModuleLoader.d.ts +1 -0
- package/build/types/emitter/DebugStack.d.ts +10 -0
- package/build/types/emitter/Emitter.d.ts +61 -0
- package/build/types/emitter/EmitterContext.d.ts +342 -0
- package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +36 -0
- package/build/types/emitter/EmitterPackage.d.ts +60 -0
- package/build/types/emitter/EntityNameProviders.d.ts +33 -0
- package/build/types/emitter/ExpressionTransformationResult.d.ts +17 -0
- package/build/types/emitter/GeneralLowering.d.ts +72 -0
- package/build/types/emitter/Internal.d.ts +10 -0
- package/build/types/emitter/IntrinsicEntities.d.ts +118 -0
- package/build/types/emitter/IrBuilder.d.ts +108 -0
- package/build/types/emitter/IrToJs.d.ts +113 -0
- package/build/types/emitter/JavaScriptName.d.ts +1 -0
- package/build/types/emitter/PackageMemberDeclarationTransformationResult.d.ts +17 -0
- package/build/types/emitter/SimpleTransformationResult.d.ts +14 -0
- package/build/types/emitter/StatementTransformationResult.d.ts +16 -0
- package/build/types/emitter/StructuredTypeMemberDeclarationTransformationResult.d.ts +13 -0
- package/build/types/emitter/TransformationContinuationAction.d.ts +4 -0
- package/build/types/emitter/Transformer.d.ts +282 -0
- package/build/types/emitter/TypeAccessExpressionTransformationResult.d.ts +12 -0
- package/build/types/emitter/error-boundary.d.ts +10 -0
- package/build/types/emitter/index.d.ts +1 -0
- package/build/types/emitter/ir/AccessedEntities.d.ts +19 -0
- package/build/types/emitter/ir/LoweringOptions.d.ts +34 -0
- package/build/types/emitter/ir/Nodes.d.ts +1585 -0
- package/build/types/emitter/ir/SourceLocation.d.ts +10 -0
- package/build/types/emitter/ir/index.d.ts +5 -0
- package/build/types/emitter/ir/types.d.ts +10 -0
- package/build/types/entities/AliasTypeEntity.d.ts +84 -0
- package/build/types/entities/BinaryOperatorEntity.d.ts +48 -0
- package/build/types/entities/ConstructorEntity.d.ts +99 -0
- package/build/types/entities/DereferenceOperatorEntity.d.ts +40 -0
- package/build/types/entities/DestructorEntity.d.ts +31 -0
- package/build/types/entities/EntityHiding.d.ts +27 -0
- package/build/types/entities/EntityNaming.d.ts +12 -0
- package/build/types/entities/GetterEntity.d.ts +86 -0
- package/build/types/entities/IndexerEntity.d.ts +51 -0
- package/build/types/entities/MethodEntity.d.ts +174 -0
- package/build/types/entities/MethodTypeEntity.d.ts +98 -0
- package/build/types/entities/PackageAliasEntity.d.ts +30 -0
- package/build/types/entities/PackageEntity.d.ts +56 -0
- package/build/types/entities/PackageMembers.d.ts +98 -0
- package/build/types/entities/SetterEntity.d.ts +78 -0
- package/build/types/entities/StructuredTypeEntity.d.ts +199 -0
- package/build/types/entities/SubstitutionApplicationMode.d.ts +4 -0
- package/build/types/entities/TypeEntityMembers.d.ts +36 -0
- package/build/types/entities/TypeExtensionEntity.d.ts +33 -0
- package/build/types/entities/TypeMemberContainer.d.ts +23 -0
- package/build/types/entities/TypeParameterEntity.d.ts +94 -0
- package/build/types/entities/UnaryOperatorEntity.d.ts +33 -0
- package/build/types/entities/VariableEntity.d.ts +423 -0
- package/build/types/entities/VariantEntity.d.ts +31 -0
- package/build/types/entities/VariantTypeEntity.d.ts +83 -0
- package/build/types/entities/Variants.d.ts +10 -0
- package/build/types/entities/index.d.ts +87 -0
- package/build/types/executor/CommandLineCompiler.d.ts +8 -0
- package/build/types/executor/Compiler.d.ts +15 -0
- package/build/types/executor/FileSystemUri.d.ts +5 -0
- package/build/types/executor/NodeCompiler.d.ts +39 -0
- package/build/types/executor/PhysicalFileSystem.d.ts +12 -0
- package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +12 -0
- package/build/types/generated/BuiltInSystemPackages.d.ts +3 -0
- package/build/types/old/Executor.d.ts +14 -0
- package/build/types/old/JavaScriptEmitter.d.ts +1 -0
- package/build/types/old/JavaScriptEmittingVisitor.d.ts +1 -0
- package/build/types/old/NzonParser.d.ts +1 -0
- package/build/types/old/NzonScanner.d.ts +1 -0
- package/build/types/old/NzonSyntax.d.ts +1 -0
- package/build/types/old/RemoteWorkspaceFileSystem.d.ts +1 -0
- package/build/types/parser/CharacterCodes.d.ts +21 -0
- package/build/types/parser/ConvertTokenKind.d.ts +3 -0
- package/build/types/parser/KeywordDictionary.d.ts +12 -0
- package/build/types/parser/ParseNumber.d.ts +5 -0
- package/build/types/parser/Parser.d.ts +7 -0
- package/build/types/parser/ParserDiagnostic.d.ts +7 -0
- package/build/types/parser/ReservedIdentifierDictionary.d.ts +12 -0
- package/build/types/parser/Scanner.d.ts +60 -0
- package/build/types/parser/TokenKind.d.ts +73 -0
- package/build/types/parser/UnescapeText.d.ts +2 -0
- package/build/types/project/Compilation.d.ts +21 -0
- package/build/types/project/CompilationLoader.d.ts +104 -0
- package/build/types/project/FileSystemTree.d.ts +70 -0
- package/build/types/project/PackageConfigurationSerializer.d.ts +1 -0
- package/build/types/project/Position.d.ts +5 -0
- package/build/types/project/SourceFile.d.ts +21 -0
- package/build/types/project/SourcePackage.d.ts +151 -0
- package/build/types/project/TextFile.d.ts +11 -0
- package/build/types/project/configuration/BuildPackageApi.d.ts +75 -0
- package/build/types/project/configuration/ConfigurationConverter.d.ts +25 -0
- package/build/types/project/configuration/ConfigurationFileParser.d.ts +26 -0
- package/build/types/project/configuration/PackageConfigurationInterpreter.d.ts +27 -0
- package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +90 -0
- package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +91 -0
- package/build/types/project/index.d.ts +12 -0
- package/build/types/services/AddPropertyAssignmentService.d.ts +15 -0
- package/build/types/services/CompletionService.d.ts +95 -0
- package/build/types/services/CustomCommand.d.ts +120 -0
- package/build/types/services/DefinitionService.d.ts +19 -0
- package/build/types/services/DisplayService.d.ts +830 -0
- package/build/types/services/DocumentHighlightsService.d.ts +18 -0
- package/build/types/services/EvaluatableExpressionService.d.ts +15 -0
- package/build/types/services/FileSystemTreeDisplayService.d.ts +7 -0
- package/build/types/services/HoverService.d.ts +17 -0
- package/build/types/services/LanguageServer.d.ts +125 -0
- package/build/types/services/NodeSemanticInfo.d.ts +132 -0
- package/build/types/services/ProjectItemsService.d.ts +6 -0
- package/build/types/services/ReferencesService.d.ts +30 -0
- package/build/types/services/RenameService.d.ts +16 -0
- package/build/types/services/SelectionRangeService.d.ts +12 -0
- package/build/types/services/SemanticTokensService.d.ts +40 -0
- package/build/types/services/SourceFileItemsService.d.ts +42 -0
- package/build/types/services/TranslationService.d.ts +23 -0
- package/build/types/services/TreeUtils.d.ts +58 -0
- package/build/types/services/TypeDefinitionService.d.ts +9 -0
- package/build/types/services/Types.d.ts +22 -0
- package/build/types/services/Utils.d.ts +5 -0
- package/build/types/services/signature-help/SignatureHelpService.d.ts +17 -0
- package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +114 -0
- package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +20 -0
- package/build/types/services/signature-help/ValueParametersSignatureHelpProvider.d.ts +15 -0
- package/build/types/services/signature-help/utils.d.ts +9 -0
- package/build/types/services/source-generation/EntityToSyntax.d.ts +47 -0
- package/build/types/services/source-generation/SourceGenerationService.d.ts +22 -0
- package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +41 -0
- package/build/types/services/workspace/CompilationController.d.ts +108 -0
- package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +61 -0
- package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +21 -0
- package/build/types/services/workspace/Workspace.d.ts +59 -0
- package/build/types/services/workspace/WorkspaceFileSystem.d.ts +5 -0
- package/build/types/services/workspace/WorkspaceFiles.d.ts +35 -0
- package/build/types/services/workspace/index.d.ts +7 -0
- package/build/types/tree/KeywordKind.d.ts +64 -0
- package/build/types/tree/NodeKind.d.ts +163 -0
- package/build/types/tree/TokenKind.d.ts +132 -0
- package/build/types/tree/TriviaKind.d.ts +7 -0
- package/build/types/tree/green/BaseNode.d.ts +12 -0
- package/build/types/tree/green/Nodes.d.ts +2235 -0
- package/build/types/tree/green/SyntaxFactory.d.ts +67 -0
- package/build/types/tree/green/SyntaxToCode.d.ts +116 -0
- package/build/types/tree/green/Token.d.ts +37 -0
- package/build/types/tree/green/Utils.d.ts +2 -0
- package/build/types/tree/green/index.d.ts +7 -0
- package/build/types/tree/index.d.ts +4 -0
- package/build/types/tree/red/BaseNode.d.ts +15 -0
- package/build/types/tree/red/Internal.d.ts +2 -0
- package/build/types/tree/red/NodePath.d.ts +10 -0
- package/build/types/tree/red/Nodes.d.ts +2237 -0
- package/build/types/tree/red/Token.d.ts +29 -0
- package/build/types/tree/red/Utils.d.ts +6 -0
- package/build/types/tree/red/index.d.ts +6 -0
- package/build/types/ts-interop/Entities.d.ts +634 -0
- package/build/types/ts-interop/TsInteropContext.d.ts +179 -0
- package/build/types/ts-interop/TsLibrariesProvider.d.ts +12 -0
- package/build/types/ts-interop/TsPackageContents.d.ts +64 -0
- package/build/types/ts-interop/TsPackageMembersCreator.d.ts +69 -0
- package/build/types/ts-interop/TsProgramLoader.d.ts +38 -0
- package/build/types/ts-interop/TsTypeMembersCreator.d.ts +45 -0
- package/build/types/ts-interop/Utils.d.ts +43 -0
- package/build/types/types/AliasType.d.ts +20 -0
- package/build/types/types/Internal.d.ts +1 -0
- package/build/types/types/MethodType.d.ts +23 -0
- package/build/types/types/ParameterType.d.ts +19 -0
- package/build/types/types/StandardTypes.d.ts +42 -0
- package/build/types/types/StructuredType.d.ts +25 -0
- package/build/types/types/Substitutions.d.ts +18 -0
- package/build/types/types/Type.d.ts +16 -0
- package/build/types/types/TypeFactory.d.ts +15 -0
- package/build/types/types/TypeMembers.d.ts +134 -0
- package/build/types/types/UnionType.d.ts +20 -0
- package/build/types/types/UnresolvedType.d.ts +16 -0
- package/build/types/types/VariantType.d.ts +19 -0
- package/build/types/types/index.d.ts +12 -0
- package/package.json +73 -0
@@ -0,0 +1,120 @@
|
|
1
|
+
import * as ls from 'vscode-languageserver';
|
2
|
+
export declare const customCommandName: {
|
3
|
+
/**
|
4
|
+
* Возвращает `string[] | null`.
|
5
|
+
*/
|
6
|
+
getLocalesAvailableForTranslation: string;
|
7
|
+
/**
|
8
|
+
* Возвращает `string | null`.
|
9
|
+
*/
|
10
|
+
translateProject: string;
|
11
|
+
/**
|
12
|
+
* Возвращает `EvaluatableExpression | null`.
|
13
|
+
*/
|
14
|
+
provideEvaluatableExpression: string;
|
15
|
+
/**
|
16
|
+
* Возвращает `string | null`.
|
17
|
+
*/
|
18
|
+
provideServerOwnedDocumentContent: string;
|
19
|
+
/**
|
20
|
+
* Возвращает `EmitCodeToStringResult`.
|
21
|
+
*/
|
22
|
+
emitCodeToString: string;
|
23
|
+
/**
|
24
|
+
* Возвращает `string | null`.
|
25
|
+
*/
|
26
|
+
displayFileSystemTree: string;
|
27
|
+
/**
|
28
|
+
* Возвращает `void`.
|
29
|
+
*/
|
30
|
+
createOrUpdateSourceFile: string;
|
31
|
+
/**
|
32
|
+
* Возвращает `void`.
|
33
|
+
*/
|
34
|
+
deleteSourceFile: string;
|
35
|
+
/**
|
36
|
+
* Возвращает `ls.Range | null`.
|
37
|
+
*/
|
38
|
+
getNodeRange: string;
|
39
|
+
/**
|
40
|
+
* Возвращает `void`.
|
41
|
+
*/
|
42
|
+
addPropertyAssignment: string;
|
43
|
+
};
|
44
|
+
export type GetLocalesAvailableForTranslationParams = {
|
45
|
+
textDocument: ls.TextDocumentIdentifier;
|
46
|
+
};
|
47
|
+
export type TranslateSourceFileParams = {
|
48
|
+
textDocument: ls.TextDocumentIdentifier;
|
49
|
+
locale: string;
|
50
|
+
};
|
51
|
+
export type ProvideEvaluatableExpressionParams = {
|
52
|
+
textDocument: ls.TextDocumentIdentifier;
|
53
|
+
position: ls.Position;
|
54
|
+
};
|
55
|
+
export type EvaluatableExpression = {
|
56
|
+
range: ls.Range;
|
57
|
+
value: string;
|
58
|
+
};
|
59
|
+
export type ProvideServerOwnedDocumentContentParams = {
|
60
|
+
uri: ls.DocumentUri;
|
61
|
+
};
|
62
|
+
export type EmitCodeToStringParams = {
|
63
|
+
workspaceFolderUri?: ls.URI;
|
64
|
+
};
|
65
|
+
export type EmitCodeToStringResult = {
|
66
|
+
hasErrors: true;
|
67
|
+
filesWithErrors: FileWithErrorInfo[];
|
68
|
+
} | {
|
69
|
+
hasErrors: false;
|
70
|
+
code: string;
|
71
|
+
};
|
72
|
+
export type FileWithErrorInfo = {
|
73
|
+
uri: ls.DocumentUri;
|
74
|
+
/**
|
75
|
+
* Версия на клиенте, если при компиляции файл был открыт в редакторе.
|
76
|
+
*/
|
77
|
+
version?: number;
|
78
|
+
};
|
79
|
+
export type DisplayFileSystemTreeParams = {
|
80
|
+
workspaceFolderUri?: ls.URI;
|
81
|
+
log?: boolean;
|
82
|
+
};
|
83
|
+
export type CreateOrUpdateSourceFileParams = {
|
84
|
+
uri: ls.DocumentUri;
|
85
|
+
text: string;
|
86
|
+
};
|
87
|
+
export type DeleteSourceFileParams = {
|
88
|
+
uri: ls.DocumentUri;
|
89
|
+
};
|
90
|
+
/**
|
91
|
+
* Uri файла, в фрагменте которого указан путь к синтаксическому узлу.
|
92
|
+
*
|
93
|
+
* Пример: `file:///path/Program.art#1.0.1`
|
94
|
+
*/
|
95
|
+
export type SyntaxNodeUri = ls.DocumentUri;
|
96
|
+
export type GetNodeRangeParams = {
|
97
|
+
uri: SyntaxNodeUri;
|
98
|
+
};
|
99
|
+
export type AddPropertyAssignmentParams = {
|
100
|
+
previousAssignmentLocation: SyntaxNodeUri;
|
101
|
+
/**
|
102
|
+
* Выражение, которое необходимо присвоить.
|
103
|
+
*
|
104
|
+
* Пример: `"текст"`, `1`, `да`
|
105
|
+
*/
|
106
|
+
value: string;
|
107
|
+
/**
|
108
|
+
* Позволяет добавить инструкцию присваивания с именем свойства, отличным от указанного слева от равно в предыдущем
|
109
|
+
* присваивании.
|
110
|
+
*/
|
111
|
+
propertyName?: string;
|
112
|
+
};
|
113
|
+
export declare function isProvideEvaluatableExpressionParams(value: unknown): value is ProvideEvaluatableExpressionParams;
|
114
|
+
export declare function isProvideServerOwnedDocumentContentParams(value: unknown): value is ProvideServerOwnedDocumentContentParams;
|
115
|
+
export declare function isEmitCodeToStringParams(value: unknown): value is EmitCodeToStringParams;
|
116
|
+
export declare function isDisplayFileSystemTreeParams(value: unknown): value is DisplayFileSystemTreeParams;
|
117
|
+
export declare function isCreateOrUpdateSourceFileParams(value: unknown): value is CreateOrUpdateSourceFileParams;
|
118
|
+
export declare function isDeleteSourceFileParams(value: unknown): value is DeleteSourceFileParams;
|
119
|
+
export declare function isGetNodeRangeParams(value: unknown): value is GetNodeRangeParams;
|
120
|
+
export declare function isAddPropertyAssignmentParams(value: unknown): value is AddPropertyAssignmentParams;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Analyzer } from '../analysis/index.js';
|
2
|
+
import { Range } from '../common/index.js';
|
3
|
+
import { SourceFile } from '../project/index.js';
|
4
|
+
import { SourceGenerationService } from './source-generation/SourceGenerationService.js';
|
5
|
+
import { SourceLocation } from './Types.js';
|
6
|
+
export declare class DefinitionService {
|
7
|
+
private readonly _sourceGenerationService;
|
8
|
+
constructor(sourceGenerationService: SourceGenerationService | undefined);
|
9
|
+
getDefinition(analyzer: Analyzer, sourceFile: SourceFile, offset: number): Promise<DefinitionsAndReferenceInfo | undefined>;
|
10
|
+
private getDefinitionOfReference;
|
11
|
+
private getReferenceTargetSourceLocation;
|
12
|
+
private getReferenceTargetEntity;
|
13
|
+
private createLocalizationContextForSourceGeneration;
|
14
|
+
}
|
15
|
+
export declare class DefinitionsAndReferenceInfo {
|
16
|
+
readonly definitionLocations: readonly SourceLocation[];
|
17
|
+
readonly referenceRange: Range;
|
18
|
+
constructor(definitionLocations: readonly SourceLocation[], referenceRange: Range);
|
19
|
+
}
|