DSMSourceSpan¶
- class dsviper.DSMSourceSpan¶
Bases:
objectA source span: a 1-based line, and the [start, stop] character offsets into the content the builder assembled.
stop is inclusive — it is the offset of the last character, not the one past it.
Note: Not directly instantiable.
- line() int¶
Return the 1-based line number of the span.
- start() int¶
Return the start byte offset (inclusive) in the assembled content.
- stop() int¶
Return the stop byte offset (inclusive) in the assembled content.