|
Prism Ruby parser
|
A list of diagnostics generated during parsing. More...
#include "prism/compiler/exported.h"#include "prism/compiler/nodiscard.h"#include "prism/compiler/nonnull.h"#include "prism/ast.h"

Go to the source code of this file.
Typedefs | |
| typedef struct pm_diagnostic_t | pm_diagnostic_t |
| An opaque pointer to a diagnostic generated during parsing. | |
Enumerations | |
| enum | pm_error_level_t { PM_ERROR_LEVEL_SYNTAX = 0 , PM_ERROR_LEVEL_ARGUMENT = 1 , PM_ERROR_LEVEL_LOAD = 2 } |
| The levels of errors generated during parsing. More... | |
| enum | pm_warning_level_t { PM_WARNING_LEVEL_DEFAULT = 0 , PM_WARNING_LEVEL_VERBOSE = 1 } |
| The levels of warnings generated during parsing. More... | |
Functions | |
| PRISM_EXPORTED_FUNCTION const char * | pm_diagnostic_type (const pm_diagnostic_t *diagnostic) PRISM_NONNULL(1) |
| Get the type of the given diagnostic. | |
| PRISM_EXPORTED_FUNCTION pm_location_t | pm_diagnostic_location (const pm_diagnostic_t *diagnostic) PRISM_NONNULL(1) |
| Get the location of the given diagnostic. | |
| PRISM_EXPORTED_FUNCTION const char * | pm_diagnostic_message (const pm_diagnostic_t *diagnostic) PRISM_NONNULL(1) |
| Get the message of the given diagnostic. | |
| PRISM_EXPORTED_FUNCTION pm_error_level_t | pm_diagnostic_error_level (const pm_diagnostic_t *diagnostic) PRISM_NONNULL(1) |
| Get the error level associated with the given diagnostic. | |
| PRISM_EXPORTED_FUNCTION pm_warning_level_t | pm_diagnostic_warning_level (const pm_diagnostic_t *diagnostic) PRISM_NONNULL(1) |
| Get the warning level associated with the given diagnostic. | |
A list of diagnostics generated during parsing.
| enum pm_error_level_t |
| enum pm_warning_level_t |
| PRISM_EXPORTED_FUNCTION const char * pm_diagnostic_type | ( | const pm_diagnostic_t * | diagnostic | ) |
Get the type of the given diagnostic.
| diagnostic | The diagnostic to get the type of. |
| PRISM_EXPORTED_FUNCTION pm_location_t pm_diagnostic_location | ( | const pm_diagnostic_t * | diagnostic | ) |
Get the location of the given diagnostic.
| diagnostic | The diagnostic to get the location of. |
| PRISM_EXPORTED_FUNCTION const char * pm_diagnostic_message | ( | const pm_diagnostic_t * | diagnostic | ) |
Get the message of the given diagnostic.
| diagnostic | The diagnostic to get the message of. |
| PRISM_EXPORTED_FUNCTION pm_error_level_t pm_diagnostic_error_level | ( | const pm_diagnostic_t * | diagnostic | ) |
Get the error level associated with the given diagnostic.
| diagnostic | The diagnostic to get the error level of. |
| PRISM_EXPORTED_FUNCTION pm_warning_level_t pm_diagnostic_warning_level | ( | const pm_diagnostic_t * | diagnostic | ) |
Get the warning level associated with the given diagnostic.
| diagnostic | The diagnostic to get the warning level of. |