Base:
54 references to ToString
Microsoft.CodeAnalysis (1)
CodeGen\RawSequencePoint.cs (1)
32return string.Format("#{0}: {1}", ILMarker, Span == HiddenSequencePointSpan ? "hidden" : Span.ToString());
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
535value.Append(s.ToString());
Microsoft.CodeAnalysis.UnitTests (37)
Text\TextSpanTest.cs (37)
52Assert.True(s1.Equals(s2), s1.ToString() + " : " + s2.ToString()); 53Assert.True(s1 == s2, s1.ToString() + " : " + s2.ToString()); 54Assert.False(s1 != s2, s1.ToString() + " : " + s2.ToString()); 66Assert.False(s1.Equals(s2), s1.ToString() + " : " + s2.ToString()); 67Assert.False(s1 == s2, s1.ToString() + " : " + s2.ToString()); 68Assert.True(s1 != s2, s1.ToString() + " : " + s2.ToString()); 80Assert.False(s1.Equals(s2), s1.ToString() + " : " + s2.ToString()); 81Assert.False(s1 == s2, s1.ToString() + " : " + s2.ToString()); 82Assert.True(s1 != s2, s1.ToString() + " : " + s2.ToString()); 93Assert.Equal("[0..0)", span.ToString()); 104Assert.Equal("[0..1)", span.ToString()); 116Assert.Equal("[15..1500)", span.ToString()); 206Assert.True(span1 == span2, span1.ToString() + " : " + span2.ToString()); 207Assert.False(span1 != span2, span1.ToString() + " : " + span2.ToString()); 211Assert.True(span2 == span1, span2.ToString() + " : " + span1.ToString()); 212Assert.False(span2 != span1, span2.ToString() + " : " + span1.ToString()); 225Assert.True(span1 != span2, span1.ToString() + " : " + span2.ToString()); 226Assert.True(span1 != span3, span1.ToString() + " : " + span3.ToString()); 227Assert.True(span2 != span3, span2.ToString() + " : " + span3.ToString()); 228Assert.False(span1 == span2, span1.ToString() + " : " + span2.ToString());
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (13)
ParserTestUtilities.vb (13)
378Assert.False(node.IsMissing, "Unexpected missing node: " & node.Kind.ToString & node.Span.ToString) 388Assert.True(0 <> node.Span.Length OrElse node.Kind = SyntaxKind.CompilationUnit, "Unexpected 0 width node: " & node.Kind.ToString & node.Span.ToString) 454node.Kind.ToString & node.Span.ToString & 456node.Parent.Kind.ToString & node.Parent.Span.ToString & ")") 661.AppendLine("Actual Errors (on " & node.Kind().ToString & node.Span.ToString & ")") 778Assert.False(node.IsMissing, "Unexpected missing node: " & node.Kind().ToString & node.Span.ToString) 784Not node.IsKind(SyntaxKind.ColonToken), "Unexpected missing token: " & node.Kind().ToString & node.Span.ToString) 800Assert.True(0 <> node.Span.Length, "Unexpected 0 width node: " & node.Kind().ToString & node.Span.ToString) 805Assert.True(0 <> node.Span.Length OrElse node.IsKind(SyntaxKind.EndOfFileToken) OrElse node.IsKind(SyntaxKind.StatementTerminatorToken) OrElse node.IsKind(SyntaxKind.ColonToken), "Unexpected 0 width token: " & node.Kind().ToString & node.Span.ToString) 807Assert.True(0 <> tr.Span.Length, "Unexpected 0 width trivia: " & node.Kind().ToString & node.Span.ToString) 813Assert.True(0 <> tr.Span.Length, "Unexpected 0 width trivia: " & node.Kind().ToString & node.Span.ToString) 859node.Kind().ToString & node.Span.ToString & 861node.Parent.Kind.ToString & node.Parent.Span.ToString & ")")
Microsoft.CodeAnalysis.Workspaces (2)
CodeFixes\CodeFixContext.cs (1)
252throw new ArgumentException(string.Format(WorkspacesResources.Diagnostic_must_have_span_0, span.ToString()), nameof(diagnostics));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\NormalizedTextSpanCollection.cs (1)
535value.Append(s.ToString());