DiagnosticTools.ErrorType(ErrorCode[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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[]