1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:14:44 -07:00
go/oracle
Alan Donovan 3d1847243e oracle: disable parser bailout
This change sets ParserMode=AllErrors so that the parser is never
allowed to discard the AST and use a dummy one just because it saw too
many errors.

Also, change (*loader.Program).PathEnclosingInterval so that other
clients that forget to set this flag don't panic while calling
fset.File(f.Pos()).Base() on an ast.File f with no position info.

Change-Id: Ie544f169d367d2aa85426212b27063dc72e36fb1
Reviewed-on: https://go-review.googlesource.com/10290
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-05-20 20:27:48 +00:00
..
serial oracle: several major improvements 2015-03-30 19:21:37 +00:00
testdata/src oracle: attempt to deduce callees statically before building SSA 2015-05-20 12:10:52 +00:00
callees.go oracle: attempt to deduce callees statically before building SSA 2015-05-20 12:10:52 +00:00
callers.go go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00
callstack.go go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00
definition.go oracle: support "referrers" query on package declaration 2015-04-27 13:27:00 +00:00
describe.go oracle: several major improvements 2015-03-30 19:21:37 +00:00
freevars.go oracle: several major improvements 2015-03-30 19:21:37 +00:00
implements.go oracle: referrers: also scan *_test.go files for references. 2015-03-31 16:25:39 +00:00
oracle_test.go oracle: referrers: also scan *_test.go files for references. 2015-03-31 16:25:39 +00:00
oracle.go oracle: disable parser bailout 2015-05-20 20:27:48 +00:00
peers.go go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00
pointsto.go go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00
pos.go oracle: several major improvements 2015-03-30 19:21:37 +00:00
referrers.go oracle: support "referrers" query on package declaration 2015-04-27 13:27:00 +00:00
TODO oracle: several major improvements 2015-03-30 19:21:37 +00:00
what.go cmd/oracle: improve error messages 2015-05-13 15:02:11 +00:00
whicherrs.go go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00