1 implementation of IDocumentMappingService
Microsoft.CodeAnalysis.Razor.Workspaces (1)
DocumentMapping\AbstractDocumentMappingService.cs (1)
17
internal abstract class AbstractDocumentMappingService(ILogger logger) :
IDocumentMappingService
142 references to IDocumentMappingService
Microsoft.CodeAnalysis.Razor.Workspaces (45)
CodeActions\CodeActionsService.cs (2)
25
IDocumentMappingService
documentMappingService,
33
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
CodeActions\CSharp\UnformattedRemappingCSharpCodeActionResolver.cs (2)
17
internal class UnformattedRemappingCSharpCodeActionResolver(
IDocumentMappingService
documentMappingService) : ICSharpCodeActionResolver
19
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
Completion\Delegation\DelegatedCompletionHelper.cs (2)
162
IDocumentMappingService
documentMappingService,
304
IDocumentMappingService
documentMappingService,
Diagnostics\RazorTranslateDiagnosticsService.cs (2)
31
internal class RazorTranslateDiagnosticsService(
IDocumentMappingService
documentMappingService, ILoggerFactory loggerFactory)
33
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
DocumentMapping\DefaultDocumentPositionInfoStrategy.cs (1)
16
public DocumentPositionInfo GetPositionInfo(
IDocumentMappingService
mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex)
DocumentMapping\IDocumentMappingServiceExtensions.cs (8)
14
public static bool TryMapToRazorDocumentRange(this
IDocumentMappingService
service, RazorCSharpDocument csharpDocument, LinePositionSpan csharpRange, out LinePositionSpan razorRange)
17
public static bool TryMapToRazorDocumentRange(this
IDocumentMappingService
service, RazorCSharpDocument csharpDocument, LspRange csharpRange, [NotNullWhen(true)] out LspRange? razorRange)
21
this
IDocumentMappingService
service,
60
public static bool TryMapToRazorDocumentRange(this
IDocumentMappingService
service, RazorCSharpDocument csharpDocument, LspRange csharpRange, MappingBehavior mappingBehavior, [NotNullWhen(true)] out LspRange? razorRange)
67
public static bool TryMapToCSharpDocumentRange(this
IDocumentMappingService
service, RazorCSharpDocument csharpDocument, LspRange razorRange, [NotNullWhen(true)] out LspRange? csharpRange)
74
public static bool TryMapToRazorDocumentPosition(this
IDocumentMappingService
service, RazorCSharpDocument csharpDocument, int csharpIndex, [NotNullWhen(true)] out Position? razorPosition, out int razorIndex)
81
public static bool TryMapToCSharpDocumentPosition(this
IDocumentMappingService
service, RazorCSharpDocument csharpDocument, int razorIndex, [NotNullWhen(true)] out Position? csharpPosition, out int csharpIndex)
88
public static bool TryMapToCSharpPositionOrNext(this
IDocumentMappingService
service, RazorCSharpDocument csharpDocument, int razorIndex, [NotNullWhen(true)] out Position? csharpPosition, out int csharpIndex)
DocumentMapping\IDocumentPositionInfoStrategy.cs (1)
10
DocumentPositionInfo GetPositionInfo(
IDocumentMappingService
mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex);
DocumentMapping\PreferAttributeNameDocumentPositionInfoStrategy.cs (1)
21
public DocumentPositionInfo GetPositionInfo(
IDocumentMappingService
mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex)
DocumentMapping\PreferHtmlInAttributeValuesDocumentPositionStrategy.cs (1)
23
public DocumentPositionInfo GetPositionInfo(
IDocumentMappingService
mappingService, RazorCodeDocument codeDocument, int hostDocumentIndex)
DocumentMapping\RazorEditService.cs (2)
26
IDocumentMappingService
documentMappingService,
31
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
FindAllReferences\FindAllReferencesHelper.cs (1)
15
public static async Task<string?> GetResultTextAsync(
IDocumentMappingService
documentMappingService, ISolutionQueryOperations solutionQueryOperations, int lineNumber, string filePath, CancellationToken cancellationToken)
FoldingRanges\FoldingRangeService.cs (2)
18
IDocumentMappingService
documentMappingService,
23
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
Formatting\Passes\CSharpFormattingPass.cs (3)
24
IDocumentMappingService
documentMappingService,
29
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
152
internal static string GetFormattingDocumentContentsForSyntaxVisualizer(RazorCodeDocument codeDocument, SyntaxNode csharpSyntaxRoot,
IDocumentMappingService
documentMappingService)
Formatting\Passes\CSharpFormattingPass.CSharpDocumentGenerator.cs (3)
86
public static FormattedDocument Generate(RazorCodeDocument codeDocument, SyntaxNode csharpSyntaxRoot, RazorFormattingOptions options,
IDocumentMappingService
documentMappingService)
153
IDocumentMappingService
documentMappingService) : SyntaxVisitor<LineInfo>
167
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
Formatting\Passes\CSharpOnTypeFormattingPass.cs (2)
36
IDocumentMappingService
documentMappingService,
41
private readonly
IDocumentMappingService
_documentMappingSerivce = documentMappingService;
Formatting\Passes\HtmlFormattingPass.cs (2)
23
IDocumentMappingService
documentMappingService,
26
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
Formatting\RazorFormattingService.cs (1)
41
IDocumentMappingService
documentMappingService,
GoToDefinition\AbstractDefinitionService.cs (2)
21
IDocumentMappingService
documentMappingService,
26
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
GoToDefinition\RazorComponentDefinitionHelpers.cs (1)
158
IDocumentMappingService
documentMappingService,
Protocol\DocumentSymbols\DocumentSymbolService.cs (2)
12
internal class DocumentSymbolService(
IDocumentMappingService
documentMappingService) : IDocumentSymbolService
14
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
SemanticTokens\AbstractRazorSemanticTokensInfoService.cs (2)
22
IDocumentMappingService
documentMappingService,
37
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
SpellCheck\SpellCheckService.cs (2)
17
IDocumentMappingService
documentMappingService) : ISpellCheckService
20
private readonly
IDocumentMappingService
_documentMappingService = documentMappingService;
Microsoft.CodeAnalysis.Remote.Razor (25)
CodeActions\RemoteServices.cs (2)
21
IDocumentMappingService
documentMappingService,
140
internal sealed class OOPUnformattedRemappingCSharpCodeActionResolver(
IDocumentMappingService
documentMappingService) : UnformattedRemappingCSharpCodeActionResolver(documentMappingService);
CodeLens\RemoteCodeLensService.cs (2)
22
private readonly
IDocumentMappingService
_documentMappingService = args.ExportProvider.GetExportedValue<
IDocumentMappingService
>();
Completion\RemoteCompletionService.cs (2)
44
private readonly
IDocumentMappingService
_documentMappingService = args.ExportProvider.GetExportedValue<
IDocumentMappingService
>();
Debugging\RemoteDataTipRangeService.cs (2)
23
private readonly
IDocumentMappingService
_documentMappingService = args.ExportProvider.GetExportedValue<
IDocumentMappingService
>();
Debugging\RemoteDebugInfoService.cs (2)
25
private readonly
IDocumentMappingService
_documentMappingService = args.ExportProvider.GetExportedValue<
IDocumentMappingService
>();
Diagnostics\RemoteRazorTranslateDiagnosticsService.cs (1)
14
IDocumentMappingService
documentMappingService,
DocumentMapping\IDocumentMappingServiceExtensions.cs (2)
22
this
IDocumentMappingService
service,
42
this
IDocumentMappingService
service,
DocumentMapping\RemoteDocumentMappingService.cs (1)
17
[Export(typeof(
IDocumentMappingService
)), Shared]
DocumentMapping\RemoteRazorEditService.cs (1)
21
IDocumentMappingService
documentMappingService,
DocumentSymbols\OOPDocumentSymbolService.cs (1)
12
internal class OOPDocumentSymbolService(
IDocumentMappingService
documentMappingService) : DocumentSymbolService(documentMappingService)
FoldingRanges\OOPFoldingRangeService.cs (1)
15
IDocumentMappingService
documentMappingService,
Formatting\RemoteRazorFormattingService.cs (1)
14
internal sealed class RemoteRazorFormattingService(
IDocumentMappingService
documentMappingService, IRazorEditService razorEditService, IHostServicesProvider hostServicesProvider, IFormattingLoggerFactory formattingLoggerFactory, ILoggerFactory loggerFactory)
GoToDefinition\DefinitionService.cs (1)
16
IDocumentMappingService
documentMappingService,
InlineCompletion\RemoteInlineCompletionService.cs (2)
23
private readonly
IDocumentMappingService
_documentMappingService = args.ExportProvider.GetExportedValue<
IDocumentMappingService
>();
RazorDocumentServiceBase.cs (2)
18
protected
IDocumentMappingService
DocumentMappingService { get; } = args.ExportProvider.GetExportedValue<
IDocumentMappingService
>();
SemanticTokens\RazorSemanticTokensInfoService.cs (1)
14
IDocumentMappingService
documentMappingService,
SpellCheck\OOPSpellCheckService.cs (1)
14
IDocumentMappingService
documentMappingService)
Microsoft.VisualStudio.LanguageServices.Razor.UnitTests (37)
Cohost\CohostRoslynRenameTest.cs (2)
271
var
documentMappingService = OOPExportProvider.GetExportedValue<
IDocumentMappingService
>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\PreferHtmlInAttributeValuesDocumentPositionInfoStrategyTest.cs (2)
52
var
documentMappingService = OOPExportProvider.GetExportedValue<
IDocumentMappingService
>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingPassTest.cs (2)
136
var
documentMappingService = OOPExportProvider.GetExportedValue<
IDocumentMappingService
>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\RazorDocumentMappingServiceTest.cs (31)
20
private
IDocumentMappingService
CreateMappingService()
27
var
service = CreateMappingService();
50
var
service = CreateMappingService();
73
var
service = CreateMappingService();
97
var
service = CreateMappingService();
121
var
service = CreateMappingService();
145
var
service = CreateMappingService();
169
var
service = CreateMappingService();
195
var
service = CreateMappingService();
221
var
service = CreateMappingService();
245
var
service = CreateMappingService();
271
var
service = CreateMappingService();
295
var
service = CreateMappingService();
318
var
service = CreateMappingService();
345
var
service = CreateMappingService();
369
var
service = CreateMappingService();
405
var
service = CreateMappingService();
432
var
service = CreateMappingService();
453
var
service = CreateMappingService();
479
var
service = CreateMappingService();
505
var
service = CreateMappingService();
531
var
service = CreateMappingService();
552
var
service = CreateMappingService();
578
var
service = CreateMappingService();
604
var
service = CreateMappingService();
630
var
service = CreateMappingService();
657
var
service = CreateMappingService();
680
var
service = CreateMappingService();
703
var
service = CreateMappingService();
726
var
service = CreateMappingService();
747
var
service = CreateMappingService();
Microsoft.VisualStudioCode.RazorExtension.UnitTests (35)
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\AutoInsert\PreferHtmlInAttributeValuesDocumentPositionInfoStrategyTest.cs (2)
52
var
documentMappingService = OOPExportProvider.GetExportedValue<
IDocumentMappingService
>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\Formatting\HtmlFormattingPassTest.cs (2)
136
var
documentMappingService = OOPExportProvider.GetExportedValue<
IDocumentMappingService
>();
src\Razor\src\Razor\test\Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests\RazorDocumentMappingServiceTest.cs (31)
20
private
IDocumentMappingService
CreateMappingService()
27
var
service = CreateMappingService();
50
var
service = CreateMappingService();
73
var
service = CreateMappingService();
97
var
service = CreateMappingService();
121
var
service = CreateMappingService();
145
var
service = CreateMappingService();
169
var
service = CreateMappingService();
195
var
service = CreateMappingService();
221
var
service = CreateMappingService();
245
var
service = CreateMappingService();
271
var
service = CreateMappingService();
295
var
service = CreateMappingService();
318
var
service = CreateMappingService();
345
var
service = CreateMappingService();
369
var
service = CreateMappingService();
405
var
service = CreateMappingService();
432
var
service = CreateMappingService();
453
var
service = CreateMappingService();
479
var
service = CreateMappingService();
505
var
service = CreateMappingService();
531
var
service = CreateMappingService();
552
var
service = CreateMappingService();
578
var
service = CreateMappingService();
604
var
service = CreateMappingService();
630
var
service = CreateMappingService();
657
var
service = CreateMappingService();
680
var
service = CreateMappingService();
703
var
service = CreateMappingService();
726
var
service = CreateMappingService();
747
var
service = CreateMappingService();