Descriptioncmd/gc: annotate local variables with unique ids for inlining
Avoids problems with local declarations shadowing other names.
We write a more explicit form than the incoming program, so there
may be additional type annotations. For example:
int := "hello"
j := 2
would normally turn into
var int string = "hello"
var j int = 2
but the int variable shadows the int type in the second line.
This CL marks all local variables with a per-function sequence number,
so that this would instead be:
var int·1 string = "hello"
var j·2 int = 2
Fixes issue 4326.
Patch Set 1 #Patch Set 2 : diff -r e1d0c77a3cd5 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 68b7e3a03f39 https://code.google.com/p/go/ #
MessagesTotal messages: 3
|