DiagnosticTools.ErrorType(ErrorCode[]) Method

Definition

Returns a function that returns true if the ErrorType(ErrorCode[]) of the given Diagnostic exists in types.

public static Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic,bool> ErrorType (params Microsoft.Quantum.QsCompiler.Diagnostics.ErrorCode[] types);
static member ErrorType : Microsoft.Quantum.QsCompiler.Diagnostics.ErrorCode[] -> Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic, bool>
Public Function ErrorType (ParamArray types As ErrorCode()) As Func(Of Diagnostic, Boolean)

Parameters

types
ErrorCode[]

Returns

Func<Diagnostic,Boolean>

Applies to