Searched defs:Leaf (Results 1 - 11 of 11) sorted by relevance

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/
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/lib2to3/fixes/
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/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...]
H A Dpytree.py35 Abstract base class for Node and Leaf.
114 Set the prefix for the node (see Leaf class).
124 Return the prefix for the node (see Leaf class).
158 while not isinstance(node, Leaf):
351 class Leaf(Base): class in inherits:Base
402 return Leaf(self.type, self.value,
431 Convert raw node information to a Node or Leaf instance.
445 return Leaf(type, value, context=context)
558 if not isinstance(node, Leaf):
/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...]
H A Dpytree.py35 Abstract base class for Node and Leaf.
114 Set the prefix for the node (see Leaf class).
124 Return the prefix for the node (see Leaf class).
158 while not isinstance(node, Leaf):
351 class Leaf(Base): class in inherits:Base
402 return Leaf(self.type, self.value,
431 Convert raw node information to a Node or Leaf instance.
445 return Leaf(type, value, context=context)
558 if not isinstance(node, Leaf):
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/tests/
H A Dtest_util.py10 from lib2to3.pytree import Node, Leaf namespace
94 [Leaf(token.NUMBER, 1), Leaf(token.NUMBER, 2),
95 Leaf(token.NUMBER, 3)],
96 [Leaf(token.NUMBER, 1), Leaf(token.NUMBER, 3),
97 Leaf(token.NUMBER, 2), Leaf(token.NUMBER, 4)],
98 [Leaf(token.STRING, "b"), Leaf(toke
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/tests/
H A Dtest_util.py10 from lib2to3.pytree import Node, Leaf namespace
94 [Leaf(token.NUMBER, 1), Leaf(token.NUMBER, 2),
95 Leaf(token.NUMBER, 3)],
96 [Leaf(token.NUMBER, 1), Leaf(token.NUMBER, 3),
97 Leaf(token.NUMBER, 2), Leaf(token.NUMBER, 4)],
98 [Leaf(token.STRING, "b"), Leaf(toke
[all...]
/prebuilts/tools/common/m2/repository/org/python/jython/2.5.3/
H A Djython-2.5.3.jarMETA-INF/MANIFEST.MF META-INF/services/javax.script.ScriptEngineFactory com/xhaus/modjy/ModjyJServlet ...
/prebuilts/devtools/tools/lib/
H A Djython-standalone-2.5.3.jarMETA-INF/MANIFEST.MF META-INF/LICENSE META-INF/NOTICE META-INF/maven/jline/ ...
/prebuilts/tools/common/m2/repository/org/python/jython-standalone/2.5.3/
H A Djython-standalone-2.5.3.jarMETA-INF/MANIFEST.MF META-INF/LICENSE META-INF/NOTICE META-INF/maven/jline/ ...

Completed in 370 milliseconds