]> Cypherpunks repositories - gostls13.git/commit
position.go: more flexible AddFile method
authorRobert Griesemer <gri@golang.org>
Sun, 21 Nov 2010 05:30:36 +0000 (21:30 -0800)
committerRobert Griesemer <gri@golang.org>
Sun, 21 Nov 2010 05:30:36 +0000 (21:30 -0800)
commite21aac29ba179c310b4b834bc3c37f152ab20bf2
treeccb185c6881582415fd435dbada752c429e5ff51
parent8cb8ba14a5c2d196105ba2c47c788610ad8d1971
position.go: more flexible AddFile method

This will make it easier to use Pos values
together with suffix arrays by slightly de-
coupling the mapping of Pos values to global
offsets.

R=rsc
CC=golang-dev
https://golang.org/cl/3231041
src/pkg/go/token/position.go
src/pkg/go/token/position_test.go