Base:
40 references to ToString
Microsoft.CodeAnalysis (5)
Syntax\SyntaxDiffer.cs (4)
433var text1 = node1.ToString(); 434var text2 = node2.ToString(); 481_tokenTextSimilaritySet.Add(n1.ToString()); 494var tokenText = n2.ToString();
Syntax\SyntaxNodeOrToken.cs (1)
68return GetType().Name + " " + KindText + " " + ToString();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\TopLevelStatementsTests.cs (2)
8810Assert.Equal(node1.ToString(), node2.ToString());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
LexicalAndXml\XmlDocCommentTests.cs (11)
771Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[0].ToString()); 772Assert.Equal(" bar", textsyntax.ChildNodesAndTokens()[1].ToString()); 773Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[2].ToString()); 774Assert.Equal(" ", textsyntax.ChildNodesAndTokens()[3].ToString()); 805Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[0].ToString()); 806Assert.Equal(" bar", textsyntax.ChildNodesAndTokens()[1].ToString()); 807Assert.Equal(Environment.NewLine, textsyntax.ChildNodesAndTokens()[2].ToString()); 808Assert.Equal(" ", textsyntax.ChildNodesAndTokens()[3].ToString()); 1655Assert.Equal(Environment.NewLine, xmltext.ChildNodesAndTokens()[0].ToString()); 1658Assert.Equal("x", xmltext.ChildNodesAndTokens()[1].ToString()); 1661Assert.Equal(Environment.NewLine, xmltext.ChildNodesAndTokens()[2].ToString());
Parsing\ParsingTests.cs (2)
211Assert.Equal(current.ToString(), value); 312var value = node.ToString().Replace("\"", "\\\"");
Syntax\SyntaxListTests.cs (2)
336_ = child.ToString(); 360_ = child.ToString();
Syntax\SyntaxNodeTests.cs (2)
3519Assert.Equal("class A { }", nodeOrToken.ToString()); 3520Assert.Equal(text, nodeOrToken.ToString());
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
248context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, nodeOrToken.GetLocation(), messageArgs: nodeOrToken.ToString()));
Microsoft.CodeAnalysis.UnitTests (4)
CommonSyntaxTests.cs (4)
55Assert.Equal("", d.ToString()); 72Assert.Equal("", d.ToString()); 84Assert.Equal("test", nodeOrToken.ToString()); 100Assert.Equal("test", nodeOrToken.ToString());
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (11)
TestSyntaxNodes.vb (11)
100ItemList.Add(VB1.Current.ToString) 105ItemListRev.Add(i.ToString) 137Assert.Equal(ItemList.Item((ItemList.Count - 1)), children.Last.ToString) 635Assert.Equal(",", sepList.GetWithSeparators(1).ToString) 636Assert.Equal(";", sepList.GetWithSeparators(3).ToString) 659Assert.Equal(",", sepList.GetWithSeparators(1).ToString) 660Assert.Equal(";", sepList.GetWithSeparators(3).ToString) 2005Assert.Equal("Dim yyyy", tk_nonzero1.ToString) 2008Assert.Equal("End Module", tk_nonzero2.ToString) 2020Assert.Equal("Dim", tk0.ToString) 2027Assert.Equal("dim xxxx", tk_nonzero1.ToString)