def __init__(self, name, base, decors): self.name = name self.base = base self.decors = decors self.isScope = True Statement.__init__(self) HasChildren.__init__(self) Scope.__init__(self)
def __init__(self, file, name=None): ScriptElement.__init__(self) HasChildren.__init__(self) Scope.__init__(self) self._file = file self.builtin = False if name: self.name = name else: self.name = "main"
def __init__(self, name, args, decors): Statement.__init__(self) HasChildren.__init__(self) Scope.__init__(self) self.name = name self.args = args self.decors = decors self.locals = [] self.isScope = True a = self.locals.append for arg in self.args: a(arg.id)
def __init__(self, ctx=0): ScriptElement.__init__(self) HasChildren.__init__(self) self.ctx = ctx
def __init__(self, target, value): Statement.__init__(self) HasChildren.__init__(self) self.target = target self.value = value
def __init__(self, body, orelse): self.body = body self.orelse = orelse Statement.__init__(self) HasChildren.__init__(self)
def __init__(self): Literal.__init__(self, None) HasChildren.__init__(self)