Home
last modified time | relevance | path

Searched refs:GetNodeAnnotation (Results 1 – 7 of 7) 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.py72 pytree_utils.GetNodeAnnotation(
/external/yapf/yapf/yapflib/
Dpytree_utils.py238 def GetNodeAnnotation(node, annotation, default=None): function
272 attr = GetNodeAnnotation(node, annotation, set())
284 attr = GetNodeAnnotation(node, Annotation.SUBTYPE)
330 penalty=GetNodeAnnotation(node, Annotation.SPLIT_PENALTY, None))
336 indent=GetNodeAnnotation(node, Annotation.CHILD_INDENT))
Dformat_token.py103 self.must_break_before = pytree_utils.GetNodeAnnotation(
105 self.newlines = pytree_utils.GetNodeAnnotation(
121 stypes = pytree_utils.GetNodeAnnotation(node,
232 return pytree_utils.GetNodeAnnotation(
Dsplit_penalty.py260 stypes = pytree_utils.GetNodeAnnotation(
323 stypes = pytree_utils.GetNodeAnnotation(
532 penalty_annotation = pytree_utils.GetNodeAnnotation(
577 penalty = pytree_utils.GetNodeAnnotation(
601 cur_annotate = pytree_utils.GetNodeAnnotation(
623 penalty = pytree_utils.GetNodeAnnotation(
Dcomment_splicer.py332 parent_indent = pytree_utils.GetNodeAnnotation(
359 child_indent = pytree_utils.GetNodeAnnotation(
Dsubtype_assigner.py336 attr = pytree_utils.GetNodeAnnotation(node.parent,
371 return node_subtype in pytree_utils.GetNodeAnnotation(