Implementation of Diagnostic interface from Language Server Protocol

DO NOT add new properties or methods to this class that are specific to Moonshine IDE or to a particular language. Create a subclass for new properties or create a utility function for methods.

See also:

Static methods

staticparse(original:Dynamic):Diagnostic

Constructor

new()

Variables

code:String

The diagnostic's code, which might appear in the user interface.

message:String

The diagnostic's message.

range:Range

The range at which the message applies.

severity:DiagnosticSeverity

The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.