Diagnostic¶
-
public class
Diagnostic
¶ Represents a potential problem with part of the model.
Methods¶
fromProtobuf¶
-
public static Diagnostic
fromProtobuf
(APIClient client, Out.CocoDiagnostic inputValue)¶ Internal constructor
getCategory¶
-
public final io.cocotec.coco.platform.coco.DiagnosticCategory
getCategory
()¶ The category the diagnostic lies in.
getFixItHints¶
getHighlightRange¶
-
public final io.cocotec.coco.platform.coco.SourceRange
getHighlightRange
()¶ The range of the source file that should be highlighted to show the error.
getId¶
-
public final io.cocotec.coco.platform.coco.DiagnosticId
getId
()¶ The identity of this diagnostic.
getNode¶
getPosition¶
-
public final io.cocotec.coco.platform.coco.SourcePosition
getPosition
()¶ The erroneous node of the AST. This may not be valid if the AST has not yet been built.