class documentation
class Const(BaseNode, BaseInstance, InvertCondMixin): (source)
Known subclasses: klara.core.tree.infer_proxy.InferProxy
Undocumented
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | get |
get the type of the constant holding |
Method | to |
Undocumented |
Instance Variable | value |
Undocumented |
Class Variable | _fields |
Undocumented |
Inherited from BaseNode
:
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 |
Inherited from Proxy
(via BaseNode
, BaseInstance
):
Method | __getattr__ |
Undocumented |
Instance Variable | obj |
Undocumented |
Inherited from InvertCondMixin
(via BaseNode
, BaseInstance
, Proxy
):
Method | invert |
Invert the condition of this node. wrap the node in `not()` |
Method | wrap |
Undocumented |
overrides
klara.core.bases.BaseNode.__init__
overridden in
klara.core.tree.infer_proxy.InferProxy
Undocumented
overrides
klara.core.bases.BaseNode._fields
overridden in
klara.core.tree.infer_proxy.InferProxy
Undocumented