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>
This commit is contained in:
Robert Griesemer 2018-01-02 13:36:38 -08:00
parent 7ac393a3f2
commit e87f2a1b70
5 changed files with 17 additions and 34 deletions

View file

@ -7,6 +7,7 @@ package syntax
import (
"fmt"
"os"
"strings"
"testing"
)
@ -29,7 +30,7 @@ func TestPrintString(t *testing.T) {
"package p; type _ = int; type T1 = struct{}; type ( _ = *struct{}; T2 = float32 )",
// TODO(gri) expand
} {
ast, err := ParseBytes(nil, []byte(want), nil, nil, nil, 0)
ast, err := Parse(nil, strings.NewReader(want), nil, nil, nil, 0)
if err != nil {
t.Error(err)
continue