1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:54:40 -07:00

go/types: fix comment (missed in last commit)

Change-Id: I4ea2a6b89b44b11cbcf771d0aab3e30370f59d31
Reviewed-on: https://go-review.googlesource.com/10996
Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Robert Griesemer 2015-06-12 16:16:32 -07:00
parent ee0cf325b1
commit b5429ae521

View File

@ -154,7 +154,7 @@ func (check *Checker) collectObjects() {
check.recordDef(file.Name, nil)
// Use the actual source file extent rather than *ast.File extent since the
// latter doesn't include comments which appear at the end of the file.
// latter doesn't include comments which appear at the start or end of the file.
f := check.fset.File(file.Pos())
fileScope := NewScope(check.pkg.scope, token.Pos(f.Base()), token.Pos(f.Base()+f.Size()), check.filename(fileNo))
check.recordScope(file, fileScope)