public static void AnalyzeCompilation(CompilationAnalysisContext context)
            {
                var diagnostics = context.Compilation.GetDeclarationDiagnosticsIncludingSuppressions(cancellationToken: context.CancellationToken);

                ReportDiagnostics(diagnostics, context.ReportDiagnostic, location => !IsSourceLocation(location), s_declaration);
            }
Exemple #2
0
            public static void AnalyzeCompilation(CompilationAnalysisContext context)
            {
                ImmutableArray <Diagnostic> diagnostics = context.Compilation.GetDeclarationDiagnostics(cancellationToken: context.CancellationToken);

                ReportDiagnostics(diagnostics, context.ReportDiagnostic, location => !IsSourceLocation(location), s_declaration);
            }