Skip to content

Commit 19d1e43

Browse files
authored
gh-121352: use _Py_SourceLocation in symtable (#121353)
1 parent 2f5f19e commit 19d1e43

File tree

2 files changed

+69
-133
lines changed

2 files changed

+69
-133
lines changed

Include/internal/pycore_symtable.h

+1-6
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,7 @@ typedef struct _symtable_entry {
127127
unsigned ste_can_see_class_scope : 1; /* true if this block can see names bound in an
128128
enclosing class scope */
129129
int ste_comp_iter_expr; /* non-zero if visiting a comprehension range expression */
130-
int ste_lineno; /* first line of block */
131-
int ste_col_offset; /* offset of first line of block */
132-
int ste_end_lineno; /* end line of block */
133-
int ste_end_col_offset; /* end offset of first line of block */
134-
int ste_opt_lineno; /* lineno of last exec or import * */
135-
int ste_opt_col_offset; /* offset of last exec or import * */
130+
_Py_SourceLocation ste_loc; /* source location of block */
136131
struct _symtable_entry *ste_annotation_block; /* symbol table entry for this entry's annotations */
137132
struct symtable *ste_table;
138133
} PySTEntryObject;

0 commit comments

Comments
 (0)