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