go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.37k stars 2.13k forks source link

proc: refactor identifier evaluation for range-over-func support #3738

Closed aarzilli closed 2 weeks ago

aarzilli commented 1 month ago

Because of how range-over-func is implemented it is difficult to determine the set of visible local variables during expression compilation (i.e. it is difficulto to keep the HasLocal function correct).

This commit moves that logic from expression compilation to expression evaluation.

Updates #3733