2 overrides of WithChangedText
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxTree.cs (1)
535public override SyntaxTree WithChangedText(SourceText newText)
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxTree.vb (1)
101Public Overrides Function WithChangedText(newText As SourceText) As SyntaxTree
11 references to WithChangedText
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
49var root = SyntaxTree.WithChangedText(text).GetRoot(cancellationToken);
Microsoft.CodeAnalysis (4)
Syntax\SyntaxNode.cs (2)
354/// occurs when a <see cref="SyntaxTree"/> is incrementally parsed using <see cref="SyntaxTree.WithChangedText"/> 362/// from <see cref="SyntaxTree.WithChangedText"/>. This can happen as the parser is allowed to construct parse
Syntax\SyntaxToken.cs (2)
690/// occurs when a <see cref="SyntaxTree"/> is incrementally parsed using <see cref="SyntaxTree.WithChangedText"/> 698/// from <see cref="SyntaxTree.WithChangedText"/>. This can happen as the parser is allowed to construct parse
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
49var root = SyntaxTree.WithChangedText(text).GetRoot(cancellationToken);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
49var root = SyntaxTree.WithChangedText(text).GetRoot(cancellationToken);
Microsoft.CodeAnalysis.Workspaces (3)
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
39? root.SyntaxTree.WithChangedText(oldText.WithChanges(result.GetTextChanges(cancellationToken))).GetRootAsync(cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
49var root = SyntaxTree.WithChangedText(text).GetRoot(cancellationToken);
Workspace\Solution\DocumentState.cs (1)
243var newTree = oldTree.WithChangedText(newText);
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
49var root = SyntaxTree.WithChangedText(text).GetRoot(cancellationToken);