diff options
author | Alan Donovan <adonovan@google.com> | 2014-03-27 12:50:26 -0400 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2014-03-27 12:50:26 -0400 |
commit | 2414677bb9cf78f65fa5dba8418121bb2765bc78 (patch) | |
tree | 6f116a94040d497905d93ae1cd4d614e07e65efb /go/ssa/builder_test.go | |
parent | 8b161c33a96c6a1bdbe702094d399777cdf7b0f8 (diff) | |
download | golang-x-tools-2414677bb9cf78f65fa5dba8418121bb2765bc78.tar.gz |
go.tools/go/loader: add Config.ParserMode configuration parameter.
Existing tools use the default value of zero; their behaviour is unchanged.
(*Config).ParseFile is used only from tests.
LGTM=crawshaw, rsc, gri
R=crawshaw, gri, rsc
CC=golang-codereviews
https://golang.org/cl/79290044
Diffstat (limited to 'go/ssa/builder_test.go')
-rw-r--r-- | go/ssa/builder_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ssa/builder_test.go b/go/ssa/builder_test.go index 8a81d3abf..d69ca85c6 100644 --- a/go/ssa/builder_test.go +++ b/go/ssa/builder_test.go @@ -42,7 +42,7 @@ func main() { // Create a single-file main package. var conf loader.Config - f, err := conf.ParseFile("<input>", test, 0) + f, err := conf.ParseFile("<input>", test) if err != nil { t.Error(err) return @@ -211,7 +211,7 @@ func TestTypesWithMethodSets(t *testing.T) { for _, test := range tests { // Create a single-file main package. var conf loader.Config - f, err := conf.ParseFile("<input>", test.input, 0) + f, err := conf.ParseFile("<input>", test.input) if err != nil { t.Errorf("test %q: %s", test.input[:15], err) continue |