commit | d094cbecceebc66db686ee5d943b01efaae5c0e1 | [log] [tgz] |
---|---|---|
author | Marcel van Lohuizen <mpvl@golang.org> | Mon May 20 17:46:48 2019 -0400 |
committer | Marcel van Lohuizen <mpvl@google.com> | Wed May 29 14:40:04 2019 +0000 |
tree | b2bf42a6ded4feaec23be93635499db2e6ba449d | |
parent | 13477d92ea500b432a5b8289d279f1c80696073b [diff] [blame] |
cue/token: record File pointer in Pos This is the first step to eliminate FileSet. Change-Id: Ibb8a17e429d9b2dc2fda0a739520ebef40c67761 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/2121 Reviewed-by: Marcel van Lohuizen <mpvl@google.com>
diff --git a/internal/protobuf/util.go b/internal/protobuf/util.go index e001fa8..980a7d3 100644 --- a/internal/protobuf/util.go +++ b/internal/protobuf/util.go
@@ -38,8 +38,8 @@ } var ( - newline = token.Pos(token.Newline) - newSection = token.Pos(token.NewSection) + newline = token.Newline.Pos() + newSection = token.NewSection.Pos() ) func addComments(f ast.Node, i int, doc, inline *proto.Comment) bool {