Herb C Reference
Loading...
Searching...
No Matches
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#include "ast_node.h"
9
10bool has_if_node(analyzed_ruby_T* analyzed);
11bool has_elsif_node(analyzed_ruby_T* analyzed);
12bool has_else_node(analyzed_ruby_T* analyzed);
13bool has_end(analyzed_ruby_T* analyzed);
14bool has_block_node(analyzed_ruby_T* analyzed);
16bool has_case_node(analyzed_ruby_T* analyzed);
18bool has_when_node(analyzed_ruby_T* analyzed);
19bool has_in_node(analyzed_ruby_T* analyzed);
20bool has_for_node(analyzed_ruby_T* analyzed);
21bool has_while_node(analyzed_ruby_T* analyzed);
22bool has_until_node(analyzed_ruby_T* analyzed);
23bool has_begin_node(analyzed_ruby_T* analyzed);
24bool has_rescue_node(analyzed_ruby_T* analyzed);
25bool has_ensure_node(analyzed_ruby_T* analyzed);
26bool has_unless_node(analyzed_ruby_T* analyzed);
27bool has_yield_node(analyzed_ruby_T* analyzed);
28
29bool has_error_message(analyzed_ruby_T* anlayzed, const char* message);
30
31bool search_if_nodes(const pm_node_t* node, void* data);
32bool search_block_nodes(const pm_node_t* node, void* data);
33bool search_case_nodes(const pm_node_t* node, void* data);
34bool search_case_match_nodes(const pm_node_t* node, void* data);
35bool search_while_nodes(const pm_node_t* node, void* data);
36bool search_for_nodes(const pm_node_t* node, void* data);
37bool search_until_nodes(const pm_node_t* node, void* data);
38bool search_begin_nodes(const pm_node_t* node, void* data);
39bool search_unless_nodes(const pm_node_t* node, void* data);
42bool search_end_nodes(analyzed_ruby_T* analyzed);
45bool search_in_nodes(analyzed_ruby_T* analyzed);
48bool search_yield_nodes(const pm_node_t* node, void* data);
49bool search_unclosed_control_flows(const pm_node_t* node, void* data);
50
52
53#endif
bool search_block_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:121
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:256
bool search_begin_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:188
bool search_while_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:158
bool search_yield_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:292
bool search_for_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:168
bool has_elsif_node(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:11
bool search_unclosed_control_flows(const pm_node_t *node, void *data)
Definition analyze_helpers.c:308
bool search_case_match_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:148
bool search_until_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:178
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:233
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:265
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:198
bool search_rescue_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:274
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:283
bool search_elsif_nodes(analyzed_ruby_T *analyzed)
Definition analyze_helpers.c:215
void check_erb_node_for_missing_end(const AST_NODE_T *node)
Definition analyze_missing_end.c:8
bool search_case_nodes(const pm_node_t *node, void *data)
Definition analyze_helpers.c:138
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:224
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:247
Definition analyzed_ruby.h:9
Definition ast_nodes.h:53