aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax/parser_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2020-10-12 13:11:03 -0700
committerRobert Griesemer <gri@golang.org>2020-10-13 00:22:03 +0000
commit617b6339170a56a235625f8359730ba710d3ae96 (patch)
treee305a6eee8b80d9bd924dd006a51c689c2c75835 /src/cmd/compile/internal/syntax/parser_test.go
parent986cad14e2ebf671b39623de438d13b0b5d99be6 (diff)
downloadgo-617b6339170a56a235625f8359730ba710d3ae96.tar.gz
go-617b6339170a56a235625f8359730ba710d3ae96.zip
[dev.typeparams] cmd/compile/internal/syntax: prepare syntax nodes for type parameters
- add TParamList fields to TypeDecl, FuncDecl - also: change File.Lines to File.EOF so we have the actual file end position Change-Id: Ia345f888080a884f7ac5cefd8bff3d80e4a59cdc Reviewed-on: https://go-review.googlesource.com/c/go/+/261657 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> 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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/syntax/parser_test.go b/src/cmd/compile/internal/syntax/parser_test.go
index 81945faee9..f1c5433b40 100644
--- a/src/cmd/compile/internal/syntax/parser_test.go
+++ b/src/cmd/compile/internal/syntax/parser_test.go
@@ -76,7 +76,7 @@ func TestStdLib(t *testing.T) {
if *verify {
verifyPrint(filename, ast)
}
- results <- parseResult{filename, ast.Lines}
+ results <- parseResult{filename, ast.EOF.Line()}
})
}
}()