Error#
Qualified name: rsm.nodes.Error
- class rsm.nodes.Error(text='', asis=False, **kwargs)[source]#
Bases:
TextError node.
Notes
When the parser encounters an error, this node is created at the location where the error is found. Note this inherits from
Text; the text contents of this Node should indicate where in the source file the error occurred.Methods
Attributes
nodeidNode id - always exists (unlike label), automatically assigned, unique within the tree.
labelUnique identifier.
classesCSS classes for this node.
handrail_depthThe number of ancestors of this node that have a handrail.
numberNode number.
nonumWhether this node should be automatically given a number.
reftext_templateReftext template, or "" to use
classreftext.start_pointThe start point of the corresponding concrete syntax tree node.
end_pointThe end point of the corresponding concrete syntax tree node.