mirror of
https://github.com/golang/go
synced 2024-11-18 23:05:06 -07:00
be2647ec01
Before, VarValue looked for the ssa.Value for the 'var' object in the same package as the object was defined, but this is (obviously) wrong for a cross-package FieldVal selection, expr.f. The caller must provide the package containing the reference. + test. Also: - add 2 TODOs. - split builder.expr into two functions so we don't need defer, which makes panic dumps harder to read. R=golang-dev, crawshaw CC=golang-dev https://golang.org/cl/13257045 |
||
---|---|---|
.. | ||
objlookup.go | ||
valueforexpr.go |