Lines Matching refs:st_cur
83 if (st->st_cur != NULL && in ste_new()
84 (st->st_cur->ste_nested || in ste_new()
85 st->st_cur->ste_type == FunctionBlock)) in ste_new()
240 st->st_cur = NULL; in symtable_new()
300 st->st_top = st->st_cur; in PySymtable_BuildObject()
956 st->st_cur = NULL; in symtable_exit_block()
962 st->st_cur = (PySTEntryObject *)PyList_GET_ITEM(st->st_stack, size - 1); in symtable_exit_block()
980 prev = st->st_cur; in symtable_enter_block()
990 st->st_cur = ste; in symtable_enter_block()
992 st->st_global = st->st_cur->ste_symbols; in symtable_enter_block()
1007 long ret = _PyST_GetSymbol(st->st_cur, mangled); in symtable_lookup()
1096 return symtable_add_def_helper(st, name, flag, st->st_cur); in symtable_add_def()
1153 if (!st->st_cur->ste_directives) { in symtable_record_directive()
1154 st->st_cur->ste_directives = PyList_New(0); in symtable_record_directive()
1155 if (!st->st_cur->ste_directives) in symtable_record_directive()
1164 res = PyList_Append(st->st_cur->ste_directives, data); in symtable_record_directive()
1222 st->st_cur->ste_returns_value = 1; in symtable_visit_stmt()
1240 && (st->st_cur->ste_symbols != st->st_global) in symtable_visit_stmt()
1413 st->st_cur->ste_coroutine = 1; in symtable_visit_stmt()
1509 if (st->st_cur->ste_comp_iter_expr > 0) { in symtable_handle_namedexpr()
1517 if (st->st_cur->ste_comprehension) { in symtable_handle_namedexpr()
1598 st->st_cur->ste_generator = 1; in symtable_visit_expr()
1602 st->st_cur->ste_generator = 1; in symtable_visit_expr()
1606 st->st_cur->ste_coroutine = 1; in symtable_visit_expr()
1653 st->st_cur->ste_type == FunctionBlock && in symtable_visit_expr()
1752 st->st_cur->ste_varargs = 1; in symtable_visit_arguments()
1757 st->st_cur->ste_varkeywords = 1; in symtable_visit_arguments()
1812 if (st->st_cur->ste_type != ModuleBlock) { in symtable_visit_alias()
1813 int lineno = st->st_cur->ste_lineno; in symtable_visit_alias()
1814 int col_offset = st->st_cur->ste_col_offset; in symtable_visit_alias()
1829 st->st_cur->ste_comp_iter_target = 1; in symtable_visit_comprehension()
1831 st->st_cur->ste_comp_iter_target = 0; in symtable_visit_comprehension()
1832 st->st_cur->ste_comp_iter_expr++; in symtable_visit_comprehension()
1834 st->st_cur->ste_comp_iter_expr--; in symtable_visit_comprehension()
1837 st->st_cur->ste_coroutine = 1; in symtable_visit_comprehension()
1860 st->st_cur->ste_comp_iter_expr++; in symtable_handle_comprehension()
1862 st->st_cur->ste_comp_iter_expr--; in symtable_handle_comprehension()
1870 st->st_cur->ste_coroutine = 1; in symtable_handle_comprehension()
1872 st->st_cur->ste_comprehension = 1; in symtable_handle_comprehension()
1880 st->st_cur->ste_comp_iter_target = 1; in symtable_handle_comprehension()
1882 st->st_cur->ste_comp_iter_target = 0; in symtable_handle_comprehension()
1889 if (st->st_cur->ste_generator) { in symtable_handle_comprehension()
1896 st->st_cur->ste_lineno, in symtable_handle_comprehension()
1897 st->st_cur->ste_col_offset + 1); in symtable_handle_comprehension()
1901 st->st_cur->ste_generator = is_generator; in symtable_handle_comprehension()