7 references to DeclaringSyntaxReferences
Microsoft.CodeAnalysis (7)
DiagnosticAnalyzer\AnalysisScope.cs (2)
216
return symbolEvent.Symbol.IsImplicitlyDeclared || symbolEvent.
DeclaringSyntaxReferences
.All(s => s.SyntaxTree == null);
252
foreach (var syntaxRef in symbolEvent.
DeclaringSyntaxReferences
)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
2512
var declaringReferences = symbolEvent.
DeclaringSyntaxReferences
;
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
373
var addDiagnostic = GetAddDiagnostic(symbol, symbolDeclaredEvent.
DeclaringSyntaxReferences
, analyzer, getTopMostNodeForAnalysis, cancellationToken);
478
var addDiagnostic = GetAddDiagnostic(symbol, symbolDeclaredEvent.
DeclaringSyntaxReferences
, analyzer, getTopMostNodeForAnalysis, cancellationToken);
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (2)
53
var loc =
DeclaringSyntaxReferences
.Length != 0 ? " @ " + string.Join(", ", System.Linq.Enumerable.Select(
DeclaringSyntaxReferences
, r => r.GetLocation().GetLineSpan())) : null;