Home
last modified time | relevance | path

Searched refs:stmt (Results 1 – 25 of 35) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/compiler/
Dfuture.py7 def is_future(stmt): argument
9 if not isinstance(stmt, ast.From):
11 if stmt.modname == "__future__":
26 stmt = node.node
27 for s in stmt.nodes:
31 def check_stmt(self, stmt): argument
32 if is_future(stmt):
33 for name, asname in stmt.names:
39 stmt.valid_future = 1
Dtransformer.py316 def stmt(self, nodelist): member in Transformer
319 small_stmt = stmt
320 flow_stmt = stmt
321 compound_stmt = stmt
565 if node[0] == symbol.stmt:
1402 if sub[0] == symbol.stmt:
1407 if sub[0] == symbol.stmt:
1417 if n == symbol.stmt or n == symbol.simple_stmt \
1459 symbol.stmt,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dtimeit.py121 def __init__(self, stmt="pass", setup="pass", timer=default_timer): argument
125 if isinstance(stmt, basestring):
126 stmt = reindent(stmt, 8)
129 src = template % {'stmt': stmt, 'setup': setup}
131 src = template % {'stmt': stmt, 'setup': '_setup()'}
139 elif hasattr(stmt, '__call__'):
147 self.inner = _template_func(setup, stmt)
225 def timeit(stmt="pass", setup="pass", timer=default_timer, argument
228 return Timer(stmt, setup, timer).timeit(number)
230 def repeat(stmt="pass", setup="pass", timer=default_timer, argument
[all …]
Dsymbol.py24 stmt = 267 variable
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
DPython.asdl5 mod = Module(stmt* body)
6 | Interactive(stmt* body)
10 | Suite(stmt* body)
12 stmt = FunctionDef(identifier name, arguments args,
13 stmt* body, expr* decorator_list)
14 | ClassDef(identifier name, expr* bases, stmt* body, expr* decorator_list)
25 | For(expr target, expr iter, stmt* body, stmt* orelse)
26 | While(expr test, stmt* body, stmt* orelse)
27 | If(expr test, stmt* body, stmt* orelse)
28 | With(expr context_expr, expr? optional_vars, stmt* body)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dh2py.py131 stmt = '%s = %s\n' % (name, body.strip())
133 exec stmt in env
135 sys.stderr.write('Skipping: %s' % stmt)
137 outfp.write(stmt)
143 stmt = 'def %s(%s): return %s\n' % (macro, arg, body)
145 exec stmt in env
147 sys.stderr.write('Skipping: %s' % stmt)
149 outfp.write(stmt)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/
Dfix_tuple_params.py27 def is_docstring(stmt): argument
28 return isinstance(stmt, pytree.Node) and \
29 stmt.children[0].type == token.STRING
71 stmt = Assign(arg, n.clone())
76 [stmt, end.clone()]))
Dfix_except.py71 for i, stmt in enumerate(suite_stmts):
72 if isinstance(stmt, pytree.Node):
Dfix_metaclass.py160 for suite, i, stmt in find_metas(node):
161 last_metaclass = stmt
162 stmt.remove()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_compile.py296 for stmt in stmts:
297 stmt += "\n"
298 self.assertRaises(SyntaxError, compile, stmt, 'tmp', 'single')
299 self.assertRaises(SyntaxError, compile, stmt, 'tmp', 'exec')
347 for stmt in succeed:
348 compile(stmt, 'tmp', 'exec')
349 for stmt in fail:
350 self.assertRaises(SyntaxError, compile, stmt, 'tmp', 'exec')
Dtest_profile.py52 for stmt in stmts:
55 prof.runctx(stmt, globals(), locals())
60 "Profiling {0!r} didn't report list.sort:\n{1}".format(stmt, res))
Dtest_ast.py132 if isinstance(ast_node, (ast.expr, ast.stmt, ast.excepthandler)):
165 self.assertTrue(issubclass(ast.For, ast.stmt))
167 self.assertTrue(issubclass(ast.stmt, ast.AST))
Dtest_builtin.py857 for stmt in (
865 exec(stmt) in globals()
869 self.fail(stmt)
903 for stmt in (
911 exec(stmt) in globals()
915 self.fail(stmt)
Dtest_dict.py481 for stmt in ['d[x2] = 2',
490 exec stmt in locals()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/
Dexample.py159 symbol.stmt,
169 symbol.stmt,
Dunparse.py74 for stmt in tree.body:
75 self.dispatch(stmt)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dsymtable.c1013 VISIT_SEQ_IN_BLOCK(st, stmt, s->v.FunctionDef.body, s); in symtable_visit_stmt()
1029 VISIT_SEQ_IN_BLOCK(st, stmt, s->v.ClassDef.body, s); in symtable_visit_stmt()
1067 VISIT_SEQ(st, stmt, s->v.For.body); in symtable_visit_stmt()
1069 VISIT_SEQ(st, stmt, s->v.For.orelse); in symtable_visit_stmt()
1073 VISIT_SEQ(st, stmt, s->v.While.body); in symtable_visit_stmt()
1075 VISIT_SEQ(st, stmt, s->v.While.orelse); in symtable_visit_stmt()
1080 VISIT_SEQ(st, stmt, s->v.If.body); in symtable_visit_stmt()
1082 VISIT_SEQ(st, stmt, s->v.If.orelse); in symtable_visit_stmt()
1095 VISIT_SEQ(st, stmt, s->v.TryExcept.body); in symtable_visit_stmt()
1096 VISIT_SEQ(st, stmt, s->v.TryExcept.orelse); in symtable_visit_stmt()
[all …]
Dcompile.c1186 VISIT(c, stmt, (stmt_ty)asdl_seq_GET(stmts, i)); in compiler_body()
1213 VISIT_SEQ_IN_SCOPE(c, stmt, in compiler_mod()
1397 VISIT_IN_SCOPE(c, stmt, st); in compiler_function()
1601 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1603 VISIT_SEQ(c, stmt, s->v.If.body); in compiler_if()
1614 VISIT_SEQ(c, stmt, s->v.If.body); in compiler_if()
1618 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1643 VISIT_SEQ(c, stmt, s->v.For.body); in compiler_for()
1648 VISIT_SEQ(c, stmt, s->v.For.orelse); in compiler_for()
1661 VISIT_SEQ(c, stmt, s->v.While.orelse); in compiler_while()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dsymtable.c1015 VISIT_SEQ_IN_BLOCK(st, stmt, s->v.FunctionDef.body, s); in symtable_visit_stmt()
1031 VISIT_SEQ_IN_BLOCK(st, stmt, s->v.ClassDef.body, s); in symtable_visit_stmt()
1069 VISIT_SEQ(st, stmt, s->v.For.body); in symtable_visit_stmt()
1071 VISIT_SEQ(st, stmt, s->v.For.orelse); in symtable_visit_stmt()
1075 VISIT_SEQ(st, stmt, s->v.While.body); in symtable_visit_stmt()
1077 VISIT_SEQ(st, stmt, s->v.While.orelse); in symtable_visit_stmt()
1082 VISIT_SEQ(st, stmt, s->v.If.body); in symtable_visit_stmt()
1084 VISIT_SEQ(st, stmt, s->v.If.orelse); in symtable_visit_stmt()
1097 VISIT_SEQ(st, stmt, s->v.TryExcept.body); in symtable_visit_stmt()
1098 VISIT_SEQ(st, stmt, s->v.TryExcept.orelse); in symtable_visit_stmt()
[all …]
Dcompile.c1209 VISIT(c, stmt, (stmt_ty)asdl_seq_GET(stmts, i)); in compiler_body()
1236 VISIT_SEQ_IN_SCOPE(c, stmt, in compiler_mod()
1420 VISIT_IN_SCOPE(c, stmt, st); in compiler_function()
1624 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1626 VISIT_SEQ(c, stmt, s->v.If.body); in compiler_if()
1637 VISIT_SEQ(c, stmt, s->v.If.body); in compiler_if()
1641 VISIT_SEQ(c, stmt, s->v.If.orelse); in compiler_if()
1666 VISIT_SEQ(c, stmt, s->v.For.body); in compiler_for()
1671 VISIT_SEQ(c, stmt, s->v.For.orelse); in compiler_for()
1684 VISIT_SEQ(c, stmt, s->v.While.orelse); in compiler_while()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dgraminit.h14 #define stmt 267 macro
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dgraminit.h14 #define stmt 267 macro
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Grammar/
DGrammar19 file_input: (NEWLINE | stmt)* ENDMARKER
33 stmt: simple_stmt | compound_stmt
78 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/
DGrammar.txt30 file_input: (NEWLINE | stmt)* ENDMARKER
52 stmt: simple_stmt | compound_stmt
99 suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dparsermodule.c918 VALIDATER(stmt); VALIDATER(simple_stmt);
1484 int res = (validate_ntype(tree, stmt) in validate_stmt()
3101 case stmt: in validate_node()
3292 if (TYPE(CHILD(tree, j)) == stmt) in validate_file_input()

12