Lines Matching refs:st_cur
67 if (st->st_cur != NULL && in ste_new()
68 (st->st_cur->ste_nested || in ste_new()
69 st->st_cur->ste_type == FunctionBlock)) in ste_new()
212 st->st_cur = NULL; in symtable_new()
237 st->st_top = st->st_cur; in PySymtable_Build()
238 st->st_cur->ste_unoptimized = OPT_TOPLEVEL; in PySymtable_Build()
804 lineno = st->st_cur->ste_lineno; in symtable_warn()
829 Py_CLEAR(st->st_cur); in symtable_exit_block()
832 st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, in symtable_exit_block()
834 if (st->st_cur == NULL) in symtable_exit_block()
836 Py_INCREF(st->st_cur); in symtable_exit_block()
849 if (st->st_cur) { in symtable_enter_block()
850 prev = st->st_cur; in symtable_enter_block()
851 if (PyList_Append(st->st_stack, (PyObject *)st->st_cur) < 0) { in symtable_enter_block()
854 Py_DECREF(st->st_cur); in symtable_enter_block()
856 st->st_cur = ste_new(st, name, block, ast, lineno); in symtable_enter_block()
857 if (st->st_cur == NULL) in symtable_enter_block()
860 st->st_global = st->st_cur->ste_symbols; in symtable_enter_block()
863 (PyObject *)st->st_cur) < 0) { in symtable_enter_block()
877 o = PyDict_GetItem(st->st_cur->ste_symbols, mangled); in symtable_lookup()
894 dict = st->st_cur->ste_symbols; in symtable_add_def()
902 st->st_cur->ste_lineno); in symtable_add_def()
918 if (PyList_Append(st->st_cur->ste_varnames, mangled) < 0) in symtable_add_def()
1046 st->st_cur->ste_returns_value = 1; in symtable_visit_stmt()
1047 if (st->st_cur->ste_generator) { in symtable_visit_stmt()
1120 if (st->st_cur->ste_unoptimized && !st->st_cur->ste_opt_lineno) in symtable_visit_stmt()
1121 st->st_cur->ste_opt_lineno = s->lineno; in symtable_visit_stmt()
1127 if (st->st_cur->ste_unoptimized && !st->st_cur->ste_opt_lineno) in symtable_visit_stmt()
1128 st->st_cur->ste_opt_lineno = s->lineno; in symtable_visit_stmt()
1132 if (!st->st_cur->ste_opt_lineno) in symtable_visit_stmt()
1133 st->st_cur->ste_opt_lineno = s->lineno; in symtable_visit_stmt()
1135 st->st_cur->ste_unoptimized |= OPT_EXEC; in symtable_visit_stmt()
1140 st->st_cur->ste_unoptimized |= OPT_BARE_EXEC; in symtable_visit_stmt()
1248 st->st_cur->ste_generator = 1; in symtable_visit_expr()
1249 if (st->st_cur->ste_returns_value) { in symtable_visit_expr()
1340 st->st_cur->ste_lineno); in symtable_visit_params()
1378 st->st_cur->ste_varargs = 1; in symtable_visit_arguments()
1383 st->st_cur->ste_varkeywords = 1; in symtable_visit_arguments()
1429 if (st->st_cur->ste_type != ModuleBlock && in symtable_visit_alias()
1435 st->st_cur->ste_unoptimized |= OPT_IMPORT_STAR; in symtable_visit_alias()
1491 ++st->st_cur->ste_tmpname); in symtable_new_tmpname()
1519 is_generator |= st->st_cur->ste_generator; in symtable_handle_comprehension()
1520 st->st_cur->ste_generator = 0; in symtable_handle_comprehension()
1538 if (Py_Py3kWarningFlag && st->st_cur->ste_generator) { in symtable_handle_comprehension()
1548 st->st_cur->ste_generator |= is_generator; in symtable_handle_comprehension()
1559 is_generator = st->st_cur->ste_generator; in symtable_visit_listcomp()
1560 st->st_cur->ste_generator = 0; in symtable_visit_listcomp()
1565 if (i == 0 && !st->st_cur->ste_generator) { in symtable_visit_listcomp()
1568 is_generator |= st->st_cur->ste_generator; in symtable_visit_listcomp()
1569 st->st_cur->ste_generator = 0; in symtable_visit_listcomp()
1577 if (Py_Py3kWarningFlag && st->st_cur->ste_generator) { in symtable_visit_listcomp()
1583 st->st_cur->ste_generator |= is_generator; in symtable_visit_listcomp()