Home
last modified time | relevance | path

Searched refs:DEF_LOCAL (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Include/internal/
Dpycore_symtable.h95 #define DEF_LOCAL 2 /* assignment in code block */ macro
105 #define DEF_BOUND (DEF_LOCAL | DEF_PARAM | DEF_IMPORT)
112 #define SCOPE_MASK (DEF_GLOBAL | DEF_LOCAL | DEF_PARAM | DEF_NONLOCAL)
/third_party/python/Python/
Dsymtable.c1209 if (!symtable_add_def(st, s->v.FunctionDef.name, DEF_LOCAL, LOCATION(s))) in symtable_visit_stmt()
1231 if (!symtable_add_def(st, s->v.ClassDef.name, DEF_LOCAL, LOCATION(s))) in symtable_visit_stmt()
1284 DEF_ANNOT | DEF_LOCAL, LOCATION(e_name))) { in symtable_visit_stmt()
1289 && !symtable_add_def(st, e_name->v.Name.id, DEF_LOCAL, LOCATION(e_name))) { in symtable_visit_stmt()
1366 if (cur & (DEF_PARAM | DEF_LOCAL | USE | DEF_ANNOT)) { in symtable_visit_stmt()
1402 if (cur & (DEF_PARAM | DEF_LOCAL | USE | DEF_ANNOT)) { in symtable_visit_stmt()
1442 if (!symtable_add_def(st, s->v.AsyncFunctionDef.name, DEF_LOCAL, LOCATION(s))) in symtable_visit_stmt()
1526 return symtable_add_def_helper(st, target_name, DEF_LOCAL, ste, LOCATION(e)); in symtable_extend_namedexpr_scope()
1720 e->v.Name.ctx == Load ? USE : DEF_LOCAL, LOCATION(e))) in symtable_visit_expr()
1762 symtable_add_def(st, p->v.MatchStar.name, DEF_LOCAL, LOCATION(p)); in symtable_visit_pattern()
[all …]
/third_party/python/Lib/
Dsymtable.py4 from _symtable import (USE, DEF_GLOBAL, DEF_NONLOCAL, DEF_LOCAL, DEF_PARAM,
287 return bool(self.__flags & DEF_LOCAL)
/third_party/python/Modules/
Dsymtablemodule.c82 if (PyModule_AddIntMacro(m, DEF_LOCAL) < 0) return -1; in symtable_init_constants()