1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:50:24 -07:00

Urgent parser/gofmt fix.

Wrong position information for identifier
could lead to destructive reformatting of
source via hg gofmt.

R=rsc
CC=golang-dev
https://golang.org/cl/189100
This commit is contained in:
Robert Griesemer 2010-01-15 23:17:48 -08:00
parent 11b459cba8
commit e85f8378b8

View File

@ -357,7 +357,7 @@ func (p *parser) findIdent() *ast.Ident {
if obj == nil {
obj = ast.NewObj(ast.Err, pos, name)
}
return &ast.Ident{obj.Pos, obj}
return &ast.Ident{pos, obj}
}