Home
last modified time | relevance | path

Searched refs:symtable_add_def (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Python/
Dsymtable.c979 symtable_add_def(struct symtable *st, PyObject *name, int flag) in symtable_add_def() function
1120 if (!symtable_add_def(st, s->v.FunctionDef.name, DEF_LOCAL)) in symtable_visit_stmt()
1142 if (!symtable_add_def(st, s->v.ClassDef.name, DEF_LOCAL)) in symtable_visit_stmt()
1190 !symtable_add_def(st, e_name->v.Name.id, in symtable_visit_stmt()
1196 && !symtable_add_def(st, e_name->v.Name.id, DEF_LOCAL)) { in symtable_visit_stmt()
1284 if (!symtable_add_def(st, name, DEF_GLOBAL)) in symtable_visit_stmt()
1316 if (!symtable_add_def(st, name, DEF_NONLOCAL)) in symtable_visit_stmt()
1336 if (!symtable_add_def(st, s->v.AsyncFunctionDef.name, DEF_LOCAL)) in symtable_visit_stmt()
1487 if (!symtable_add_def(st, e->v.Name.id, in symtable_visit_expr()
1495 !symtable_add_def(st, __class__, USE)) in symtable_visit_expr()
[all …]
/external/python/cpython2/Python/
Dsymtable.c885 symtable_add_def(struct symtable *st, PyObject *name, int flag) in symtable_add_def() function
1011 if (!symtable_add_def(st, s->v.FunctionDef.name, DEF_LOCAL)) in symtable_visit_stmt()
1027 if (!symtable_add_def(st, s->v.ClassDef.name, DEF_LOCAL)) in symtable_visit_stmt()
1165 if (!symtable_add_def(st, name, DEF_GLOBAL)) in symtable_visit_stmt()
1286 if (!symtable_add_def(st, e->v.Name.id, in symtable_visit_expr()
1307 if (!symtable_add_def(st, id, DEF_PARAM)) { in symtable_implicit_arg()
1326 if (!symtable_add_def(st, arg->v.Name.id, DEF_PARAM)) in symtable_visit_params()
1376 if (!symtable_add_def(st, a->vararg, DEF_PARAM)) in symtable_visit_arguments()
1381 if (!symtable_add_def(st, a->kwarg, DEF_PARAM)) in symtable_visit_arguments()
1424 int r = symtable_add_def(st, store_name, DEF_IMPORT); in symtable_visit_alias()
[all …]