HomeSort by relevance Sort by last modified time
    Searched refs:Leaf (Results 1 - 25 of 65) sorted by null

1 2 3

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/
test_pytree.py 32 """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(100, "foo"
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/
test_pytree.py 32 """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(100, "foo"
    [all...]
  /external/selinux/sepolgen/src/sepolgen/
refpolicy.py 60 The Node class is used as the base class for any non-leaf
148 class Leaf(PolicyBase):
172 leaf objects. The iteration can perform a depth first or a breadth
195 # be a leaf - so no need to add it to the stack
259 class SecurityContext(Leaf):
268 Leaf.__init__(self, parent)
334 class ObjectClass(Leaf):
343 Leaf.__init__(self, parent)
349 class TypeAttribute(Leaf):
355 Leaf.__init__(self, parent
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/sepolgen/
refpolicy.py 60 The Node class is used as the base class for any non-leaf
148 class Leaf(PolicyBase):
172 leaf objects. The iteration can perform a depth first or a breadth
195 # be a leaf - so no need to add it to the stack
259 class SecurityContext(Leaf):
268 Leaf.__init__(self, parent)
334 class ObjectClass(Leaf):
343 Leaf.__init__(self, parent)
349 class TypeAttribute(Leaf):
355 Leaf.__init__(self, parent
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/fixes/
fix_ws_comma.py 20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
fix_ne.py 22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
fix_metaclass.py 23 from ..fixer_util import Name, syms, Node, Leaf
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(token.RPAR, u')')
    [all...]
fix_apply.py 50 l_newargs = [pytree.Leaf(token.STAR, u"*"), args]
53 pytree.Leaf(token.DOUBLESTAR, u"**"),
fix_set_literal.py 38 literal = [pytree.Leaf(token.LBRACE, u"{")]
40 literal.append(pytree.Leaf(token.RBRACE, u"}"))
  /prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/fixes/
fix_ws_comma.py 20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
fix_ne.py 22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
fix_metaclass.py 23 from ..fixer_util import Name, syms, Node, Leaf
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(token.RPAR, u')')
    [all...]
fix_apply.py 50 l_newargs = [pytree.Leaf(token.STAR, u"*"), args]
53 pytree.Leaf(token.DOUBLESTAR, u"**"),
fix_set_literal.py 38 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/
fix_ws_comma.py 20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
fix_ne.py 22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
fix_metaclass.py 23 from ..fixer_util import Name, syms, Node, Leaf
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(token.RPAR, u')')
    [all...]
fix_apply.py 50 l_newargs = [pytree.Leaf(token.STAR, u"*"), args]
53 pytree.Leaf(token.DOUBLESTAR, u"**"),
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/
fix_ws_comma.py 20 COMMA = pytree.Leaf(token.COMMA, u",")
21 COLON = pytree.Leaf(token.COLON, u":")
fix_ne.py 22 new = pytree.Leaf(token.NOTEQUAL, u"!=", prefix=node.prefix)
fix_metaclass.py 23 from ..fixer_util import Name, syms, Node, Leaf
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(token.RPAR, u')')
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/lib2to3/
fixer_util.py 8 from .pytree import Leaf, Node
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)
39 """Return a NAME leaf"""
40 return Leaf(token.NAME, name, prefix=prefix)
47 """A comma leaf"""
48 return Leaf(token.COMMA, u",")
51 """A period (.) leaf"""
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/lib2to3/
fixer_util.py 8 from .pytree import Leaf, Node
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)
39 """Return a NAME leaf"""
40 return Leaf(token.NAME, name, prefix=prefix)
47 """A comma leaf"""
48 return Leaf(token.COMMA, u",")
51 """A period (.) leaf"""
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/
fixer_util.py 8 from .pytree import Leaf, Node
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)
39 """Return a NAME leaf"""
40 return Leaf(token.NAME, name, prefix=prefix)
47 """A comma leaf"""
48 return Leaf(token.COMMA, u",")
51 """A period (.) leaf"""
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/
fixer_util.py 8 from .pytree import Leaf, Node
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)
39 """Return a NAME leaf"""
40 return Leaf(token.NAME, name, prefix=prefix)
47 """A comma leaf"""
48 return Leaf(token.COMMA, u",")
51 """A period (.) leaf"""
    [all...]

Completed in 1611 milliseconds

1 2 3