DSMSourceSpan

class dsviper.DSMSourceSpan

Bases: object

A source text span (line, start, stop) of a definition token.

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.