|
Ruby 4.1.0dev (2026-04-04 revision 892991bdc1a5068d74a8597cd0ccf3092afffabf)
|
This struct represents a slice in the source code, defined by an offset and a length. More...
#include <ast.h>
Data Fields | |
| uint32_t | start |
| The offset of the location from the start of the source. | |
| uint32_t | length |
| The length of the location. | |
This struct represents a slice in the source code, defined by an offset and a length.
Note that we have confirmation that we can represent all locations within Ruby source files using 32-bit integers per:
https://bugs.ruby-lang.org/issues/20488#note-1
| uint32_t pm_location_t::start |