IRewriteStep.Diagnostic.Create(Diagnostic, IRewriteStep+Stage) 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.
Initializes a new diagnostic. If a diagnostic generated by the Q# compiler is given as argument, the values are initialized accordingly.
public static Microsoft.Quantum.QsCompiler.IRewriteStep.Diagnostic Create (Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic? d = default, Microsoft.Quantum.QsCompiler.IRewriteStep.Stage stage = Microsoft.Quantum.QsCompiler.IRewriteStep+Stage.Unknown);
static member Create : Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic * Microsoft.Quantum.QsCompiler.IRewriteStep.Stage -> Microsoft.Quantum.QsCompiler.IRewriteStep.Diagnostic
Public Shared Function Create (Optional d As Diagnostic = Nothing, Optional stage As IRewriteStep.Stage = Microsoft.Quantum.QsCompiler.IRewriteStep+Stage.Unknown) As IRewriteStep.Diagnostic
Parameters
- stage
- IRewriteStep.Stage