ReportDiagnostic<TDeclaration>(IQuery<TDeclaration>, Func<TDeclaration, IDiagnostic>)
Reports a diagnostic for each declaration selected by the query.
Declaration
public static void ReportDiagnostic<TDeclaration>(this IQuery<TDeclaration> query, Func<TDeclaration, IDiagnostic> diagnostic) where TDeclaration : class, IDeclarationParameters
| Type | Name | Description |
|---|---|---|
| IQuery<TDeclaration> | query | A query selecting the declarations for which to report diagnostics. |
| Func<TDeclaration, IDiagnostic> | diagnostic | A function that creates an IDiagnostic for each selected declaration. |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | The type of declaration in the query. |
ReportDiagnostic<TDeclaration, TTag>(ITaggedQuery<TDeclaration, TTag>, Func<TDeclaration, TTag, IDiagnostic>)
Reports a diagnostic for each declaration selected by the tagged query, with access to the tag value.
Declaration
public static void ReportDiagnostic<TDeclaration, TTag>(this ITaggedQuery<TDeclaration, TTag> query, Func<TDeclaration, TTag, IDiagnostic> diagnostic) where TDeclaration : class, IDeclarationParameters
| Type | Name | Description |
|---|---|---|
| ITaggedQuery<TDeclaration, TTag> | query | A tagged query selecting the declarations for which to report diagnostics. |
| Func<TDeclaration, TTag, IDiagnostic> | diagnostic | A function that creates an IDiagnostic for each selected declaration and its tag. |
Type Parameters
| Name | Description |
|---|---|
| TDeclaration | The type of declaration in the query. |
| TTag | The type of tag associated with each declaration. |