9 references to First
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1624SyntaxTrivia trivia = leadingTrivia.First();
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
230var firstTrivia = multilineCommentTrivia.First();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Syntax\SyntaxNodeTests.cs (2)
3535Assert.Equal(" ", node.GetLeadingTrivia().First().ToString()); 3546Assert.Equal(" ", node.GetLeadingTrivia().First().ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (1)
230var firstTrivia = multilineCommentTrivia.First();
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
24Dim trivia = trailing.First()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Syntax\ManualTests.vb (2)
109Assert.Equal(" ", node.GetLeadingTrivia().First().ToString()) 119Assert.Equal(" ", node.GetLeadingTrivia().First().ToString())
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
24Dim trivia = trailing.First()