Home
last modified time | relevance | path

Searched refs:FunctionDef (Results 1 – 14 of 14) sorted by relevance

/third_party/python/Python/
Dsymtable.c1209 if (!symtable_add_def(st, s->v.FunctionDef.name, DEF_LOCAL, LOCATION(s))) in symtable_visit_stmt()
1211 if (s->v.FunctionDef.args->defaults) in symtable_visit_stmt()
1212 VISIT_SEQ(st, expr, s->v.FunctionDef.args->defaults); in symtable_visit_stmt()
1213 if (s->v.FunctionDef.args->kw_defaults) in symtable_visit_stmt()
1214 VISIT_SEQ_WITH_NULL(st, expr, s->v.FunctionDef.args->kw_defaults); in symtable_visit_stmt()
1215 if (!symtable_visit_annotations(st, s, s->v.FunctionDef.args, in symtable_visit_stmt()
1216 s->v.FunctionDef.returns)) in symtable_visit_stmt()
1218 if (s->v.FunctionDef.decorator_list) in symtable_visit_stmt()
1219 VISIT_SEQ(st, expr, s->v.FunctionDef.decorator_list); in symtable_visit_stmt()
1220 if (!symtable_enter_block(st, s->v.FunctionDef.name, in symtable_visit_stmt()
[all …]
Dast.c686 ret = validate_body(state, stmt->v.FunctionDef.body, "FunctionDef") && in validate_stmt()
687 validate_arguments(state, stmt->v.FunctionDef.args) && in validate_stmt()
688 validate_exprs(state, stmt->v.FunctionDef.decorator_list, Load, 0) && in validate_stmt()
689 (!stmt->v.FunctionDef.returns || in validate_stmt()
690 validate_expr(state, stmt->v.FunctionDef.returns, Load)); in validate_stmt()
Dast_opt.c662 CALL(astfold_arguments, arguments_ty, node_->v.FunctionDef.args); in astfold_stmt()
663 CALL(astfold_body, asdl_seq, node_->v.FunctionDef.body); in astfold_stmt()
664 CALL_SEQ(astfold_expr, expr, node_->v.FunctionDef.decorator_list); in astfold_stmt()
666 CALL_OPT(astfold_expr, expr_ty, node_->v.FunctionDef.returns); in astfold_stmt()
DPython-ast.c1964 p->v.FunctionDef.name = name; in _PyAST_FunctionDef()
1965 p->v.FunctionDef.args = args; in _PyAST_FunctionDef()
1966 p->v.FunctionDef.body = body; in _PyAST_FunctionDef()
1967 p->v.FunctionDef.decorator_list = decorator_list; in _PyAST_FunctionDef()
1968 p->v.FunctionDef.returns = returns; in _PyAST_FunctionDef()
1969 p->v.FunctionDef.type_comment = type_comment; in _PyAST_FunctionDef()
3654 value = ast2obj_identifier(state, o->v.FunctionDef.name); in ast2obj_stmt()
3659 value = ast2obj_arguments(state, o->v.FunctionDef.args); in ast2obj_stmt()
3664 value = ast2obj_list(state, (asdl_seq*)o->v.FunctionDef.body, in ast2obj_stmt()
3670 value = ast2obj_list(state, (asdl_seq*)o->v.FunctionDef.decorator_list, in ast2obj_stmt()
[all …]
Dcompile.c2344 args = s->v.FunctionDef.args; in compiler_function()
2345 returns = s->v.FunctionDef.returns; in compiler_function()
2346 decos = s->v.FunctionDef.decorator_list; in compiler_function()
2347 name = s->v.FunctionDef.name; in compiler_function()
2348 body = s->v.FunctionDef.body; in compiler_function()
/third_party/python/Parser/
Dpegen.c2247 function_def->v.FunctionDef.name, function_def->v.FunctionDef.args, in _PyPegen_function_def_decorators()
2248 function_def->v.FunctionDef.body, decorators, function_def->v.FunctionDef.returns, in _PyPegen_function_def_decorators()
2249 function_def->v.FunctionDef.type_comment, function_def->lineno, in _PyPegen_function_def_decorators()
2255 function_def->v.FunctionDef.name, function_def->v.FunctionDef.args, in _PyPegen_function_def_decorators()
2256 function_def->v.FunctionDef.body, decorators, in _PyPegen_function_def_decorators()
2257 function_def->v.FunctionDef.returns, in _PyPegen_function_def_decorators()
2258 function_def->v.FunctionDef.type_comment, function_def->lineno, in _PyPegen_function_def_decorators()
DPython.asdl11 stmt = FunctionDef(identifier name, arguments args,
/third_party/python/Doc/library/
Dast.rst1619 .. class:: FunctionDef(name, args, body, decorator_list, returns, type_comment)
1638 expression. Unlike :class:`FunctionDef`, ``body`` holds a single node.
1693 FunctionDef(
1804 * ``decorator_list`` is a list of nodes, as in :class:`FunctionDef`.
1838 :class:`FunctionDef`.
1994 :class:`FunctionDef`, :class:`AsyncFunctionDef`, :class:`ClassDef`,
/third_party/python/Lib/test/
Dtest_ast.py1165 f = ast.FunctionDef("x", a, [], [], None)
1167 f = ast.FunctionDef("x", a, [ast.Pass()], [ast.Name("x", ast.Store())],
1170 f = ast.FunctionDef("x", a, [ast.Pass()], [],
1174 return ast.FunctionDef("x", args, [ast.Pass()], [], None)
/third_party/python/Misc/NEWS.d/
D3.7.0b5.rst69 Module, ClassDef, FunctionDef, and AsyncFunctionDef ast nodes which was
D3.7.0a1.rst787 Add ``docstring`` field to Module, ClassDef, FunctionDef, and
D3.8.0a1.rst1540 Module, ClassDef, FunctionDef, and AsyncFunctionDef ast nodes which was
/third_party/python/Lib/
Dast.py282 if not isinstance(node, (AsyncFunctionDef, FunctionDef, ClassDef, Module)):
778 node, (AsyncFunctionDef, FunctionDef, ClassDef, Module)
/third_party/python/Include/internal/
Dpycore_ast.h195 } FunctionDef; member