Lines Matching refs:outer_scope
255 # outer_scope Scope or None Enclosing scope
297 def __init__(self, name, outer_scope, parent_scope):
298 # The outer_scope is the next scope in the lookup chain.
301 self.outer_scope = outer_scope
401 return self.outer_scope.global_scope()
405 return self.outer_scope.builtin_scope()
574 entry.type.namespace = self.outer_scope.lookup(self.name).type
626 return self.outer_scope.declare_builtin(name, pos)
768 or (self.outer_scope and self.outer_scope.lookup(name))
830 outer = self.outer_scope
837 self.outer_scope.add_include_file(filename)
879 if self.outer_scope is not None:
880 return self.outer_scope.declare_builtin(name, pos)
909 scope = CClassScope(name, outer_scope=None, visibility='extern')
999 outer_scope = Builtin.builtin_scope
1000 Scope.__init__(self, name, outer_scope, parent_module)
1020 self.type_names = dict(outer_scope.type_names)
1048 return self.outer_scope.lookup(name, language_level=language_level)
1301 scope = CClassScope(name = name, outer_scope = self,
1483 def __init__(self, name, outer_scope, parent_scope = None):
1485 parent_scope = outer_scope
1486 Scope.__init__(self, name, outer_scope, parent_scope)
1575 def __init__(self, outer_scope):
1576 name = outer_scope.global_scope().next_id(Naming.genexpr_id_ref)
1577 Scope.__init__(self, name, outer_scope, outer_scope)
1578 self.directives = outer_scope.directives
1589 outer_entry = self.outer_scope.lookup(name)
1603 return self.outer_scope.declare_pyfunction(
1607 return self.outer_scope.declare_lambda_function(func_cname, pos)
1610 return self.outer_scope.add_lambda_def(def_node)
1617 def __init__(self, name, scope_name, outer_scope, parent_scope=None):
1618 LocalScope.__init__(self, name, outer_scope, parent_scope)
1678 def __init__(self, name, outer_scope):
1679 Scope.__init__(self, name, outer_scope, outer_scope)
1759 return self.outer_scope.add_default_value(type)
1786 def __init__(self, name, outer_scope, visibility):
1787 ClassScope.__init__(self, name, outer_scope)
1789 self.method_table_cname = outer_scope.mangle(Naming.methtab_prefix, name)
1790 self.getset_table_cname = outer_scope.mangle(Naming.gstab_prefix, name)
2014 outer_scope = self.global_scope(), parent_scope = self)
2072 def __init__(self, name, outer_scope, templates=None):
2073 Scope.__init__(self, name, outer_scope, None)
2074 self.directives = outer_scope.directives
2181 scope = CppClassScope(self.name, self.outer_scope)
2234 const_base_type_scope.outer_scope,
2246 def __init__(self, name, outer_scope):
2247 Scope.__init__(self, name, outer_scope, None)
2248 self.directives = outer_scope.directives