Home
last modified time | relevance | path

Searched refs:stmt_ty (Results 1 – 11 of 11) sorted by relevance

/third_party/python/Include/internal/
Dpycore_ast.h17 typedef struct _stmt *stmt_ty; typedef
64 stmt_ty typed_elements[1];
634 stmt_ty _PyAST_FunctionDef(identifier name, arguments_ty args, asdl_stmt_seq *
639 stmt_ty _PyAST_AsyncFunctionDef(identifier name, arguments_ty args,
644 stmt_ty _PyAST_ClassDef(identifier name, asdl_expr_seq * bases,
649 stmt_ty _PyAST_Return(expr_ty value, int lineno, int col_offset, int
651 stmt_ty _PyAST_Delete(asdl_expr_seq * targets, int lineno, int col_offset, int
653 stmt_ty _PyAST_Assign(asdl_expr_seq * targets, expr_ty value, string
656 stmt_ty _PyAST_AugAssign(expr_ty target, operator_ty op, expr_ty value, int
659 stmt_ty _PyAST_AnnAssign(expr_ty target, expr_ty annotation, expr_ty value, int
[all …]
/third_party/python/Grammar/
Dpython.gram60 | NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, CHECK(stmt_ty, _PyAST_Pass(EXTRA))) }
67 simple_stmt[stmt_ty] (memo):
81 compound_stmt[stmt_ty]:
92 assignment[stmt_ty]:
95 stmt_ty,
102 … CHECK_VERSION(stmt_ty, 6, "Variable annotations syntax is", _PyAST_AnnAssign(a, b, c, 0, EXTRA)) }
124 global_stmt[stmt_ty]: 'global' a[asdl_expr_seq*]=','.NAME+ {
126 nonlocal_stmt[stmt_ty]: 'nonlocal' a[asdl_expr_seq*]=','.NAME+ {
129 yield_stmt[stmt_ty]: y=yield_expr { _PyAST_Expr(y, EXTRA) }
131 assert_stmt[stmt_ty]: 'assert' a=expression b=[',' z=expression { z }] { _PyAST_Assert(a, b, EXTRA)…
[all …]
/third_party/python/Python/
Dfuture.c9 future_check_features(PyFutureFeatures *ff, stmt_ty s, PyObject *filename) in future_check_features()
80 stmt_ty s = (stmt_ty)asdl_seq_GET(mod->v.Module.body, i); in future_parse()
DPython-ast.c361 GENERATE_ASDL_SEQ_CONSTRUCTOR(stmt, stmt_ty)
1847 static int obj2ast_stmt(struct ast_state *state, PyObject* obj, stmt_ty* out,
1943 stmt_ty
1949 stmt_ty p; in _PyAST_FunctionDef()
1960 p = (stmt_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_FunctionDef()
1977 stmt_ty
1983 stmt_ty p; in _PyAST_AsyncFunctionDef()
1994 p = (stmt_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_AsyncFunctionDef()
2011 stmt_ty
2017 stmt_ty p; in _PyAST_ClassDef()
[all …]
Dcompile.c272 static int compiler_visit_stmt(struct compiler *, stmt_ty);
275 static int compiler_augassign(struct compiler *, stmt_ty);
276 static int compiler_annassign(struct compiler *, stmt_ty);
284 static int compiler_with(struct compiler *, stmt_ty, int);
285 static int compiler_async_with(struct compiler *, stmt_ty, int);
286 static int compiler_async_for(struct compiler *, stmt_ty);
290 static int compiler_try_except(struct compiler *, stmt_ty);
306 static int compiler_match(struct compiler *, stmt_ty);
1675 stmt_ty st; in find_ann()
1678 st = (stmt_ty)asdl_seq_GET(stmts, i); in find_ann()
[all …]
Dast.c21 static int validate_stmt(struct validator *, stmt_ty);
675 validate_stmt(struct validator *state, stmt_ty stmt) in validate_stmt()
870 stmt_ty stmt = asdl_seq_GET(seq, i); in validate_stmts()
980 stmt_ty st = asdl_seq_GET(body, 0); in _PyAST_GetDocString()
Dast_opt.c405 static int astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
450 stmt_ty st = (stmt_ty)asdl_seq_GET(stmts, 0); in astfold_body()
653 astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_stmt()
Dsymtable.c210 static int symtable_visit_stmt(struct symtable *st, stmt_ty s);
225 static int symtable_visit_annotations(struct symtable *st, stmt_ty, arguments_ty, expr_ty);
327 (stmt_ty)asdl_seq_GET(seq, i))) in _PySymtable_Build()
338 (stmt_ty)asdl_seq_GET(seq, i))) in _PySymtable_Build()
1200 symtable_visit_stmt(struct symtable *st, stmt_ty s) in symtable_visit_stmt()
1859 symtable_visit_annotations(struct symtable *st, stmt_ty o, arguments_ty a, expr_ty returns) in symtable_visit_annotations()
/third_party/python/Parser/
Dpegen.h282 stmt_ty _PyPegen_function_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
283 stmt_ty _PyPegen_class_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
Dparser.c514 static stmt_ty simple_stmt_rule(Parser *p);
515 static stmt_ty compound_stmt_rule(Parser *p);
516 static stmt_ty assignment_rule(Parser *p);
518 static stmt_ty global_stmt_rule(Parser *p);
519 static stmt_ty nonlocal_stmt_rule(Parser *p);
520 static stmt_ty yield_stmt_rule(Parser *p);
521 static stmt_ty assert_stmt_rule(Parser *p);
522 static stmt_ty del_stmt_rule(Parser *p);
523 static stmt_ty import_stmt_rule(Parser *p);
524 static stmt_ty import_name_rule(Parser *p);
[all …]
Dpegen.c2241 stmt_ty
2242 _PyPegen_function_def_decorators(Parser *p, asdl_expr_seq *decorators, stmt_ty function_def) in _PyPegen_function_def_decorators()
2264 stmt_ty
2265 _PyPegen_class_def_decorators(Parser *p, asdl_expr_seq *decorators, stmt_ty class_def) in _PyPegen_class_def_decorators()