]> Cypherpunks repositories - gostls13.git/commit
go/ast: minor cleanup
authorRobert Griesemer <gri@golang.org>
Tue, 27 Nov 2012 01:17:49 +0000 (17:17 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 27 Nov 2012 01:17:49 +0000 (17:17 -0800)
commitbb7c3c680323a019d7e6cfa6a8eb291e676524e3
tree3e957155a5e5da948bf918034d6abe844619d3f1
parent178c8578d5794aee6b111c6831e9a04e8a9d51ae
go/ast: minor cleanup

It's better to use IsValid() then checking a (possibly
partially set up) position against NoPos directly.

R=dsymonds
CC=golang-dev
https://golang.org/cl/6855099
src/pkg/go/ast/import.go