compiler: Add Enclosed_var_expression.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 26 Apr 2016 20:37:58 +0000 (20:37 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 26 Apr 2016 20:37:58 +0000 (20:37 +0000)
commite64e93877bfe065068b7111b7aa74d8f7d78df8f
tree9037b628a43dc83bd08039aa7677c78fda77f011
parent5e851c020abe8d78f73ace4ff8a3a2e047662865
compiler: Add Enclosed_var_expression.

    Introduces an abstraction for a variable referenced in a closure.
    This maintains the underlying expression which accesses a field within
    a closure variable and gives easy access to the underlying
    Named_object.

    Reviewed-on: https://go-review.googlesource.com/22374

From-SVN: r235452
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/parse.cc