Note

You are not reading the most recent version of this documentation.

Diagnostic

class Cocotec.CocoPlatform.Coco.Diagnostic

Represents a potential problem with part of the model.

Properties

Cocotec.CocoPlatform.Coco.DiagnosticId Id { }

The identity of this diagnostic.

string Message { }

The diagnostic message.

Cocotec.CocoPlatform.Severity Severity { }

The severity of the diagnostic.

Cocotec.CocoPlatform.Coco.DiagnosticCategory Category { }

The category the diagnostic lies in.

Cocotec.CocoPlatform.Coco.Node Node { }

The erroneous node of the AST. This may not be valid if the AST has not yet been built.

Cocotec.CocoPlatform.Coco.SourcePosition Position { }

The erroneous node of the AST. This may not be valid if the AST has not yet been built.

Cocotec.CocoPlatform.Coco.SourceRange HighlightRange { }

The range of the source file that should be highlighted to show the error.

List<Cocotec.CocoPlatform.Coco.FixItHintFixItHints { }

Fixits for this diagnostic.