diff options
author | Robert Griesemer <gri@golang.org> | 2016-11-29 16:13:09 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2016-12-09 00:42:42 +0000 |
commit | 8d20b25779d4ce32e8eaeb52374fba1e74f7df57 (patch) | |
tree | 1dd10782d5b321986850604da0bc743789ee31b8 /src/cmd/compile/internal/syntax/parser_test.go | |
parent | eaca0e0529b780f4c862a97aa47008aa1b403adf (diff) | |
download | go-8d20b25779d4ce32e8eaeb52374fba1e74f7df57.tar.gz go-8d20b25779d4ce32e8eaeb52374fba1e74f7df57.zip |
[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>
Diffstat (limited to 'src/cmd/compile/internal/syntax/parser_test.go')
-rw-r--r-- | src/cmd/compile/internal/syntax/parser_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/syntax/parser_test.go b/src/cmd/compile/internal/syntax/parser_test.go index c4b43bfe78..482ab05675 100644 --- a/src/cmd/compile/internal/syntax/parser_test.go +++ b/src/cmd/compile/internal/syntax/parser_test.go @@ -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 |