Home
last modified time | relevance | path

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

/third_party/python/Include/internal/
H A Dpycore_ast.h17 typedef struct _stmt *stmt_ty; typedef
64 stmt_ty typed_elements[1];
641 stmt_ty _PyAST_FunctionDef(identifier name, arguments_ty args, asdl_stmt_seq *
646 stmt_ty _PyAST_AsyncFunctionDef(identifier name, arguments_ty args,
651 stmt_ty _PyAST_ClassDef(identifier name, asdl_expr_seq * bases,
656 stmt_ty _PyAST_Return(expr_ty value, int lineno, int col_offset, int
658 stmt_ty _PyAST_Delete(asdl_expr_seq * targets, int lineno, int col_offset, int
660 stmt_ty _PyAST_Assign(asdl_expr_seq * targets, expr_ty value, string
663 stmt_ty _PyAST_AugAssign(expr_ty target, operator_ty op, expr_ty value, int
666 stmt_ty _PyAST_AnnAssig
[all...]
/third_party/python/Python/
H A 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()
H A DPython-ast.c363 GENERATE_ASDL_SEQ_CONSTRUCTOR(stmt, stmt_ty)
1862 static int obj2ast_stmt(struct ast_state *state, PyObject* obj, stmt_ty* out,
1958 stmt_ty
1964 stmt_ty p; in _PyAST_FunctionDef()
1975 p = (stmt_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_FunctionDef()
1992 stmt_ty
1998 stmt_ty p; in _PyAST_AsyncFunctionDef()
2009 p = (stmt_ty)_PyArena_Malloc(arena, sizeof(*p)); in _PyAST_AsyncFunctionDef()
2026 stmt_ty
2032 stmt_ty in _PyAST_ClassDef()
[all...]
H A Dcompile.c405 static int compiler_visit_stmt(struct compiler *, stmt_ty);
408 static int compiler_augassign(struct compiler *, stmt_ty);
409 static int compiler_annassign(struct compiler *, stmt_ty);
416 static int compiler_with(struct compiler *, stmt_ty, int);
417 static int compiler_async_with(struct compiler *, stmt_ty, int);
418 static int compiler_async_for(struct compiler *, stmt_ty);
426 static int compiler_try_except(struct compiler *, stmt_ty);
427 static int compiler_try_star_except(struct compiler *, stmt_ty);
443 static int compiler_match(struct compiler *, stmt_ty);
1855 stmt_ty s in find_ann()
[all...]
H A Dast_opt.c629 static int astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state);
665 stmt_ty st = (stmt_ty)asdl_seq_GET(stmts, 0); in astfold_body()
868 astfold_stmt(stmt_ty node_, PyArena *ctx_, _PyASTOptimizeState *state) in astfold_stmt()
H A Dast.c21 static int validate_stmt(struct validator *, stmt_ty);
716 validate_stmt(struct validator *state, stmt_ty stmt) in validate_stmt()
938 stmt_ty stmt = asdl_seq_GET(seq, i); in validate_stmts()
1050 stmt_ty st = asdl_seq_GET(body, 0); in _PyAST_GetDocString()
H A Dsymtable.c2 #include "pycore_ast.h" // identifier, stmt_ty
210 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);
320 (stmt_ty)asdl_seq_GET(seq, i))) in _PySymtable_Build()
331 (stmt_ty)asdl_seq_GET(seq, i))) in _PySymtable_Build()
1189 symtable_visit_stmt(struct symtable *st, stmt_ty s) in symtable_visit_stmt()
1851 symtable_visit_annotations(struct symtable *st, stmt_ty o, arguments_ty a, expr_ty returns) in symtable_visit_annotations()
H A Dtraceback.c646 extract_anchors_from_stmt(const char *segment_str, stmt_ty statement, Py_ssize_t *left_anchor, Py_ssize_t *right_anchor, in extract_anchors_from_stmt()
699 stmt_ty statement = asdl_seq_GET(module->v.Module.body, 0); in extract_anchors_from_line()
/third_party/python/Parser/
H A Dpegen.h311 stmt_ty _PyPegen_function_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
312 stmt_ty _PyPegen_class_def_decorators(Parser *, asdl_expr_seq *, stmt_ty);
H A Daction_helpers.c764 stmt_ty
765 _PyPegen_function_def_decorators(Parser *p, asdl_expr_seq *decorators, stmt_ty function_def) in _PyPegen_function_def_decorators()
787 stmt_ty
788 _PyPegen_class_def_decorators(Parser *p, asdl_expr_seq *decorators, stmt_ty class_def) in _PyPegen_class_def_decorators()
H A Dparser.c568 static stmt_ty simple_stmt_rule(Parser *p);
569 static stmt_ty compound_stmt_rule(Parser *p);
570 static stmt_ty assignment_rule(Parser *p);
573 static stmt_ty return_stmt_rule(Parser *p);
574 static stmt_ty raise_stmt_rule(Parser *p);
575 static stmt_ty global_stmt_rule(Parser *p);
576 static stmt_ty nonlocal_stmt_rule(Parser *p);
577 static stmt_ty del_stmt_rule(Parser *p);
578 static stmt_ty yield_stmt_rule(Parser *p);
579 static stmt_ty assert_stmt_rul
[all...]

Completed in 48 milliseconds