mirror of
https://github.com/golang/go
synced 2024-11-12 08:50:22 -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:
parent
11b459cba8
commit
e85f8378b8
@ -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}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user