ReadonlynodeOptionalinlineOptional inline comment attached to this node.
1-indexed source line the node starts on.
0-indexed byte offset (UTF-8) within lineno where the node starts.
Optionalend_1-indexed source line the node ends on.
Optionalend_0-indexed byte offset (UTF-8) within end_lineno where the node ends.
Base interface for nodes that can have location attributes.
Mirrors CPython AST nodes declared with an ASDL
attributes (...)clause:linenoandcol_offsetare always present, whileend_linenoandend_col_offsetremain optional for compatibility with grammars/targets that don't populate end positions.