class documentation

class _ColorizerState:

View In Hierarchy

An object uesd to keep track of the current state of the pyval colorizer. The mark()/restore() methods can be used to set a backup point, and restore back to that backup point. This is used by several colorization methods that first try colorizing their object on a single line (setting linebreakok=False); and then fall back on a multi-line output if that fails.
Method __init__ Undocumented
Method mark Undocumented
Method restore Return what's been trimmed from the result.
Instance Variable charpos Undocumented
Instance Variable linebreakok Undocumented
Instance Variable lineno Undocumented
Instance Variable result Undocumented
Instance Variable warnings Undocumented
def __init__(self):

Undocumented

def mark(self):

Undocumented

Returns
_MarkedColorizerStateUndocumented
def restore(self, mark):
Return what's been trimmed from the result.
Parameters
mark:_MarkedColorizerStateUndocumented
Returns
List[nodes.Node]Undocumented
charpos =

Undocumented

linebreakok =

Undocumented

lineno =

Undocumented

result: List[nodes.Node] =

Undocumented

warnings: List[str] =

Undocumented