Methods
|
|
Generate
ReadFromFile
__init__
|
|
Generate
|
Generate (
self,
tag,
severity="error",
output=None,
**substitutions,
)
Generate a diagnostic message.
-
tag
- The tag of the diagnostic to generate.
-
severity
- A string representing the severity of the
diagnostic, for instance "warning" or "error".
-
output
- If not
None , the a file object to which the
a full diagnostic is written.
-
substitutions
- Named values for substitution into the
diagnostic message.
- returns
- The bare diagnostic message.
|
|
ReadFromFile
|
ReadFromFile ( self, path )
Load diagnostics from a file.
-
path
- Path to the file containing diagnostics.
|
|
__init__
|
__init__ ( self )
Initialize a new set of diagnostics.
|
|