6 references to GetLocation
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
655
var diagnostic = Diagnostic.Create(s_removeUnnecessarySuppressionDescriptor, pragma.
GetLocation
(), severity, additionalLocations, properties: null);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Diagnostics\Suppression\SuppressionTests.cs (1)
1108
context.ReportDiagnostic(Diagnostic.Create(Descriptor, trivia.
GetLocation
()));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxNodeTests.cs (1)
2087
var triviaLocation = method.ReturnType.GetLastToken().TrailingTrivia[0].
GetLocation
();
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
213
context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_rule, comment.
GetLocation
(), messageArgs: comment.ToFullString()));
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (2)
137
Me._diagnostics.Add(ERRID.WRN_XMLDocInsideMethod, trivia.
GetLocation
())
168
Me._diagnostics.Add(ERRID.WRN_XMLDocWithoutLanguageElement, trivia.
GetLocation
())