다음을 통해 공유


CSharpCompilation.GetParseDiagnostics(CancellationToken) Method

Definition

Gets the diagnostics produced during the parsing stage of a compilation. There are no diagnostics for declarations or accessor or method bodies, for example.

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

Parameters

cancellationToken
CancellationToken

Returns

Applies to