![]() |
lingua-franca 0.10.1
Lingua Franca code generator
|
Base implementation of the MessageReporter interface.
More...
Inherits org.lflang.MessageReporter.
Inherited by org.lflang.DefaultMessageReporter, org.lflang.cli.StandaloneMessageReporter, org.lflang.diagram.synthesis.util.SynthesisMessageReporter, org.lflang.federated.generator.SynchronizedMessageReporter, org.lflang.generator.LanguageServerMessageReporter, and org.lflang.validation.ValidatorMessageReporter.
Public Member Functions | |
| default Stage2 | at (Path file) |
| Position the message in the file (non-null), at an unknown line. | |
| default Stage2 | at (Path file, int line) |
| Position the message in the file (non-null), on the given line. | |
| default Stage2 | at (Path file, Position pos) |
| Position the message in the file, using a position object. | |
| Stage2 | at (EObject node) |
| Position the message on the given node (must be non-null). | |
| Stage2 | at (EObject node, EStructuralFeature feature) |
| Position the message on the given node and structural feature (both must be non-null). | |
| Stage2 | at (Path file, Range range) |
| Position the message on the given range in a given file (both must be non-null). | |
| default Stage2 | atNullableLine (Path file, Integer line) |
| Position the message in the given file. | |
| void | clearHistory () |
| Clear error history, if exists. | |
| boolean | getErrorsOccurred () |
| Check if errors where reported. | |
| Stage2 | nowhere () |
| Specify that the message has no relevant position, ie it does not belong to a particular file. | |
Protected Member Functions | |
| MessageReporterBase () | |
| abstract void | report (Path path, Range range, DiagnosticSeverity severity, String message) |
| Implementation of the reporting methods that use a path and range as position. | |
| void | reportOnNode (EObject node, DiagnosticSeverity severity, String message) |
| Implementation of the reporting methods that use a node as position. | |
| abstract void | reportOnNode (EObject node, EStructuralFeature feature, DiagnosticSeverity severity, String message) |
| abstract void | reportWithoutPosition (DiagnosticSeverity severity, String message) |
Implementation of the reporting methods for nowhere(). | |
| Stage2 | wrap (Stage2 e) |
| A wrapper that takes care of setting the error flag if needed. | |
Base implementation of the MessageReporter interface.
|
protected |
|
inherited |
Position the message in the file (non-null), at an unknown line.
Implementations usually will report on the first line of the file.
|
inherited |
Position the message in the file (non-null), on the given line.
Implemented in org.lflang.federated.generator.LineAdjustingMessageReporter, and org.lflang.generator.LanguageServerMessageReporter.
Position the message in the file, using a position object.
| Stage2 org.lflang.MessageReporterBase.at | ( | EObject | node | ) |
Position the message on the given node (must be non-null).
Implements org.lflang.MessageReporter.
| Stage2 org.lflang.MessageReporterBase.at | ( | EObject | node, |
| EStructuralFeature | feature ) |
Position the message on the given node and structural feature (both must be non-null).
Implements org.lflang.MessageReporter.
Position the message on the given range in a given file (both must be non-null).
Implements org.lflang.MessageReporter.
|
inherited |
Position the message in the given file.
The line may be null. This is a convenience wrapper that calls either at(Path, int) or at(Path).
| void org.lflang.MessageReporterBase.clearHistory | ( | ) |
Clear error history, if exists.
This is usually only the case for error markers in Epoch (Eclipse).
Implements org.lflang.MessageReporter.
| boolean org.lflang.MessageReporterBase.getErrorsOccurred | ( | ) |
Check if errors where reported.
Implements org.lflang.MessageReporter.
Reimplemented in org.lflang.cli.StandaloneMessageReporter, org.lflang.federated.generator.SynchronizedMessageReporter, and org.lflang.generator.LanguageServerMessageReporter.
| Stage2 org.lflang.MessageReporterBase.nowhere | ( | ) |
Specify that the message has no relevant position, ie it does not belong to a particular file.
Implements org.lflang.MessageReporter.
|
abstractprotected |
Implementation of the reporting methods that use a path and range as position.
Reimplemented in org.lflang.cli.StandaloneMessageReporter, org.lflang.DefaultMessageReporter, org.lflang.diagram.synthesis.util.SynthesisMessageReporter, org.lflang.federated.generator.SynchronizedMessageReporter, and org.lflang.validation.ValidatorMessageReporter.
|
protected |
Implementation of the reporting methods that use a node as position.
|
abstractprotected |
Reimplemented in org.lflang.cli.StandaloneMessageReporter, org.lflang.DefaultMessageReporter, org.lflang.diagram.synthesis.util.SynthesisMessageReporter, org.lflang.federated.generator.SynchronizedMessageReporter, org.lflang.generator.LanguageServerMessageReporter, and org.lflang.validation.ValidatorMessageReporter.
|
abstractprotected |
Implementation of the reporting methods for nowhere().
Reimplemented in org.lflang.cli.StandaloneMessageReporter, org.lflang.DefaultMessageReporter, org.lflang.diagram.synthesis.util.SynthesisMessageReporter, org.lflang.federated.generator.SynchronizedMessageReporter, org.lflang.generator.LanguageServerMessageReporter, and org.lflang.validation.ValidatorMessageReporter.
A wrapper that takes care of setting the error flag if needed.