11 overrides of TryGetText
Microsoft.CodeAnalysis.CSharp (3)
Syntax\CSharpSyntaxTree.Dummy.cs (1)
38public override bool TryGetText(out SourceText text)
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (1)
49public override bool TryGetText([NotNullWhen(true)] out SourceText? text)
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (1)
72public override bool TryGetText([NotNullWhen(true)] out SourceText? text)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
978public override bool TryGetText(out SourceText text)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\Mocks\MockCSharpSyntaxTree.cs (1)
37public override bool TryGetText(out SourceText text)
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (1)
55public override bool TryGetText([NotNullWhen(true)] out SourceText? text)
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (1)
32Public Overrides Function TryGetText(ByRef text As SourceText) As Boolean
Syntax\VisualBasicSyntaxTree.LazySyntaxTree.vb (1)
55Public Overrides Function TryGetText(ByRef text As SourceText) As Boolean
Syntax\VisualBasicSyntaxTree.ParsedSyntaxTree.vb (1)
84Public Overrides Function TryGetText(ByRef text As SourceText) As Boolean
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
ParserTestUtilities.vb (1)
523Public Overrides Function TryGetText(ByRef text As SourceText) As Boolean
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Workspace\LanguageServices\VisualBasicSyntaxTreeFactoryService.ParsedSyntaxTree.vb (1)
50Public Overrides Function TryGetText(<Out> ByRef text As SourceText) As Boolean
11 references to TryGetText
Microsoft.CodeAnalysis (1)
Syntax\SyntaxTree.cs (1)
121return Task.FromResult(this.TryGetText(out SourceText? text) ? text : this.GetText(cancellationToken));
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
21if (root.SyntaxTree == null || !root.SyntaxTree.TryGetText(out var text))
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxTree.cs (1)
537if (this.TryGetText(out SourceText? oldText))
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
300if (tree != null && tree.TryGetText(out var text))
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DeclarationTests.cs (1)
980return _underlyingTree.TryGetText(out text);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\FormattingRangeHelper.cs (1)
300if (tree != null && tree.TryGetText(out var text))
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxTree.vb (1)
103If Me.TryGetText(oldText) Then
Microsoft.CodeAnalysis.Workspaces (3)
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
38return (root.SyntaxTree != null && root.SyntaxTree.TryGetText(out var oldText))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.cs (1)
21if (root.SyntaxTree == null || !root.SyntaxTree.TryGetText(out var text))
Workspace\Solution\DocumentState_LinkedFileReuse.cs (1)
153siblingTree.TryGetText(out var lazyText);
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
3199Assert.False(tree2.TryGetText(out _));