]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/src: fix Pos.String() for positions after line directives
authorRobert Griesemer <gri@golang.org>
Tue, 7 Mar 2017 22:53:56 +0000 (14:53 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 7 Mar 2017 23:06:58 +0000 (23:06 +0000)
commit752d7bad4fc6cb4c70edbe0b735ca89d7da16732
treec31b83b861f51298625f152a962ca15053e36afa
parent38409f5f35b00979cfe491a4fec6c93a6f58e037
cmd/internal/src: fix Pos.String() for positions after line directives

The old code simply printed the position of the line directive in
square brackets for a position modified by a line directive. Now
we print the corresponding actual source file position instead.

Fixes #19392.

Change-Id: I933f3e435d03a6ee8269df36ae35f9202b7b2e76
Reviewed-on: https://go-review.googlesource.com/37932
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/src/pos.go
src/cmd/internal/src/pos_test.go