summaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax/source.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2016-12-08 15:19:47 -0800
committerRobert Griesemer <gri@golang.org>2016-12-09 00:35:07 +0000
commiteaca0e0529b780f4c862a97aa47008aa1b403adf (patch)
treefffd2a59efa97fc2099b6ae6451386c4c983c847 /src/cmd/compile/internal/syntax/source.go
parentc10499b539b964d647a9153cbf44e9c39661c397 (diff)
downloadgo-git-eaca0e0529b780f4c862a97aa47008aa1b403adf.tar.gz
[dev.inline] cmd/internal/src: introduce NoPos and use it instead Pos{}
Using a variable instead of a composite literal makes the code independent of implementation changes of Pos. Per David Lazar's suggestion. Change-Id: I336967ac12a027c51a728a58ac6207cb5119af4a Reviewed-on: https://go-review.googlesource.com/34148 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/syntax/source.go')
0 files changed, 0 insertions, 0 deletions