Herb C Reference
Loading...
Searching...
No Matches
prism_helpers.h File Reference
#include "analyzed_ruby.h"
#include "ast_nodes.h"
#include "errors.h"
#include "location.h"
#include "position.h"
#include <prism.h>

Go to the source code of this file.

Functions

const char * pm_error_level_to_string (pm_error_level_t level)
 
RUBY_PARSE_ERROR_Truby_parse_error_from_prism_error (const pm_diagnostic_t *error, const AST_NODE_T *node, const char *source, pm_parser_t *parser)
 
RUBY_PARSE_ERROR_Truby_parse_error_from_prism_error_with_positions (const pm_diagnostic_t *error, position_T start, position_T end)
 
location_Tget_then_keyword_location (analyzed_ruby_T *analyzed, const char *source)
 
location_Tget_then_keyword_location_wrapped (const char *source, bool is_in_clause)
 
location_Tget_then_keyword_location_elsif_wrapped (const char *source)
 

Function Documentation

◆ pm_error_level_to_string()

const char * pm_error_level_to_string ( pm_error_level_t  level)

◆ ruby_parse_error_from_prism_error()

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 
)

◆ ruby_parse_error_from_prism_error_with_positions()

RUBY_PARSE_ERROR_T * ruby_parse_error_from_prism_error_with_positions ( const pm_diagnostic_t *  error,
position_T  start,
position_T  end 
)

◆ get_then_keyword_location()

location_T * get_then_keyword_location ( analyzed_ruby_T analyzed,
const char *  source 
)

◆ get_then_keyword_location_wrapped()

location_T * get_then_keyword_location_wrapped ( const char *  source,
bool  is_in_clause 
)

◆ get_then_keyword_location_elsif_wrapped()

location_T * get_then_keyword_location_elsif_wrapped ( const char *  source)