Searched refs:GetNodeAnnotation (Results 1 – 7 of 7) sorted by relevance
/external/yapf/yapftests/ |
D | pytree_utils_test.py | 158 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 …]
|
D | split_penalty_test.py | 72 pytree_utils.GetNodeAnnotation(
|
/external/yapf/yapf/yapflib/ |
D | pytree_utils.py | 238 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))
|
D | format_token.py | 103 self.must_break_before = pytree_utils.GetNodeAnnotation( 105 self.newlines = pytree_utils.GetNodeAnnotation( 121 stypes = pytree_utils.GetNodeAnnotation(node, 232 return pytree_utils.GetNodeAnnotation(
|
D | split_penalty.py | 260 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(
|
D | comment_splicer.py | 332 parent_indent = pytree_utils.GetNodeAnnotation( 359 child_indent = pytree_utils.GetNodeAnnotation(
|
D | subtype_assigner.py | 336 attr = pytree_utils.GetNodeAnnotation(node.parent, 371 return node_subtype in pytree_utils.GetNodeAnnotation(
|