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 "analyze/analyzed_ruby.h"
5#include "ast_nodes.h"
6#include "errors.h"
7#include "location.h"
8#include "position.h"
9#include "util/hb_allocator.h"
10
11#include <prism.h>
12
13const char* pm_error_level_to_string(pm_error_level_t level);
14
16 const pm_diagnostic_t* error,
17 const AST_NODE_T* node,
18 const char* source,
19 pm_parser_t* parser,
20 hb_allocator_T* allocator
21);
22
24 const pm_diagnostic_t* error,
25 position_T start,
26 position_T end,
27 hb_allocator_T* allocator
28);
29
30location_T* get_then_keyword_location(analyzed_ruby_T* analyzed, const char* source);
31location_T* get_then_keyword_location_wrapped(const char* source, bool is_in_clause);
33
34#endif
location_T * get_then_keyword_location(analyzed_ruby_T *analyzed, const char *source)
Definition prism_helpers.c:124
location_T * get_then_keyword_location_wrapped(const char *source, bool is_in_clause)
Definition prism_helpers.c:194
location_T * get_then_keyword_location_elsif_wrapped(const char *source)
Definition prism_helpers.c:216
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, hb_allocator_T *allocator)
Definition prism_helpers.c:22
const char * pm_error_level_to_string(pm_error_level_t level)
Definition prism_helpers.c:12
RUBY_PARSE_ERROR_T * ruby_parse_error_from_prism_error_with_positions(const pm_diagnostic_t *error, position_T start, position_T end, hb_allocator_T *allocator)
Definition prism_helpers.c:45
Definition ast_nodes.h:57
Definition location.h:9
Definition position.h:8
Definition errors.h:89