VisualBasicCompilation.GetMethodBodyDiagnostics(CancellationToken) Method

Definition

Get method body diagnostics for the entire compilation. This includes diagnostics only from the bodies of methods and initializers. These diagnostics are NOT cached, so calling this method a second time repeats significant work.

public override System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> GetMethodBodyDiagnostics (System.Threading.CancellationToken cancellationToken = default);
override this.GetMethodBodyDiagnostics : System.Threading.CancellationToken -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>
Public Overrides Function GetMethodBodyDiagnostics (Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic)

Parameters

cancellationToken
CancellationToken

Cancellation token to allow cancelling the operation.

Returns

Applies to