Skip to content

Go-to-definition should not point to loop header definition #2841

@sharkdp

Description

@sharkdp

With the new cyclic control flow changes, go-to-definition for variables defined inside a loop now additionally points to the loop header. This should be filtered out.

while True:
    variable = 1

    variable

https://play.ty.dev/85d8590e-2f81-476e-bfc0-d922480a718c

Image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions