$darkmode
Herb C Reference
analyze_helpers.h
Go to the documentation of this file.
1 #ifndef HERB_ANALYZE_HELPERS_H
2 #define HERB_ANALYZE_HELPERS_H
3 
4 #include <prism.h>
5 #include <stdbool.h>
6 
7 #include "analyzed_ruby.h"
8 
9 bool has_if_node(analyzed_ruby_T* analyzed);
10 bool has_elsif_node(analyzed_ruby_T* analyzed);
11 bool has_else_node(analyzed_ruby_T* analyzed);
12 bool has_end(analyzed_ruby_T* analyzed);
13 bool has_block_node(analyzed_ruby_T* analyzed);
14 bool has_block_closing(analyzed_ruby_T* analyzed);
15 bool has_case_node(analyzed_ruby_T* analyzed);
16 bool has_case_match_node(analyzed_ruby_T* analyzed);
17 bool has_when_node(analyzed_ruby_T* analyzed);
18 bool has_in_node(analyzed_ruby_T* analyzed);
19 bool has_for_node(analyzed_ruby_T* analyzed);
20 bool has_while_node(analyzed_ruby_T* analyzed);
21 bool has_until_node(analyzed_ruby_T* analyzed);
22 bool has_begin_node(analyzed_ruby_T* analyzed);
23 bool has_rescue_node(analyzed_ruby_T* analyzed);
24 bool has_ensure_node(analyzed_ruby_T* analyzed);
25 bool has_unless_node(analyzed_ruby_T* analyzed);
26 bool has_yield_node(analyzed_ruby_T* analyzed);
27 
28 bool has_error_message(analyzed_ruby_T* anlayzed, const char* message);
29 
30 bool search_if_nodes(const pm_node_t* node, void* data);
31 bool search_block_nodes(const pm_node_t* node, void* data);
32 bool search_case_nodes(const pm_node_t* node, void* data);
33 bool search_case_match_nodes(const pm_node_t* node, void* data);
34 bool search_while_nodes(const pm_node_t* node, void* data);
35 bool search_for_nodes(const pm_node_t* node, void* data);
36 bool search_until_nodes(const pm_node_t* node, void* data);
37 bool search_begin_nodes(const pm_node_t* node, void* data);
38 bool search_unless_nodes(const pm_node_t* node, void* data);
39 bool search_elsif_nodes(analyzed_ruby_T* analyzed);
40 bool search_else_nodes(analyzed_ruby_T* analyzed);
41 bool search_end_nodes(analyzed_ruby_T* analyzed);
43 bool search_when_nodes(analyzed_ruby_T* analyzed);
44 bool search_in_nodes(analyzed_ruby_T* analyzed);
45 bool search_rescue_nodes(analyzed_ruby_T* analyzed);
46 bool search_ensure_nodes(analyzed_ruby_T* analyzed);
47 bool search_yield_nodes(const pm_node_t* node, void* data);
48 
49 #endif
bool search_block_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:106
bool has_block_closing(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:27
bool has_until_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:55
bool has_error_message(analyzed_ruby_T *anlayzed, const char *message)
Definition: analyze_helpers.c:79
bool has_block_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:23
bool has_rescue_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:63
bool has_case_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:31
bool has_for_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:47
bool search_when_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:246
bool search_begin_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:184
bool search_while_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:145
bool search_yield_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:282
bool search_for_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:158
bool has_elsif_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:11
bool search_case_match_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:132
bool search_until_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:171
bool has_if_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:7
bool has_when_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:39
bool search_end_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:228
bool has_ensure_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:67
bool has_in_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:43
bool search_in_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:255
bool has_yield_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:75
bool search_unless_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:197
bool search_rescue_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:264
bool search_if_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:88
bool has_while_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:51
bool has_case_match_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:35
bool has_else_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:15
bool search_ensure_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:273
bool search_elsif_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:210
bool search_case_nodes(const pm_node_t *node, void *data)
Definition: analyze_helpers.c:119
bool has_end(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:19
bool has_unless_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:71
bool search_else_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:219
bool has_begin_node(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:59
bool search_block_closing_nodes(analyzed_ruby_T *analyzed)
Definition: analyze_helpers.c:237
Definition: analyzed_ruby.h:8