summaryrefslogtreecommitdiff
path: root/node.h
diff options
authorKevin Newton <kddnewton@gmail.com>2024-04-18 13:37:49 -0400
committerKevin Newton <kddnewton@gmail.com>2024-04-26 12:25:45 -0400
commitaf800bef210f5cca5acdcfd874b1391d44eec29c (patch)
tree103362ee0b9ea7d79458f23f761a235aa267bd17 /node.h
parent353cba49558d56b10ed549a628ee54cd8875b8f5 (diff)
Remove dependency on NODE from coverage structure
Diffstat (limited to 'node.h')
-rw-r--r--node.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/node.h b/node.h
index bcc7e451d2..80db9e8403 100644
--- a/node.h
+++ b/node.h
@@ -88,6 +88,7 @@ RUBY_SYMBOL_EXPORT_END
#define NODE_SPECIAL_EXCESSIVE_COMMA ((ID)1)
#define NODE_SPECIAL_NO_REST_KEYWORD ((NODE *)-1)
+#define nd_code_loc(n) (&RNODE(n)->nd_loc)
#define nd_first_column(n) ((int)(RNODE(n)->nd_loc.beg_pos.column))
#define nd_set_first_column(n, v) (RNODE(n)->nd_loc.beg_pos.column = (v))
#define nd_first_lineno(n) ((int)(RNODE(n)->nd_loc.beg_pos.lineno))
close