]> Cypherpunks repositories - gostls13.git/commit
go/scanner: removed scanner/internal-only uses of token.Position
authorRobert Griesemer <gri@golang.org>
Tue, 2 Nov 2010 17:38:07 +0000 (10:38 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 2 Nov 2010 17:38:07 +0000 (10:38 -0700)
commit396228a6525b211e0c368f255724eeefef264062
tree52061abf037e2057988ab48b6965e6aee70f3d23
parent0808b199e0f6c3143c706a3a489dc727868b19fc
go/scanner: removed scanner/internal-only uses of token.Position

First step towards a more light-weight implementation of token.Position:
- only use token.Position for reporting token and error position
- use offsets only for scanner control
- no interface changes yet

R=rsc
CC=golang-dev
https://golang.org/cl/2825041
src/pkg/go/scanner/scanner.go
src/pkg/go/scanner/scanner_test.go