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