]> Cypherpunks repositories - gostls13.git/commit
go/ast: add {L,R}paren token.Pos field to ast.TypeAssertExpr.
authorAlan Donovan <adonovan@google.com>
Thu, 13 Jun 2013 18:41:44 +0000 (14:41 -0400)
committerAlan Donovan <adonovan@google.com>
Thu, 13 Jun 2013 18:41:44 +0000 (14:41 -0400)
commit568c4617ec55b8f3634c002c9c04779338c0cf7a
treeefcffff11aebf507100e9647322e543fa12bd588
parentb9ddb0d8b3d18c1c2a79eae686fe20fe36c707cb
go/ast: add {L,R}paren token.Pos field to ast.TypeAssertExpr.

These are required to correctly determine the End() of the node.

Also set these fields in go/parser and use them in go/printer.

This is a backward-compatible API change.

R=gri, r
CC=golang-dev
https://golang.org/cl/10189043
src/pkg/go/ast/ast.go
src/pkg/go/parser/parser.go
src/pkg/go/printer/nodes.go