29 references to First
Microsoft.CodeAnalysis.CodeStyle (2)
src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (2)
82context.Tree.GetLocation(TextSpan.FromBounds(modifiers.First().SpanStart, modifiers.Last().Span.End)), 93DiagnosticHelper.Create(Descriptor, modifiers.First().GetLocation(), notificationOption, context.Options, additionalLocations: null, properties: null));
Microsoft.CodeAnalysis.CSharp (1)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (1)
60startPos = startOpt.First().SpanStart;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
599: p.Modifiers.First().LeadingTrivia);
Microsoft.CodeAnalysis.CSharp.Features (4)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (1)
284var firstTextToken = textTokens.First();
EditAndContinue\BreakpointSpans.cs (1)
128startPos = startOpt.First().SpanStart;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1940=> TextSpan.FromBounds((modifiers.Count != 0) ? modifiers.First().SpanStart : start.SpanStart, end.Span.End);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
599: p.Modifiers.First().LeadingTrivia);
Microsoft.CodeAnalysis.Features (2)
src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (2)
82context.Tree.GetLocation(TextSpan.FromBounds(modifiers.First().SpanStart, modifiers.Last().Span.End)), 93DiagnosticHelper.Create(Descriptor, modifiers.First().GetLocation(), notificationOption, context.Options, additionalLocations: null, properties: null));
Microsoft.CodeAnalysis.VisualBasic (1)
Binding\Binder_Utils.vb (1)
1213Dim containingTypeBLock = GetContainingTypeBlock(modifierList.First())
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Utilities\NavigationPointHelpers.vb (1)
44Return methodBlock.BlockStatement.Modifiers.First().SpanStart
Microsoft.CodeAnalysis.VisualBasic.Features (12)
DocumentationComments\VisualBasicDocumentationCommentSnippetService.vb (2)
167Dim firstTextToken = firstXmlText.TextTokens.First() 172existingCommentText = firstXmlText.TextTokens.First().ValueText
EditAndContinue\BreakpointSpans.vb (1)
240Return TextSpan.FromBounds(methodBase.Modifiers.First().SpanStart, methodBase.Span.End)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
1334Return TextSpan.FromBounds(If(modifiers.Count <> 0, modifiers.First.SpanStart, start.SpanStart), 1343startToken = header.Modifiers.First 1403Dim startToken = If(lambda.Modifiers.Count <> 0, lambda.Modifiers.First, lambda.DeclarationKeyword)
Highlighting\KeywordHighlighters\AccessorDeclarationHighlighter.vb (1)
38Dim firstKeyword = If(.Modifiers.Count > 0, .Modifiers.First(), .DeclarationKeyword)
Highlighting\KeywordHighlighters\ConstructorDeclarationHighlighter.vb (1)
30Dim firstKeyword = If(.Modifiers.Count > 0, .Modifiers.First(), .DeclarationKeyword)
Highlighting\KeywordHighlighters\EventDeclarationHighlighter.vb (1)
31Dim firstKeyword = If(.Modifiers.Count > 0, .Modifiers.First(), .DeclarationKeyword)
Highlighting\KeywordHighlighters\MethodDeclarationHighlighter.vb (1)
36Dim firstKeyword = If(.Modifiers.Count > 0, .Modifiers.First(), .DeclarationKeyword)
Highlighting\KeywordHighlighters\OperatorDeclarationHighlighter.vb (1)
30Dim firstKeyword = If(.Modifiers.Count > 0, .Modifiers.First(), .DeclarationKeyword)
Highlighting\KeywordHighlighters\PropertyDeclarationHighlighter.vb (1)
31Dim firstKeyword = If(.Modifiers.Count > 0, .Modifiers.First(), .DeclarationKeyword)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CodeCleanup\Providers\FixIncorrectTokensCodeCleanupProvider.vb (1)
236If skippedTokens.Count = 1 AndAlso skippedTokens.First.Kind = SyntaxKind.EndIfKeyword Then
Microsoft.VisualStudio.LanguageServices.VisualBasic (4)
CodeModel\VisualBasicCodeModelService.NodeLocator.vb (4)
286Return typeBlock.BlockStatement.Modifiers.First().SpanStart 294Return enumBlock.EnumStatement.Modifiers.First().SpanStart 1090startPosition = fieldDeclaration.Modifiers.First().SpanStart 1196startPosition = parameter.Modifiers.First().SpanStart