Searched refs:GetNodeAnnotation (Results 1 – 8 of 8) 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 | 65 pytree_utils.GetNodeAnnotation(
|
/external/yapf/yapf/yapflib/ |
D | pytree_utils.py | 222 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))
|
D | format_token.py | 234 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,
|
D | split_penalty.py | 291 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(
|
D | comment_splicer.py | 321 parent_indent = pytree_utils.GetNodeAnnotation( 348 child_indent = pytree_utils.GetNodeAnnotation(
|
D | subtype_assigner.py | 312 attr = pytree_utils.GetNodeAnnotation(node.parent, 340 if node_subtype in pytree_utils.GetNodeAnnotation(
|
D | unwrapped_line.py | 386 return pytree_utils.GetNodeAnnotation(
|