10 references to GetLocation
Microsoft.CodeAnalysis.CodeStyle (2)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
645additionalLocations = ImmutableArray.Create(togglePragma.GetLocation()); 652var diagnostic = Diagnostic.Create(s_removeUnnecessarySuppressionDescriptor, pragma.GetLocation(), severity, additionalLocations, properties: null);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Diagnostics\Suppression\SuppressionTests.cs (1)
1111context.ReportDiagnostic(Diagnostic.Create(Descriptor, trivia.GetLocation()));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
2053var triviaLocation = method.ReturnType.GetLastToken().TrailingTrivia[0].GetLocation();
Microsoft.CodeAnalysis.Features (2)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (2)
645additionalLocations = ImmutableArray.Create(togglePragma.GetLocation()); 652var diagnostic = Diagnostic.Create(s_removeUnnecessarySuppressionDescriptor, pragma.GetLocation(), severity, additionalLocations, properties: null);
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
213context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, comment.GetLocation(), messageArgs: comment.ToFullString()));
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (2)
137Me._diagnostics.Add(ERRID.WRN_XMLDocInsideMethod, trivia.GetLocation()) 168Me._diagnostics.Add(ERRID.WRN_XMLDocWithoutLanguageElement, trivia.GetLocation())
Microsoft.CodeAnalysis.VisualBasic.Features (1)
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
167Return lastBannerText.GetLocation().GetLineSpan().StartLinePosition.Line + 1