IRewriteStep.Diagnostic Struct

Definition

public struct IRewriteStep.Diagnostic
type IRewriteStep.Diagnostic = struct
Public Structure IRewriteStep.Diagnostic
Inheritance
IRewriteStep.Diagnostic

Properties

Message

Diagnostic message to be displayed to the user.

Range

Zero-based range in the source file of the code that caused the generation of the diagnostic. The range is null if the diagnostic is not caused by a piece of source code.

Severity

Indicates the severity of the diagnostic. Generated diagnostics may be prioritized and filtered according to their severity.

Source

Absolute path of the file where the code that caused the generation of the diagnostic is located. The source is null if the diagnostic is not caused by a piece of source code.

Stage

The stage during which the diagnostic was generated. The stage is set to Unknown if no stage is specified.

Methods

Create(Diagnostic, IRewriteStep+Stage)

Initializes a new diagnostic. If a diagnostic generated by the Q# compiler is given as argument, the values are initialized accordingly.

Applies to