154 references to ToFullString
Microsoft.CodeAnalysis (1)
Syntax\SyntaxToken.cs (1)
691
/// new tree. In this case, the <see cref="SyntaxToken.
ToFullString
()"/> of each token will be the same, though
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
40
if (currentToken.
ToFullString
().IndexOf('\n') >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
195
builder.Append(token.
ToFullString
());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\IndexAndRangeTests.cs (2)
919
Assert.Equal("^", expression.OperatorToken.
ToFullString
());
940
Assert.Equal("^", expression.OperatorToken.
ToFullString
());
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (36)
LexicalAndXml\LexicalTests.cs (26)
109
Assert.Equal(text, token.
ToFullString
());
128
Assert.Equal(text, token.
ToFullString
());
147
Assert.Equal(text, token.
ToFullString
());
166
Assert.Equal(text, token.
ToFullString
());
188
Assert.Equal(text, token.
ToFullString
());
210
Assert.Equal(text, token.
ToFullString
());
232
Assert.Equal(text, token.
ToFullString
());
250
Assert.Equal(text, token.
ToFullString
());
270
Assert.Equal(text, token.
ToFullString
());
294
Assert.Equal(text, token.
ToFullString
());
318
Assert.Equal(text, token.
ToFullString
());
338
Assert.Equal(text, token.
ToFullString
());
360
Assert.Equal(text, token.
ToFullString
());
382
Assert.Equal(text, token.
ToFullString
());
404
Assert.Equal(text, token.
ToFullString
());
425
Assert.Equal(text, token.
ToFullString
());
452
Assert.Equal(text, token.
ToFullString
());
495
""", token.
ToFullString
());
541
Assert.Equal(text, token.
ToFullString
());
571
""", token.
ToFullString
());
581
Assert.Equal("#endif", token.
ToFullString
());
597
Assert.Equal(text, token.
ToFullString
());
823
Assert.Equal(text, token.
ToFullString
());
1664
Assert.Equal(text, token.
ToFullString
());
1680
Assert.Equal(text, token.
ToFullString
());
1696
Assert.Equal(text, token.
ToFullString
());
LexicalAndXml\PreprocessorTests.cs (1)
200
Assert.Equal(exp.Text, ((ErrorDirectiveTriviaSyntax)dt).EndOfDirectiveToken.
ToFullString
());
LexicalAndXml\RawStringLiteralLexingTests.cs (1)
193
Assert.Equal(input, token.
ToFullString
());
LexicalAndXml\SyntaxTokenParserTests.cs (1)
411
AssertEx.Equal(expectedText.NormalizeLineEndings(), result.Token.
ToFullString
());
Parsing\ParsingErrorRecoveryTests.cs (2)
3558
Assert.Equal("", ie.ArgumentList.CloseParenToken.
ToFullString
());
3559
Assert.Equal("\t\t\t} ", md.Body.CloseBraceToken.
ToFullString
());
Syntax\StructuredTriviaTests.cs (1)
69
Assert.Equal(" <goo> </goo> banana ", ident.
ToFullString
());
Syntax\SyntaxNodeTests.cs (3)
2459
Assert.Equal("a ", id2.
ToFullString
());
2471
Assert.Equal("a ", id2.
ToFullString
());
3528
Assert.Equal("class ", token.
ToFullString
());
Syntax\SyntaxNormalizerTests.cs (1)
3555
var actual = token.NormalizeWhitespace().
ToFullString
();
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (111)
Parser\ParseAttributes.vb (1)
82
Assert.Equal(":", attrList.GreaterThanToken.
ToFullString
) ' ":" is trivia on the missing greater than
Scanner\ScannerTests.vb (93)
696
Assert.Equal("", tk.
ToFullString
())
700
Assert.Equal(" ", tk.
ToFullString
())
704
Assert.Equal(" ", tk.
ToFullString
())
709
Assert.Equal("'", tk.
ToFullString
())
714
Assert.Equal("'", tk.
ToFullString
())
722
Assert.Equal(" ' ", tk.
ToFullString
())
730
Assert.Equal(" ' ", tk.
ToFullString
())
737
Assert.Equal(vbCr, tk.
ToFullString
())
741
Assert.Equal(vbCr, tk.
ToFullString
())
767
Assert.Equal(vbCr, tk.
ToFullString
())
771
Assert.Equal(" " & vbLf, tk.
ToFullString
())
776
Assert.Equal(str, tk.
ToFullString
())
781
Assert.Equal(str, tk.
ToFullString
())
786
Assert.Equal("'" & vbCrLf, tk.
ToFullString
())
791
Assert.Equal(str, tk.
ToFullString
())
796
Assert.Equal(str, tk.
ToFullString
())
803
Assert.Equal("_", tk.
ToFullString
())
807
Assert.Equal(" _", tk.
ToFullString
())
811
Assert.Equal(" _ ", tk.
ToFullString
())
815
Assert.Equal(" _'", tk.
ToFullString
())
824
Assert.Equal(" _'", tk.
ToFullString
())
833
Assert.Equal(" _' Comment", tk.
ToFullString
())
846
Assert.Equal(" _' Comment", tk.
ToFullString
())
855
Assert.Equal(" _ ' Comment" & vbCrLf, tk.
ToFullString
())
866
Assert.Equal(" _ rem", tk.
ToFullString
())
871
Assert.Equal(" _ ", tk.
ToFullString
())
881
Assert.Equal("_" & vbLf, tk.
ToFullString
())
885
Assert.Equal(" _" & vbLf, tk.
ToFullString
())
890
Assert.Equal(str, tk.
ToFullString
())
895
Assert.Equal(str, tk.
ToFullString
())
905
Assert.Equal("_" + vbLf, tk.
ToFullString
)
910
Assert.Equal("'_" & vbCrLf, tk.
ToFullString
())
915
Assert.Equal(Str, tk.
ToFullString
())
921
Assert.Equal(" _" & vbCrLf & "(", tk.
ToFullString
())
927
Assert.Equal(" _" & vbCrLf & "(" & " _" & vbCrLf, tk.
ToFullString
())
936
Assert.Equal(str, tk.
ToFullString
())
941
Assert.Equal(str, tk.
ToFullString
())
959
Assert.Equal(str, tk.
ToFullString
())
964
Assert.Equal("ReM" & vbCrLf, tk.
ToFullString
())
969
Assert.Equal(str, tk.
ToFullString
())
974
Assert.Equal(str, tk.
ToFullString
())
1057
Assert.Equal(" " & vbCrLf & " " & vbCr & "DIM " + vbLf, tk.
ToFullString
)
1062
Assert.Equal("Dim", tk.
ToFullString
())
1067
Assert.Equal("DiM" + vbCrLf, tk.
ToFullString
)
1072
Assert.Equal("dIM" & " _" & vbCrLf, tk.
ToFullString
())
1090
Assert.Equal(" " & vbCrLf & " " & vbCr & "STATIC " & vbLf, tk.
ToFullString
())
1095
Assert.Equal("Static", tk.
ToFullString
())
1100
Assert.Equal("StatiC" & vbCrLf, tk.
ToFullString
())
1105
Assert.Equal("sTATIC" & " _" & vbCrLf, tk.
ToFullString
())
1123
Assert.Equal("End ", tk.
ToFullString
())
1130
Assert.Equal("As ", tk.
ToFullString
())
1137
Assert.Equal("If ", tk.
ToFullString
())
1145
Assert.Equal(Str, tk.
ToFullString
())
1150
Assert.Equal(Str, tk.
ToFullString
())
1158
Assert.Equal(Str, tk.
ToFullString
())
1171
Assert.Equal(Str, tk.
ToFullString
())
1176
Assert.Equal(Str, tk.
ToFullString
())
1181
Assert.Equal(Str, tk.
ToFullString
())
1279
Assert.Equal(Str, tk.
ToFullString
())
1285
Assert.Equal(Str, tk.
ToFullString
())
1292
Assert.Equal(Str, tk.
ToFullString
())
1298
Assert.Equal(Str, tk.
ToFullString
())
1305
Assert.Equal(Str, tk.
ToFullString
())
1327
Assert.Equal(Str, tk.
ToFullString
())
1333
Assert.Equal(Str, tk.
ToFullString
())
1339
Assert.Equal(Str, tk.
ToFullString
())
1345
Assert.Equal(Str, tk.
ToFullString
())
1374
Assert.Equal(" 42 ", tk.
ToFullString
())
1381
Assert.Equal(" 4_2 ", tk.
ToFullString
())
1389
Assert.Equal(" &H42L ", tk.
ToFullString
())
1396
Assert.Equal(" &H4_2L ", tk.
ToFullString
())
1403
Assert.Equal(" &H_1 ", tk.
ToFullString
())
1410
Assert.Equal(" &B_1 ", tk.
ToFullString
())
1417
Assert.Equal(" &O_1 ", tk.
ToFullString
())
1424
Assert.Equal(" &H__1_1L ", tk.
ToFullString
())
1431
Assert.Equal(" &B__1_1L ", tk.
ToFullString
())
1438
Assert.Equal(" &O__1_1L ", tk.
ToFullString
())
1452
Assert.Equal(" &B1010L ", tk.
ToFullString
())
1459
Assert.Equal(" &B1_0_1_0L ", tk.
ToFullString
())
1475
Assert.Equal(" 0.42 ", tk.
ToFullString
())
1482
Assert.Equal(" 0_0.4_2 ", tk.
ToFullString
())
1489
Assert.Equal(" 0.42# ", tk.
ToFullString
())
1496
Assert.Equal(" 0.42R ", tk.
ToFullString
())
1503
Assert.Equal(" 0.42! ", tk.
ToFullString
())
1510
Assert.Equal(" 0.42F ", tk.
ToFullString
())
1533
Assert.Equal(" 0.42@ ", tk.
ToFullString
())
1701
Assert.Equal("#10/10/0#", tk.
ToFullString
())
1849
Assert.Equal("[Goo123]", tk.
ToFullString
())
1856
Assert.Equal("[__]", tk.
ToFullString
())
1862
Assert.Equal("[Goo ", tk.
ToFullString
())
1868
Assert.Equal("[]", tk.
ToFullString
())
1874
Assert.Equal("[_]", tk.
ToFullString
())
1885
Assert.Equal("""Hello, World!""", tk.
ToFullString
())
Syntax\SyntaxFactsTest.vb (1)
1041
builder.Append(currentToken.
ToFullString
())
Syntax\SyntaxTokenFactoryTests.vb (3)
222
Assert.Equal("a ", id2.
ToFullString
())
223
Assert.Equal("a ", id.
ToFullString
())
233
Assert.Equal("a ", id2.
ToFullString
())
TestSyntaxNodes.vb (13)
705
Assert.Equal("+AAAB", tok.
ToFullString
())
732
Assert.Equal("CCCCDDAAA+B", tok.
ToFullString
())
846
Assert.Equal("ParTIAL", keyword.
ToFullString
())
854
Assert.Equal(" [goo]'hi", identifier.
ToFullString
())
1680
Assert.Equal("a ", id2.
ToFullString
())
1693
Assert.Equal("a ", id2.
ToFullString
())
1702
Assert.Equal(") ", tk.
ToFullString
())
1705
Assert.Equal("1", tk.
ToFullString
())
1708
Assert.Equal(" 1", tk.
ToFullString
())
1712
Assert.Equal(" 1 ", tk.
ToFullString
())
1801
Assert.Equal(" <goo> </ > banana ", ident.
ToFullString
())
1898
txt &= n.
ToFullString
()
1910
txt &= n.
ToFullString
()
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.Node.cs (1)
40
if (currentToken.
ToFullString
().IndexOf('\n') >= 0)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
195
builder.Append(token.
ToFullString
());