class documentation
class Sequence(BaseContainer): (source)
Known subclasses: klara.core.node_classes.List
, klara.core.node_classes.Set
, klara.core.node_classes.Tuple
Undocumented
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __next__ |
Undocumented |
Method | get |
return the actual object for this class. E.g. Set class will return set(self.elts) instead of list |
Method | get |
get the index number of var Also handle nested container, specifically in : (a, b, c), d, e = z |
Instance Variable | elts |
Undocumented |
Instance Variable | _iter |
Undocumented |
Inherited from BaseContainer
:
Method | __str__ |
Undocumented |
Inherited from BaseNode
(via BaseContainer
):
Static Method | get |
Undocumented |
Method | __contains__ |
Undocumented |
Method | accept |
Undocumented |
Method | dunder |
try to resolve the dunder method |
Method | generic |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
find the definition of `var` from outer scope recursively. Skip param will determine how many parent scope to skip :param var: variable of interest :param skip: how many layer of parent scope to skip :return:... |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
get the assigning target instance rather than scope(). See #mr68u a.b.c = node calling node.get_target_instance() will return `a.b.c.instance()` |
Method | is |
check if the given node is part of 'self' or children |
Method | iter |
Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*. |
Method | prepare |
Undocumented |
Method | scope |
return the first containing scope |
Method | statement |
Undocumented |
Instance Variable | col |
Undocumented |
Instance Variable | explicit |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | parent |
Undocumented |
Instance Variable | refer |
Undocumented |
Class Variable | _fields |
Undocumented |
Inherited from Proxy
(via BaseContainer
, BaseNode
, BaseInstance
):
Method | __getattr__ |
Undocumented |
Method | __repr__ |
Undocumented |
Instance Variable | obj |
Undocumented |
overrides
klara.core.bases.BaseNode.__init__
overridden in
klara.core.node_classes.List
, klara.core.node_classes.Set
, klara.core.node_classes.Tuple
Undocumented
overridden in
klara.core.node_classes.Set
, klara.core.node_classes.Tuple
return the actual object for this class. E.g. Set class will return set(self.elts) instead of list
elts =
(source)
overridden in
klara.core.node_classes.List
, klara.core.node_classes.Set
, klara.core.node_classes.Tuple
Undocumented