summaryrefslogtreecommitdiff
path: root/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'node.h')
-rw-r--r--node.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/node.h b/node.h
index b18d96357a..0a2fe4f3ed 100644
--- a/node.h
+++ b/node.h
@@ -232,6 +232,14 @@ typedef struct rb_code_range_struct {
rb_code_location_t last_loc;
} rb_code_range_t;
+static inline rb_code_range_t code_range_gen(rb_code_range_t *cr1, rb_code_range_t *cr2)
+{
+ rb_code_range_t cr;
+ cr.first_loc = cr1->first_loc;
+ cr.last_loc = cr2->last_loc;
+ return cr;
+}
+
typedef struct RNode {
VALUE flags;
union {