Searched defs:syms (Results 1 - 25 of 40) sorted by relevance

12

/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/fixes/
H A Dfix_itertools_imports.py5 from lib2to3.fixer_util import BlankLine, syms, token namespace
16 if imports.type == syms.import_as_name or not imports.children:
28 assert child.type == syms.import_as_name
H A Dfix_nonzero.py6 from ..fixer_util import Name, syms namespace
H A Dfix_set_literal.py8 from lib2to3.fixer_util import token, syms namespace
31 fake = pytree.Node(syms.listmaker, [single.clone()])
43 maker = pytree.Node(syms.dictsetmaker, literal)
H A Dfix_except.py28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms namespace
32 if n.type == syms.except_clause:
48 syms = self.syms
H A Dfix_idioms.py32 from ..fixer_util import Call, Comma, Name, Node, BlankLine, syms namespace
108 test = Node(syms.not_test, [Name(u"not"), test])
H A Dfix_import.py16 from ..fixer_util import FromImport, syms, token namespace
28 elif node.type == syms.dotted_name:
30 elif node.type == syms.dotted_as_name:
32 elif node.type == syms.dotted_as_names:
56 if node.type == syms.import_from:
H A Dfix_map.py26 from ..pygram import python_symbols as syms namespace
63 if node.parent.type == syms.simple_stmt:
78 if args.type == syms.arglist and \
H A Dfix_metaclass.py23 from ..fixer_util import Name, syms, Node, Leaf namespace
33 if node.type == syms.suite:
35 elif node.type == syms.simple_stmt and node.children:
37 if expr_node.type == syms.expr_stmt and expr_node.children:
50 if node.type == syms.suite:
62 suite = Node(syms.suite, [])
83 new_expr = Node(syms.expr_stmt, [])
84 new_stmt = Node(syms.simple_stmt, [new_expr])
103 if node.type == syms.suite:
110 if simple_node.type == syms
[all...]
H A Dfix_next.py10 from ..pygram import python_symbols as syms namespace
94 if node.type == syms.expr_stmt:
96 if node.type == syms.simple_stmt or node.parent is None:
H A Dfix_sys_exc.py12 from ..fixer_util import Attr, Call, Name, Number, Subscript, Node, syms namespace
30 return Node(syms.power, attr, prefix=node.prefix)
H A Dfix_exitfunc.py8 from lib2to3.fixer_util import Name, Attr, Call, Comma, Newline, syms namespace
46 register = pytree.Node(syms.power,
60 if names.type == syms.dotted_as_names:
67 new_import = pytree.Node(syms.import_name,
70 new = pytree.Node(syms.simple_stmt, [new_import])
H A Dfix_tuple_params.py25 from ..fixer_util import Assign, Name, Newline, Number, Subscript, syms namespace
75 new_lines.append(pytree.Node(syms.simple_stmt,
78 if args.type == syms.tfpdef:
80 elif args.type == syms.typedargslist:
82 if arg.type == syms.tfpdef:
131 new = pytree.Node(syms.power,
140 if node.type in (syms.vfplist, token.NAME):
142 elif node.type == syms.vfpdef:
145 while node.type == syms.vfpdef:
151 if node.type == syms
[all...]
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/lib2to3/fixes/
H A Dfix_itertools_imports.py5 from lib2to3.fixer_util import BlankLine, syms, token namespace
16 if imports.type == syms.import_as_name or not imports.children:
28 assert child.type == syms.import_as_name
H A Dfix_nonzero.py6 from ..fixer_util import Name, syms namespace
H A Dfix_set_literal.py8 from lib2to3.fixer_util import token, syms namespace
31 fake = pytree.Node(syms.listmaker, [single.clone()])
43 maker = pytree.Node(syms.dictsetmaker, literal)
H A Dfix_except.py28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms namespace
32 if n.type == syms.except_clause:
48 syms = self.syms
H A Dfix_idioms.py32 from ..fixer_util import Call, Comma, Name, Node, BlankLine, syms namespace
108 test = Node(syms.not_test, [Name(u"not"), test])
H A Dfix_import.py16 from ..fixer_util import FromImport, syms, token namespace
28 elif node.type == syms.dotted_name:
30 elif node.type == syms.dotted_as_name:
32 elif node.type == syms.dotted_as_names:
56 if node.type == syms.import_from:
H A Dfix_map.py26 from ..pygram import python_symbols as syms namespace
63 if node.parent.type == syms.simple_stmt:
78 if args.type == syms.arglist and \
H A Dfix_metaclass.py23 from ..fixer_util import Name, syms, Node, Leaf namespace
33 if node.type == syms.suite:
35 elif node.type == syms.simple_stmt and node.children:
37 if expr_node.type == syms.expr_stmt and expr_node.children:
50 if node.type == syms.suite:
62 suite = Node(syms.suite, [])
83 new_expr = Node(syms.expr_stmt, [])
84 new_stmt = Node(syms.simple_stmt, [new_expr])
103 if node.type == syms.suite:
110 if simple_node.type == syms
[all...]
H A Dfix_next.py10 from ..pygram import python_symbols as syms namespace
94 if node.type == syms.expr_stmt:
96 if node.type == syms.simple_stmt or node.parent is None:
H A Dfix_sys_exc.py12 from ..fixer_util import Attr, Call, Name, Number, Subscript, Node, syms namespace
30 return Node(syms.power, attr, prefix=node.prefix)
H A Dfix_exitfunc.py8 from lib2to3.fixer_util import Name, Attr, Call, Comma, Newline, syms namespace
46 register = pytree.Node(syms.power,
60 if names.type == syms.dotted_as_names:
67 new_import = pytree.Node(syms.import_name,
70 new = pytree.Node(syms.simple_stmt, [new_import])
H A Dfix_tuple_params.py25 from ..fixer_util import Assign, Name, Newline, Number, Subscript, syms namespace
75 new_lines.append(pytree.Node(syms.simple_stmt,
78 if args.type == syms.tfpdef:
80 elif args.type == syms.typedargslist:
82 if arg.type == syms.tfpdef:
131 new = pytree.Node(syms.power,
140 if node.type in (syms.vfplist, token.NAME):
142 elif node.type == syms.vfpdef:
145 while node.type == syms.vfpdef:
151 if node.type == syms
[all...]
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/lib2to3/
H A Dbtm_utils.py7 syms = pattern_symbols variable
114 if node.type == syms.Matcher:
118 if node.type == syms.Alternatives :
133 elif node.type == syms.Alternative:
148 elif node.type == syms.Unit:
170 if child.type == syms.Details:
173 elif child.type == syms.Repeater:
176 elif child.type == syms.Alternatives:
210 elif name_leaf.type == syms.Alternatives:

Completed in 992 milliseconds

12