| Class | Parser::Source::Range |
| In: |
lib/parser/source/range.rb
|
| Parent: | Object |
A range of characters in a particular source buffer.
The range is always exclusive, i.e. a range with `begin_pos` of 3 and `end_pos` of 5 will contain the following characters:
example
^^
@!attribute [r] source_buffer
@return [Parser::Diagnostic::Engine]
@!attribute [r] begin_pos
@return [Integer] index of the first character in the range
@!attribute [r] end_pos
@return [Integer] index of the character after the last character in the range
@api public