Home
last modified time | relevance | path

Searched refs:GetNodeAnnotation (Results 1 – 8 of 8) sorted by relevance

/external/yapf/yapftests/
Dpytree_utils_test.py158 self.assertIsNone(pytree_utils.GetNodeAnnotation(self._leaf, _FOO))
162 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO), 20)
166 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO), 20)
168 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO), 30)
178 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO), 20)
179 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO1), 1)
180 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO2), 2)
181 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO3), 3)
182 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO4), 4)
183 self.assertEqual(pytree_utils.GetNodeAnnotation(self._leaf, _FOO5), 5)
[all …]
Dsplit_penalty_test.py65 pytree_utils.GetNodeAnnotation(
/external/yapf/yapf/yapflib/
Dpytree_utils.py222 def GetNodeAnnotation(node, annotation, default=None): function
256 attr = GetNodeAnnotation(node, annotation, set())
268 attr = GetNodeAnnotation(node, Annotation.SUBTYPE)
314 penalty=GetNodeAnnotation(node, Annotation.SPLIT_PENALTY, None))
320 indent=GetNodeAnnotation(node, Annotation.CHILD_INDENT))
Dformat_token.py234 return pytree_utils.GetNodeAnnotation(
240 return pytree_utils.GetNodeAnnotation(self.node,
246 return pytree_utils.GetNodeAnnotation(self.node,
263 value = pytree_utils.GetNodeAnnotation(self.node,
Dsplit_penalty.py291 subtypes = pytree_utils.GetNodeAnnotation(
520 penalty_annotation = pytree_utils.GetNodeAnnotation(
541 penalty = pytree_utils.GetNodeAnnotation(
565 cur_annotate = pytree_utils.GetNodeAnnotation(
584 penalty = pytree_utils.GetNodeAnnotation(
Dcomment_splicer.py321 parent_indent = pytree_utils.GetNodeAnnotation(
348 child_indent = pytree_utils.GetNodeAnnotation(
Dsubtype_assigner.py312 attr = pytree_utils.GetNodeAnnotation(node.parent,
340 if node_subtype in pytree_utils.GetNodeAnnotation(
Dunwrapped_line.py386 return pytree_utils.GetNodeAnnotation(