Lines Matching refs:scope
39 " * Fixed import handling when flattening scope
266 #print('push scope: [%s@%s]' % (sub.name,sub.indent))
286 """ Copy a scope's declaration only, at the specified indent level - not local variables """
311 #print('pop scope: [%s] to [%s]' % (self.indent,indent))
362 self.scope = self.top
419 self.scope=self.scope.pop(indent)
433 self.scope=self.scope.pop(indent)
482 #print('line found [%s] scope=%s' % (line.replace('\n',''),self.scope.name))
483 self.currentscope = self.scope
530 self.currentscope = self.scope
539 self.scope = self.scope.pop(indent)
545 dbg("new scope: function")
547 self.scope = self.scope.add(func)
554 dbg("new scope: class")
555 self.scope = self.scope.add(cls)
562 self.scope.local(loc)
573 self.scope.local(loc)
576 if freshscope: self.scope.doc(token)
583 self.scope.local("%s = %s" % (name,stmt))