Utilities for reporting validation output.
More...
|
| 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.
|
Utilities for reporting validation output.
- Author
- Peter Donovan
◆ messageOf()
| String org.lflang.generator.DiagnosticReporting.messageOf |
( |
String | message, |
|
|
Path | path, |
|
|
Position | position ) |
|
static |
Format the given data as a human-readable message.
- Parameters
-
| message | An error message. |
| path | The path of the source of the message. |
| position | The 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
-
| severity | The 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