[dev.inline] cmd/compile/internal/syntax: introduce general position info for nodes

Reviewed in and cherry-picked from https://go-review.googlesource.com/#/c/33758/.
Minor adjustments in noder.go to fix merge.

Change-Id: Ibe429e327c7f8554f8ac205c61ce3738013aed98
Reviewed-on: https://go-review.googlesource.com/34231
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Robert Griesemer 2016-11-29 16:13:09 -08:00
parent eaca0e0529
commit 8d20b25779
11 changed files with 380 additions and 111 deletions

View file

@ -39,7 +39,7 @@ func TestStdLib(t *testing.T) {
type parseResult struct {
filename string
lines int
lines uint
}
results := make(chan parseResult)
@ -65,7 +65,7 @@ func TestStdLib(t *testing.T) {
}
}()
var count, lines int
var count, lines uint
for res := range results {
count++
lines += res.lines