Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/autograph/converters/
Darg_defaults.py68 for i, d in enumerate(node.kw_defaults):
70 node.kw_defaults[i] = parser.parse_expression('None')
/external/tensorflow/tensorflow/python/autograph/pyct/
Dcompiler_test.py81 kw_defaults=[]),
/external/python/cpython3/Lib/test/
Dtest_ast.py652 defaults=None, kw_defaults=None): argument
659 if kw_defaults is None:
660 kw_defaults = []
661 args = ast.arguments(args, vararg, kwonlyargs, kw_defaults,
669 check(arguments(kw_defaults=[ast.Num(4)]),
677 kw_defaults=[None, ast.Name("x", ast.Store())]),
/external/python/cpython3/Python/
Dsymtable.c1124 if (s->v.FunctionDef.args->kw_defaults) in symtable_visit_stmt()
1125 VISIT_SEQ_WITH_NULL(st, expr, s->v.FunctionDef.args->kw_defaults); in symtable_visit_stmt()
1340 if (s->v.AsyncFunctionDef.args->kw_defaults) in symtable_visit_stmt()
1342 s->v.AsyncFunctionDef.args->kw_defaults); in symtable_visit_stmt()
1397 if (e->v.Lambda.args->kw_defaults) in symtable_visit_expr()
1398 VISIT_SEQ_WITH_NULL(st, expr, e->v.Lambda.args->kw_defaults); in symtable_visit_expr()
Dast_unparse.c225 default_count = asdl_seq_LEN(args->kw_defaults); in append_ast_args()
232 expr_ty default_ = (expr_ty)asdl_seq_GET(args->kw_defaults, di); in append_ast_args()
DPython-ast.c462 _Py_IDENTIFIER(kw_defaults);
2481 kw_defaults, arg_ty kwarg, asdl_seq * defaults, PyArena *arena) in arguments() argument
2490 p->kw_defaults = kw_defaults; in arguments()
3797 value = ast2obj_list(o->kw_defaults, ast2obj_expr); in ast2obj_arguments()
7802 asdl_seq* kw_defaults; in obj2ast_arguments() local
7895 kw_defaults = _Py_asdl_seq_new(len, arena); in obj2ast_arguments()
7896 if (kw_defaults == NULL) goto failed; in obj2ast_arguments()
7905 asdl_seq_SET(kw_defaults, i, val); in obj2ast_arguments()
7952 *out = arguments(args, vararg, kwonlyargs, kw_defaults, kwarg, defaults, in obj2ast_arguments()
Dast_opt.c665 CALL_SEQ(astfold_expr, expr_ty, node_->kw_defaults); in astfold_arguments()
Dcompile.c1668 asdl_seq *kw_defaults) in compiler_visit_kwonlydefaults() argument
1679 expr_ty default_ = asdl_seq_GET(kw_defaults, i); in compiler_visit_kwonlydefaults()
1857 args->kw_defaults); in compiler_default_arguments()
Dast.c127 if (asdl_seq_LEN(args->kw_defaults) != asdl_seq_LEN(args->kwonlyargs)) { in validate_arguments()
132 return validate_exprs(args->defaults, Load, 0) && validate_exprs(args->kw_defaults, Load, 1); in validate_arguments()
/external/python/cpython3/Parser/
DPython.asdl118 arguments = (arg* args, arg? vararg, arg* kwonlyargs, expr* kw_defaults,
/external/python/cpython3/Include/
DPython-ast.h414 asdl_seq *kw_defaults; member
622 kwonlyargs, asdl_seq * kw_defaults, arg_ty kwarg,
/external/python/cpython3/Tools/parser/
Dunparse.py625 for a, d in zip(t.kwonlyargs, t.kw_defaults):
/external/python/cpython3/Lib/
Dinspect.py2073 for name, default in zip(f.args.kwonlyargs, f.args.kw_defaults):
/external/python/cpython3/Tools/clinic/
Dclinic.py3764 if function_args.defaults or function_args.kw_defaults: