Home
last modified time | relevance | path

Searched refs:hasanno (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/python/autograph/pyct/
Danno_test.py36 self.assertFalse(anno.hasanno(node, 'foo'))
43 self.assertTrue(anno.hasanno(node, 'foo'))
50 self.assertFalse(anno.hasanno(node, 'foo'))
63 self.assertTrue(anno.hasanno(node_2, 'foo'))
64 self.assertFalse(anno.hasanno(node_2, 'bar'))
77 self.assertTrue(anno.hasanno(node, 'spam'))
78 self.assertTrue(anno.hasanno(node, 'ham'))
79 self.assertTrue(anno.hasanno(node, 'eggs'))
80 self.assertFalse(anno.hasanno(node.body[0], 'eggs'))
Danno.py112 def hasanno(node, key, field_name='___pyct_anno'): function
135 if hasanno(from_node, key, field_name=field_name):
155 if hasanno(n, k, field_name):
Dqual_names.py223 if anno.hasanno(node.value, anno.Basic.QN):
242 if anno.hasanno(node.slice.value, anno.Basic.QN):
246 if anno.hasanno(node.value, anno.Basic.QN):
Dtransformer.py471 if anno.hasanno(node, anno.Basic.ORIGIN):
477 if not anno.hasanno(node, anno.Basic.SKIP_PROCESSING):
Dtransformer_test.py216 self.assertFalse(anno.hasanno(for_node, 'string'))
218 self.assertFalse(anno.hasanno(while_node, 'string'))
Dast_util_test.py95 self.assertFalse(anno.hasanno(new_node.body[0], 'baz'))
Dast_util.py99 if anno.hasanno(node, anno.Basic.QN):
/external/tensorflow/tensorflow/python/autograph/pyct/static_analysis/
Dtype_info_test.py105 self.assertFalse(anno.hasanno(call_node, 'is_constructor'))
145 self.assertFalse(anno.hasanno(method_call, 'live_val'))
154 self.assertFalse(anno.hasanno(method_call, 'live_val'))
183 self.assertFalse(anno.hasanno(method_call, 'live_val'))
193 self.assertFalse(anno.hasanno(method_call, 'live_val'))
212 self.assertFalse(anno.hasanno(a, 'live_val'))
213 self.assertFalse(anno.hasanno(b, 'live_val'))
214 self.assertFalse(anno.hasanno(c, 'live_val'))
Dlive_values.py98 if anno.hasanno(node.value, 'live_val'):
99 assert anno.hasanno(node.value, 'fqn')
116 elif anno.hasanno(node.value, 'type'):
Dactivity.py189 if anno.hasanno(node, anno.Basic.QN):
199 if not anno.hasanno(node, anno.Basic.QN):
Dliveness.py55 if anno.hasanno(node.ast_node, anno.Static.SCOPE):
Dtype_info.py180 if anno.hasanno(func, 'live_val'):
Dreaching_definitions.py133 if anno.hasanno(node.ast_node, anno.Static.SCOPE):
/external/tensorflow/tensorflow/python/autograph/converters/
Derror_handlers.py40 if (anno.hasanno(node, anno.Basic.ORIGIN) and
Dbuiltin_functions.py49 if anno.hasanno(node.func, 'live_val'):
Ddirectives.py97 if anno.hasanno(call_node.func, 'live_val'):
Dlogical_expressions.py67 if anno.hasanno(operand, SAFE_BOOLEAN_OPERAND):
Dside_effect_guards.py80 if anno.hasanno(n, anno.Basic.INDENT_BLOCK_REMAINDER):
Dlists.py94 if anno.hasanno(target_node, anno.Basic.QN):
Dcontrol_flow.py519 has_extra_test = anno.hasanno(node, 'extra_test')