Searched refs:hasval (Results 1 – 2 of 2) sorted by relevance
37 self.assertFalse(scope.hasval('foo'))40 self.assertTrue(scope.hasval('foo'))42 self.assertFalse(scope.hasval('baz'))49 self.assertTrue(child.hasval('foo'))50 self.assertTrue(scope.hasval('foo'))53 self.assertTrue(child.hasval('bar'))54 self.assertFalse(scope.hasval('bar'))
59 def hasval(self, name): member in Scope61 (self.parent is not None and self.parent.hasval(name)))138 elif isinstance(node.ctx, gast.Load) and self.scope.hasval(qn):