3 instantiations of ParsedDocument
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (3)
35
return new
ParsedDocument
(document.Id, text, root, document.Project.GetExtendedLanguageServices());
50
return new
ParsedDocument
(Id, text, root, HostLanguageServices);
56
return new
ParsedDocument
(Id, text, root, HostLanguageServices);
21 references to ParsedDocument
Microsoft.CodeAnalysis.CodeStyle.Fixes (21)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (3)
36
ParsedDocument
document, TextSpan selectionRaw, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode
157
ParsedDocument
document,
516
ParsedDocument
document,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (1)
104
public static TextSpan GetTrimmedTextSpan(
ParsedDocument
document, TextSpan span)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\IRefactoringHelpersService.cs (1)
57
ParsedDocument
document, TextSpan selection, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\ISyntaxFormattingService.cs (3)
15
bool ShouldFormatOnTypedCharacter(
ParsedDocument
document, char typedChar, int caretPosition, CancellationToken cancellationToken);
16
ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter(
ParsedDocument
document, int caretPosition, IndentationOptions indentationOptions, CancellationToken cancellationToken);
17
ImmutableArray<TextChange> GetFormattingChangesOnPaste(
ParsedDocument
document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (2)
17
ParsedDocument
document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken)
39
private Indenter GetIndenter(
ParsedDocument
document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (3)
20
IndentationResult GetIndentation(
ParsedDocument
document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken);
29
public static string GetPreferredIndentation(this SyntaxToken token,
ParsedDocument
document, IndentationOptions options, CancellationToken cancellationToken)
53
var
newDocument = document.WithChangedRoot(newRoot, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (8)
19
/// should be performed synchronously or asynchronously. The <see cref="
ParsedDocument
"/> is then passed to a feature whose implementation is entirely synchronous.
20
/// In general, any feature API that accepts <see cref="
ParsedDocument
"/> should be synchronous and not access <see cref="Document"/> or <see cref="Solution"/> snapshots.
31
public static async ValueTask<
ParsedDocument
> CreateAsync(Document document, CancellationToken cancellationToken)
47
public
ParsedDocument
WithChangedText(SourceText text, CancellationToken cancellationToken)
53
public
ParsedDocument
WithChangedRoot(SyntaxNode root, CancellationToken cancellationToken)
59
public
ParsedDocument
WithChange(TextChange change, CancellationToken cancellationToken)
62
public
ParsedDocument
WithChanges(IEnumerable<TextChange> changes, CancellationToken cancellationToken)
68
public IEnumerable<TextChange> GetChanges(in
ParsedDocument
oldDocument)