mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Remove dependency on NODE from coverage structure
This commit is contained in:
parent
353cba4955
commit
af800bef21
2 changed files with 51 additions and 27 deletions
1
node.h
1
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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue