Report(IEnumerable<IIntrospectionReference>, Severity, string, string)
Creates and reports diagnostics for a set of introspection references.
Declaration
public static IEnumerable<IIntrospectionDiagnostic> Report(this IEnumerable<IIntrospectionReference> references, Severity severity, string id, string message)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IIntrospectionReference> | references | The references to report diagnostics for. |
| Severity | severity | The severity of the diagnostics. |
| string | id | The diagnostic identifier. |
| string | message | The diagnostic message. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IIntrospectionDiagnostic> | An enumerable of diagnostics that were reported. |
Report(IEnumerable<IDeclaration>, Severity, string, string)
Creates and reports diagnostics for a set of declarations.
Declaration
public static IEnumerable<IIntrospectionDiagnostic> Report(this IEnumerable<IDeclaration> declarations, Severity severity, string id, string message)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IDeclaration> | declarations | The declarations to report diagnostics for. |
| Severity | severity | The severity of the diagnostics. |
| string | id | The diagnostic identifier. |
| string | message | The diagnostic message. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IIntrospectionDiagnostic> | An enumerable of diagnostics that were reported. |
Report(IEnumerable<IIntrospectionDiagnostic>)
Reports a collection of diagnostics using the configured ReportAction and updates the diagnostic counters.
Declaration
public static IEnumerable<IIntrospectionDiagnostic> Report(this IEnumerable<IIntrospectionDiagnostic> diagnostics)Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<IIntrospectionDiagnostic> | diagnostics | The diagnostics to report. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IIntrospectionDiagnostic> | A copy of the reported diagnostics. |