SourceGeneratorContext.ReportDiagnostic(Diagnostic) 메서드

정의

사용자 컴파일에 a Diagnostic 추가

public void ReportDiagnostic (Microsoft.CodeAnalysis.Diagnostic diagnostic);
member this.ReportDiagnostic : Microsoft.CodeAnalysis.Diagnostic -> unit
Public Sub ReportDiagnostic (diagnostic As Diagnostic)

매개 변수

diagnostic
Diagnostic

컴파일에 추가해야 하는 진단

설명

진단의 심각도로 인해 설정에 따라 컴파일이 Compilation 실패할 수 있습니다.

적용 대상