lingua-franca 0.10.1
Lingua Franca code generator
Loading...
Searching...
No Matches
org.lflang.generator.DiagnosticReporting Class Reference

Utilities for reporting validation output. More...

Classes

interface  Strategy
 A means of parsing the output of a validator. More...

Static Public Member Functions

static String messageOf (String message, Path path, Position position)
 Format the given data as a human-readable message.
static DiagnosticSeverity severityOf (String severity)
 Convert severity into a DiagnosticSeverity using a heuristic that should be compatible with many tools.

Detailed Description

Utilities for reporting validation output.

Author
Peter Donovan

Member Function Documentation

◆ messageOf()

String org.lflang.generator.DiagnosticReporting.messageOf ( String message,
Path path,
Position position )
static

Format the given data as a human-readable message.

Parameters
messageAn error message.
pathThe path of the source of the message.
positionThe position where the message originates.
Returns
The given data as a human-readable message.

◆ severityOf()

DiagnosticSeverity org.lflang.generator.DiagnosticReporting.severityOf ( String severity)
static

Convert severity into a DiagnosticSeverity using a heuristic that should be compatible with many tools.

Parameters
severityThe string representation of a diagnostic severity.
Returns
The DiagnosticSeverity representation of severity.

The documentation for this class was generated from the following file:
  • /Users/runner/work/lingua-franca/lingua-franca/core/src/main/java/org/lflang/generator/DiagnosticReporting.java