nada_dsl.source_ref
Source reference representation data structure.
- class SourceRef(file: str, lineno: int, offset: int, length: int)[source]
Bases:
objectSource reference representation, i.e., a specific location in the source code.
- static try_get_line_info(backend_frame, lineno) Tuple[int, int][source]
Try to get line information from the source code.
- to_index() int[source]
Index Source Reference objects. Adds the current object into a dict as a key as well as an entry in an array, and returns an index to it
- __eq__(other)
Return self==value.