Skip to content

Commit

Permalink
pythongh-121352: use _Py_SourceLocation in symtable
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Jul 3, 2024
1 parent 94f50f8 commit b858412
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 132 deletions.
7 changes: 1 addition & 6 deletions Include/internal/pycore_symtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,7 @@ typedef struct _symtable_entry {
unsigned ste_can_see_class_scope : 1; /* true if this block can see names bound in an
enclosing class scope */
int ste_comp_iter_expr; /* non-zero if visiting a comprehension range expression */
int ste_lineno; /* first line of block */
int ste_col_offset; /* offset of first line of block */
int ste_end_lineno; /* end line of block */
int ste_end_col_offset; /* end offset of first line of block */
int ste_opt_lineno; /* lineno of last exec or import * */
int ste_opt_col_offset; /* offset of last exec or import * */
_Py_SourceLocation ste_loc; /* source location of block */
struct _symtable_entry *ste_annotation_block; /* symbol table entry for this entry's annotations */
struct symtable *ste_table;
} PySTEntryObject;
Expand Down
Loading

0 comments on commit b858412

Please sign in to comment.