Searched refs:Leaf (Results 1 - 25 of 64) sorted by relevance

123

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/
H A Dtest_pytree.py32 """Unit tests for nodes (Base, Leaf, Node)."""
37 l = pytree.Leaf(100, "foo")
57 l1 = pytree.Leaf(100, "foo")
62 l1 = pytree.Leaf(100, "foo")
63 self.assertEqual(repr(l1), "Leaf(100, 'foo')")
66 l1 = pytree.Leaf(100, "foo")
68 l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1)))
72 # Make sure that the Leaf's value is stringified. Failing to
74 l1 = pytree.Leaf(2, 5)
79 l1 = pytree.Leaf(10
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/
H A Dtest_pytree.py32 """Unit tests for nodes (Base, Leaf, Node)."""
37 l = pytree.Leaf(100, "foo")
57 l1 = pytree.Leaf(100, "foo")
62 l1 = pytree.Leaf(100, "foo")
63 self.assertEqual(repr(l1), "Leaf(100, 'foo')")
66 l1 = pytree.Leaf(100, "foo")
68 l2 = pytree.Leaf(100, "foo", context=(" ", (10, 1)))
72 # Make sure that the Leaf's value is stringified. Failing to
74 l1 = pytree.Leaf(2, 5)
79 l1 = pytree.Leaf(10
[all...]
/prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/
H A Dfixer_util.py8 from .pytree import Leaf, Node namespace
19 [keyword, Leaf(token.EQUAL, u"="), value])
22 return Leaf(token.LPAR, u"(")
25 return Leaf(token.RPAR, u")")
36 target + [Leaf(token.EQUAL, u"=", prefix=u" ")] + source)
40 return Leaf(token.NAME, name, prefix=prefix)
48 return Leaf(token.COMMA, u",")
52 return Leaf(token.DOT, u".")
70 return Leaf(token.NEWLINE, u"\n")
74 return Leaf(toke
[all...]
/prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/
H A Dfixer_util.py8 from .pytree import Leaf, Node namespace
19 [keyword, Leaf(token.EQUAL, u"="), value])
22 return Leaf(token.LPAR, u"(")
25 return Leaf(token.RPAR, u")")
36 target + [Leaf(token.EQUAL, u"=", prefix=u" ")] + source)
40 return Leaf(token.NAME, name, prefix=prefix)
48 return Leaf(token.COMMA, u",")
52 return Leaf(token.DOT, u".")
70 return Leaf(token.NEWLINE, u"\n")
74 return Leaf(toke
[all...]
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/
H A Dfixer_util.py8 from .pytree import Leaf, Node namespace
19 [keyword, Leaf(token.EQUAL, u"="), value])
22 return Leaf(token.LPAR, u"(")
25 return Leaf(token.RPAR, u")")
36 target + [Leaf(token.EQUAL, u"=", prefix=u" ")] + source)
40 return Leaf(token.NAME, name, prefix=prefix)
48 return Leaf(token.COMMA, u",")
52 return Leaf(token.DOT, u".")
70 return Leaf(token.NEWLINE, u"\n")
74 return Leaf(toke
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/
H A Dfixer_util.py8 from .pytree import Leaf, Node namespace
19 [keyword, Leaf(token.EQUAL, u"="), value])
22 return Leaf(token.LPAR, u"(")
25 return Leaf(token.RPAR, u")")
36 target + [Leaf(token.EQUAL, u"=", prefix=u" ")] + source)
40 return Leaf(token.NAME, name, prefix=prefix)
48 return Leaf(token.COMMA, u",")
52 return Leaf(token.DOT, u".")
70 return Leaf(token.NEWLINE, u"\n")
74 return Leaf(toke
[all...]
/prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/fixes/
H A Dfix_ne.py22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
H A Dfix_ws_comma.py20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
H A Dfix_metaclass.py23 from ..fixer_util import Name, syms, Node, Leaf namespace
29 1) clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
30 2) clsdef => simple_stmt => expr_stmt => Leaf('__meta')
39 if isinstance(left_side, Leaf) and \
108 # look for simple_stmt[ expr_stmt[ Leaf('__metaclass__') ] ]
115 if isinstance(left_node, Leaf) and \
134 # find the first Leaf
137 if isinstance(node, Leaf) and node.type != token.DEDENT:
164 text_type = node.children[0].type # always Leaf(nnn, 'class')
186 node.insert_child(2, Leaf(toke
[all...]
H A Dfix_apply.py50 l_newargs = [pytree.Leaf(token.STAR, u"*"), args]
53 pytree.Leaf(token.DOUBLESTAR, u"**"),
H A Dfix_set_literal.py38 literal = [pytree.Leaf(token.LBRACE, u"{")]
40 literal.append(pytree.Leaf(token.RBRACE, u"}"))
/prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/fixes/
H A Dfix_ne.py22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
H A Dfix_ws_comma.py20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
H A Dfix_metaclass.py23 from ..fixer_util import Name, syms, Node, Leaf namespace
29 1) clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
30 2) clsdef => simple_stmt => expr_stmt => Leaf('__meta')
39 if isinstance(left_side, Leaf) and \
108 # look for simple_stmt[ expr_stmt[ Leaf('__metaclass__') ] ]
115 if isinstance(left_node, Leaf) and \
134 # find the first Leaf
137 if isinstance(node, Leaf) and node.type != token.DEDENT:
164 text_type = node.children[0].type # always Leaf(nnn, 'class')
186 node.insert_child(2, Leaf(toke
[all...]
H A Dfix_apply.py50 l_newargs = [pytree.Leaf(token.STAR, u"*"), args]
53 pytree.Leaf(token.DOUBLESTAR, u"**"),
H A Dfix_set_literal.py38 literal = [pytree.Leaf(token.LBRACE, u"{")]
40 literal.append(pytree.Leaf(token.RBRACE, u"}"))
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/
H A Dfix_ne.py22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
H A Dfix_ws_comma.py20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
H A Dfix_metaclass.py23 from ..fixer_util import Name, syms, Node, Leaf namespace
29 1) clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
30 2) clsdef => simple_stmt => expr_stmt => Leaf('__meta')
39 if isinstance(left_side, Leaf) and \
108 # look for simple_stmt[ expr_stmt[ Leaf('__metaclass__') ] ]
115 if isinstance(left_node, Leaf) and \
134 # find the first Leaf
137 if isinstance(node, Leaf) and node.type != token.DEDENT:
164 text_type = node.children[0].type # always Leaf(nnn, 'class')
186 node.insert_child(2, Leaf(toke
[all...]
H A Dfix_apply.py50 l_newargs = [pytree.Leaf(token.STAR, u"*"), args]
53 pytree.Leaf(token.DOUBLESTAR, u"**"),
H A Dfix_set_literal.py38 literal = [pytree.Leaf(token.LBRACE, u"{")]
40 literal.append(pytree.Leaf(token.RBRACE, u"}"))
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/
H A Dfix_ne.py22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
H A Dfix_ws_comma.py20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
H A Dfix_metaclass.py23 from ..fixer_util import Name, syms, Node, Leaf namespace
29 1) clsdef => suite => simple_stmt => expr_stmt => Leaf('__meta')
30 2) clsdef => simple_stmt => expr_stmt => Leaf('__meta')
39 if isinstance(left_side, Leaf) and \
108 # look for simple_stmt[ expr_stmt[ Leaf('__metaclass__') ] ]
115 if isinstance(left_node, Leaf) and \
134 # find the first Leaf
137 if isinstance(node, Leaf) and node.type != token.DEDENT:
164 text_type = node.children[0].type # always Leaf(nnn, 'class')
186 node.insert_child(2, Leaf(toke
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/
H A Drefpolicy.py151 class Leaf(PolicyBase): class in inherits:PolicyBase
262 class SecurityContext(Leaf):
271 Leaf.__init__(self, parent)
337 class ObjectClass(Leaf):
346 Leaf.__init__(self, parent)
352 class TypeAttribute(Leaf):
358 Leaf.__init__(self, parent)
365 class RoleAttribute(Leaf):
371 Leaf.__init__(self, parent)
379 class Role(Leaf)
[all...]

Completed in 483 milliseconds

123