aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax/nodes_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2018-01-02 13:36:38 -0800
committerRobert Griesemer <gri@golang.org>2018-02-12 22:57:49 +0000
commite87f2a1b70f4751551ea5bd33e0db3417e76ac4c (patch)
treeac4c32bb09839baea1e60de2d7e757b9709988ff /src/cmd/compile/internal/syntax/nodes_test.go
parent7ac393a3f208ab72263a245b80e22ad62abae565 (diff)
downloadgo-e87f2a1b70f4751551ea5bd33e0db3417e76ac4c.tar.gz
go-e87f2a1b70f4751551ea5bd33e0db3417e76ac4c.zip
cmd/compile/internal/syntax: remove ParseBytes from API - not needed
R=go1.11 Also: Minor updates to syntax.Parse doc string. Change-Id: I649965be9670a2f1c3de2cdb350634ed21e36ad9 Reviewed-on: https://go-review.googlesource.com/85663 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/syntax/nodes_test.go')
-rw-r--r--src/cmd/compile/internal/syntax/nodes_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/syntax/nodes_test.go b/src/cmd/compile/internal/syntax/nodes_test.go
index 1bba9eeacf..433ae30661 100644
--- a/src/cmd/compile/internal/syntax/nodes_test.go
+++ b/src/cmd/compile/internal/syntax/nodes_test.go
@@ -290,8 +290,8 @@ func testPos(t *testing.T, list []test, prefix, suffix string, extract func(*Fil
continue
}
- // build syntaxt tree
- file, err := ParseBytes(nil, []byte(src), nil, nil, nil, 0)
+ // build syntax tree
+ file, err := Parse(nil, strings.NewReader(src), nil, nil, nil, 0)
if err != nil {
t.Errorf("parse error: %s: %v (%s)", src, err, test.nodetyp)
continue