Herb C Reference
Loading...
Searching...
No Matches
prism_helpers.h
Go to the documentation of this file.
1#ifndef HERB_PRISM_HELPERS_H
2#define HERB_PRISM_HELPERS_H
3
4#include "analyzed_ruby.h"
5#include "ast_nodes.h"
6#include "errors.h"
7#include "location.h"
8#include "position.h"
9
10#include <prism.h>
11
12const char* pm_error_level_to_string(pm_error_level_t level);
13
15 const pm_diagnostic_t* error,
16 const AST_NODE_T* node,
17 const char* source,
18 pm_parser_t* parser
19);
20
22 const pm_diagnostic_t* error,
23 position_T start,
24 position_T end
25);
26
27location_T* get_then_keyword_location(analyzed_ruby_T* analyzed, const char* source);
28location_T* get_then_keyword_location_wrapped(const char* source, bool is_in_clause);
30
31#endif
location_T * get_then_keyword_location(analyzed_ruby_T *analyzed, const char *source)
Definition prism_helpers.c:121
location_T * get_then_keyword_location_wrapped(const char *source, bool is_in_clause)
Definition prism_helpers.c:191
location_T * get_then_keyword_location_elsif_wrapped(const char *source)
Definition prism_helpers.c:213
RUBY_PARSE_ERROR_T * ruby_parse_error_from_prism_error_with_positions(const pm_diagnostic_t *error, position_T start, position_T end)
Definition prism_helpers.c:44
const char * pm_error_level_to_string(pm_error_level_t level)
Definition prism_helpers.c:13
RUBY_PARSE_ERROR_T * ruby_parse_error_from_prism_error(const pm_diagnostic_t *error, const AST_NODE_T *node, const char *source, pm_parser_t *parser)
Definition prism_helpers.c:23
Definition analyzed_ruby.h:9
Definition ast_nodes.h:53
Definition location.h:9
Definition position.h:8
Definition errors.h:83