]> Cypherpunks repositories - gostls13.git/commit
- renamed scanner.Location to token.Position
authorRobert Griesemer <gri@golang.org>
Thu, 26 Mar 2009 23:08:44 +0000 (16:08 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 26 Mar 2009 23:08:44 +0000 (16:08 -0700)
commit5a72ca45fba1aad8ab08d66cd73fd40560407dbd
tree3ea5470c1c587e84855b4a4defa12193d8e1b35f
parentb923b01665d28cdc16e00d3936da56a7d2cdc843
- renamed scanner.Location to token.Position
- by moving Position into token, scanner dependencies
  are removed from several files
- clearer field names in token.Position, now possible to
  have a Pos() accessor w/o naming conflicts
- added Pos() accessor
- use anonymous token.Position field in AST nodes

R=r
DELTA=244  (28 added, 55 deleted, 161 changed)
OCL=26786
CL=26793
src/lib/go/scanner.go
src/lib/go/scanner_test.go
src/lib/go/token.go
usr/gri/pretty/ast.go