Base:
2 overrides of ToString
Microsoft.CodeAnalysis.CSharp (1)
Syntax\CSharpSyntaxTree.Dummy.cs (1)
28public override string ToString()
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\VisualBasicSyntaxTree.DummySyntaxTree.vb (1)
24Public Overrides Function ToString() As String
48 references to ToString
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CompilerFailedExceptionFactoryTest.cs (1)
58syntaxTree.ToString(),
Microsoft.CodeAnalysis (1)
Diagnostic\SourceLocation.cs (1)
130return base.GetDebuggerDisplay() + "\"" + _syntaxTree.ToString().Substring(_span.Start, _span.Length) + "\"";
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
PDB\PDBTests.cs (3)
76var hash1 = CryptographicHashProvider.ComputeSha1(Encoding.Unicode.GetBytesWithPreamble(tree1.ToString())).ToArray(); 77var hash3 = CryptographicHashProvider.ComputeSha1(new UTF8Encoding(true, false).GetBytesWithPreamble(tree3.ToString())).ToArray(); 78var hash4 = CryptographicHashProvider.ComputeSha1(new UTF8Encoding(false, false).GetBytesWithPreamble(tree4.ToString())).ToArray();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
SourceGeneration\GeneratorDriverTests.cs (12)
2163AssertEx.EqualOrDiff(generatedContent, generatedTree.ToString()); 2224AssertEx.EqualOrDiff(generatedContent[i], trees[i].ToString()); 2367AssertEx.EqualOrDiff(generatedContent[i], trees[i].ToString()); 4316Assert.Equal("class Compilation1{} //generator1", result.GeneratedTrees[0].ToString()); 4317Assert.Equal("class Compilation1{} //generator2", result.GeneratedTrees[1].ToString()); 4326Assert.Equal("class Compilation2{} //generator1", result.GeneratedTrees[0].ToString()); 4327Assert.Equal("class Compilation1{} //generator2", result.GeneratedTrees[1].ToString()); 4335Assert.Equal("class Compilation2{} //generator1", result.GeneratedTrees[0].ToString()); 4336Assert.Equal("class Compilation3{} //generator2", result.GeneratedTrees[1].ToString()); 4344Assert.Equal("class Compilation4{} //generator1", result.GeneratedTrees[0].ToString()); 4345Assert.Equal("class Compilation4{} //generator2", result.GeneratedTrees[1].ToString()); 4386Assert.Equal("class Compilation1{} //generator1", result.GeneratedTrees[0].ToString());
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
1461var newLastTree = CSharpSyntaxTree.ParseText(lastTree.ToString(), parseOptions);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Syntax\SyntaxTreeTests.cs (6)
292Assert.Equal(oldTree.ToString(), newTree.ToString()); 308Assert.Equal(oldTree.ToString(), newTree.ToString()); 321Assert.Equal(oldTree.ToString(), newTree.ToString());
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (3)
PDB\PDBTests.vb (3)
53Dim hash1 = CryptographicHashProvider.ComputeSha1(Encoding.Unicode.GetBytesWithPreamble(tree1.ToString())).ToArray() 54Dim hash3 = CryptographicHashProvider.ComputeSha1(New UTF8Encoding(True, False).GetBytesWithPreamble(tree3.ToString())).ToArray() 55Dim hash4 = CryptographicHashProvider.ComputeSha1(New UTF8Encoding(False, False).GetBytesWithPreamble(tree4.ToString())).ToArray()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Binding\Binder_Expressions_Tests.vb (1)
82Dim result = VisualBasicSyntaxTree.ParseText(source).ToString()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
DocumentationComments\DocCommentTests.vb (10)
6676Dim text = tree.ToString() 6807Dim position = syntaxTree.ToString().IndexOf("(Of U)", StringComparison.Ordinal) 6986Dim text = tree.ToString() 7045Dim text = tree.ToString() 7104Dim text = tree.ToString() 7166Dim text = tree.ToString() 7228Dim text = tree.ToString() 7283Dim text = tree.ToString() 7331Dim text = tree.ToString() 7383Dim text = tree.ToString()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (8)
Parser\ParseErrorTests.vb (1)
4765Assert.Equal(source, tree.ToString())
Syntax\ManualTests.vb (1)
83Assert.Equal(input, node.ToString())
Syntax\SyntaxTreeTests.vb (6)
157Assert.Equal(oldTree.ToString(), newTree.ToString()) 171Assert.Equal(oldTree.ToString(), newTree.ToString()) 183Assert.Equal(oldTree.ToString(), newTree.ToString())
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
3926Assert.Equal("", syntaxTree.ToString());
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
EnumValidationTests.cs (1)
311string output = outputCompilation.SyntaxTrees.Skip(2).First().ToString();