Ruby 4.1.0dev (2026-08-08 revision 349071baf0aa555f7712258b301ce66c50166ed9)
errors_format.h
Go to the documentation of this file.
1
6#ifndef PRISM_ERRORS_FORMAT_H
7#define PRISM_ERRORS_FORMAT_H
8
12
13#include "prism/buffer.h"
14#include "prism/diagnostic.h"
15#include "prism/parser.h"
16
34
52
53#endif
A list of diagnostics generated during parsing.
pm_error_level_t
The levels of errors generated during parsing.
Definition diagnostic.h:23
PRISM_EXPORTED_FUNCTION pm_error_level_t pm_errors_format(const pm_parser_t *parser, pm_buffer_t *buffer, pm_errors_format_type_t format_type) PRISM_NONNULL(1
Format the errors in a parser into a buffer.
pm_errors_format_type_t
The type of formatting to use when formatting errors.
@ PM_ERRORS_FORMAT_PLAIN
Format errors in a plain format with no colors or styles.
@ PM_ERRORS_FORMAT_COLOR
Format errors in a color format with bold and colors.
@ PM_ERRORS_FORMAT_STYLE
Format errors in a style format with bold only.
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition exported.h:20
The parser used to parse Ruby source.
A wrapper around a contiguous block of allocated memory.
#define PRISM_NONNULL(...)
Mark the parameters of a function as non-null.
Definition nonnull.h:13