3 instantiations of ParsedDocument
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (3)
35return new ParsedDocument(document.Id, text, root, document.Project.GetExtendedLanguageServices()); 50return new ParsedDocument(Id, text, root, HostLanguageServices); 56return new ParsedDocument(Id, text, root, HostLanguageServices);
21 references to ParsedDocument
Microsoft.CodeAnalysis.CodeStyle.Fixes (21)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (3)
36ParsedDocument document, TextSpan selectionRaw, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode 157ParsedDocument document, 516ParsedDocument document,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringHelpers.cs (1)
104public static TextSpan GetTrimmedTextSpan(ParsedDocument document, TextSpan span)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\IRefactoringHelpersService.cs (1)
57ParsedDocument 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)
15bool ShouldFormatOnTypedCharacter(ParsedDocument document, char typedChar, int caretPosition, CancellationToken cancellationToken); 16ImmutableArray<TextChange> GetFormattingChangesOnTypedCharacter(ParsedDocument document, int caretPosition, IndentationOptions indentationOptions, CancellationToken cancellationToken); 17ImmutableArray<TextChange> GetFormattingChangesOnPaste(ParsedDocument document, TextSpan textSpan, SyntaxFormattingOptions options, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (2)
17ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken) 39private Indenter GetIndenter(ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (3)
20IndentationResult GetIndentation(ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken); 29public static string GetPreferredIndentation(this SyntaxToken token, ParsedDocument document, IndentationOptions options, CancellationToken cancellationToken) 53var 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. 31public static async ValueTask<ParsedDocument> CreateAsync(Document document, CancellationToken cancellationToken) 47public ParsedDocument WithChangedText(SourceText text, CancellationToken cancellationToken) 53public ParsedDocument WithChangedRoot(SyntaxNode root, CancellationToken cancellationToken) 59public ParsedDocument WithChange(TextChange change, CancellationToken cancellationToken) 62public ParsedDocument WithChanges(IEnumerable<TextChange> changes, CancellationToken cancellationToken) 68public IEnumerable<TextChange> GetChanges(in ParsedDocument oldDocument)