14 references to ElementAt
Microsoft.CodeAnalysis.CSharp (2)
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
623SyntaxTrivia trivia = leadingTrivia.ElementAt(0);
Syntax\SyntaxNormalizer.cs (1)
67GetDeclarationDepth((SyntaxToken)trivia.ElementAt(0).Token),
Microsoft.CodeAnalysis.CSharp.Features (2)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
351&& firstTextToken.LeadingTrivia.ElementAt(0).Kind() == SyntaxKind.DocumentationCommentExteriorTrivia 352&& firstTextToken.LeadingTrivia.ElementAt(0).ToString() == ExteriorTriviaText
Microsoft.CodeAnalysis.Features (2)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Pragma.cs (2)
188var triviaToToggle = triviaList.ElementAt(indexOfTriviaToRemoveOrToggle); 207var trivia = _suppressionTargetInfo.StartToken.LeadingTrivia.ElementAt(indexOfPragma);
Microsoft.CodeAnalysis.UnitTests (4)
CommonSyntaxTests.cs (4)
116var csharpTrivia = csharpTriviaList.ElementAt(1); 142var csharpTrivia3 = csharpTriviaList2.ElementAt(1); //from converted list 153var vbTrivia = vbTriviaList.ElementAt(1); 179var vbTrivia3 = vbTriviaList2.ElementAt(1); //from converted list
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\VisualBasic\Portable\Formatting\Engine\Trivia\VisualBasicTriviaFormatter.vb (1)
298Return singlelineDocCommentTrivia.ElementAt(0)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
DocumentationComments\VisualBasicDocumentationCommentSnippetService.vb (2)
177firstTextToken.LeadingTrivia.ElementAt(0).Kind = SyntaxKind.DocumentationCommentExteriorTrivia AndAlso 178firstTextToken.LeadingTrivia.ElementAt(0).ToString() = "'''" AndAlso
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Formatting\Engine\Trivia\VisualBasicTriviaFormatter.vb (1)
298Return singlelineDocCommentTrivia.ElementAt(0)