DiagnosticTools.WarningType(WarningCode[]) 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 WarningType(WarningCode[]) of the
given Diagnostic exists in types.
public static Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic,bool> WarningType (params Microsoft.Quantum.QsCompiler.Diagnostics.WarningCode[] types);
static member WarningType : Microsoft.Quantum.QsCompiler.Diagnostics.WarningCode[] -> Func<Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic, bool>
Public Function WarningType (ParamArray types As WarningCode()) As Func(Of Diagnostic, Boolean)
Parameters
- types
- WarningCode[]