]> Cypherpunks repositories - gostls13.git/commit
go/parser: add ParseExprFrom function
authorRobert Griesemer <gri@golang.org>
Fri, 12 Jun 2015 23:33:49 +0000 (16:33 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 12 Jun 2015 23:46:32 +0000 (23:46 +0000)
commitcb2d02c8032aee0e253eb1091556408cbf205f41
treebb66589617ac70882ee9815415722103c28a45c3
parent965584ac07c87839cb28f28e40f2f9a74ebaff76
go/parser: add ParseExprFrom function

This is needed for code that relies on having the correct file set
when parsing an expression only. There's currently no other way to
get to the file set otherwise or to invoke the parser correctly to
work on an expression only with a given file set.

Change-Id: I325f174cb34b69284e627f59fe8334efa4eaa45c
Reviewed-on: https://go-review.googlesource.com/10998
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/parser/interface.go