Lines Matching refs:scope
135 """Find local names in scope"""
280 scope = self.scope.check_name(name)
281 if scope == SC_LOCAL:
286 elif scope == SC_GLOBAL_EXPLICIT:
288 elif scope == SC_GLOBAL_IMPLICIT:
293 elif scope == SC_FREE or scope == SC_CELL:
296 raise RuntimeError, "unsupported scope for var %s: %d" % \
297 (name, scope)
348 self.scope = self.scopes[node]
362 self.scope = self.scopes[node]
661 frees = gen.scope.get_free_vars()
1417 self.scope = scopes[func]
1419 self.graph.setFreeVars(self.scope.get_free_vars())
1420 self.graph.setCellVars(self.scope.get_cell_vars())
1421 if self.scope.generator is not None:
1433 self.scope = scopes[gexp]
1435 self.graph.setFreeVars(self.scope.get_free_vars())
1436 self.graph.setCellVars(self.scope.get_cell_vars())
1469 self.scope = scopes[klass]
1471 self.graph.setFreeVars(self.scope.get_free_vars())
1472 self.graph.setCellVars(self.scope.get_cell_vars())