Herb C Reference
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
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
9bool has_if_node(analyzed_ruby_T* analyzed);
10bool has_elsif_node(analyzed_ruby_T* analyzed);
11bool has_else_node(analyzed_ruby_T* analyzed);
12bool has_end(analyzed_ruby_T* analyzed);
13bool has_block_node(analyzed_ruby_T* analyzed);
15bool has_case_node(analyzed_ruby_T* analyzed);
16bool has_when_node(analyzed_ruby_T* analyzed);
17bool has_for_node(analyzed_ruby_T* analyzed);
18bool has_while_node(analyzed_ruby_T* analyzed);
19bool has_until_node(analyzed_ruby_T* analyzed);
20bool has_begin_node(analyzed_ruby_T* analyzed);
21bool has_rescue_node(analyzed_ruby_T* analyzed);
22bool has_ensure_node(analyzed_ruby_T* analyzed);
23bool has_unless_node(analyzed_ruby_T* analyzed);
24bool has_yield_node(analyzed_ruby_T* analyzed);
25
26bool has_error_message(analyzed_ruby_T* anlayzed, const char* message);
27
28bool search_if_nodes(const pm_node_t* node, void* data);
29bool search_block_nodes(const pm_node_t* node, void* data);
30bool search_case_nodes(const pm_node_t* node, void* data);
31bool search_while_nodes(const pm_node_t* node, void* data);
32bool search_for_nodes(const pm_node_t* node, void* data);
33bool search_until_nodes(const pm_node_t* node, void* data);
34bool search_begin_nodes(const pm_node_t* node, void* data);
35bool search_unless_nodes(const pm_node_t* node, void* data);
38bool search_end_nodes(analyzed_ruby_T* analyzed);
44
45#endif
bool search_block_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:93
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:47
bool search_yield_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:247
bool has_error_message(analyzed_ruby_T *anlayzed, const char *message)
Definition analyze_helpers.c:71
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:55
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:39
bool search_when_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:220
bool search_begin_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:158
bool search_while_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:119
bool search_for_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:132
bool has_elsif_node(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:11
bool search_until_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:145
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:35
bool search_end_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:202
bool has_ensure_node(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:59
bool has_yield_node(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:67
bool search_unless_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:171
bool search_rescue_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:229
bool search_if_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:80
bool has_while_node(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:43
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:238
bool search_elsif_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:184
bool search_case_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:106
bool has_end(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:19
bool has_unless_node(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:63
bool search_else_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:193
bool has_begin_node(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:51
bool search_block_closing_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:211
Definition analyzed_ruby.h:8