Skip to content

[Python] Fix index when combining inserts#3205

Open
JamesHutch wants to merge 1 commit into
antlr:devfrom
JamesHutch:master
Open

[Python] Fix index when combining inserts#3205
JamesHutch wants to merge 1 commit into
antlr:devfrom
JamesHutch:master

Conversation

@JamesHutch

Copy link
Copy Markdown

prevInserts list is the subset of rewrites, so indices taken from
enumerating its elements do not correspond to the correct indices in
rewrites. Use prevIop.instructionIndex instead, which matches the other
runtimes.

prevInserts list is the subset of rewrites, so indices taken from
enumerating its elements do not correspond to the correct indices in
rewrites. Use prevIop.instructionIndex instead, which matches the other
runtimes.
@ericvergnaud

Copy link
Copy Markdown
Contributor

@lygav as original writer of this code, can you check whether this fix is ok ?

@lygav

lygav commented Jun 30, 2021

Copy link
Copy Markdown
Contributor

Hi @JamesHutch , can you write a test to demonstrate the issue and verify the solution?

@parrt parrt changed the base branch from master to dev March 27, 2022 18:07
@parrt

parrt commented Mar 27, 2022

Copy link
Copy Markdown
Member

I'm going to leave this for after 4.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants