mirror of
https://github.com/golang/go
synced 2024-11-05 16:46:10 -07:00
go.tools/cmd/gotype: use go/types identifier resolution
R=adonovan CC=golang-dev https://golang.org/cl/14146043
This commit is contained in:
parent
3daa579643
commit
49904d9a2c
@ -59,5 +59,3 @@ To verify the output of a pipe:
|
||||
|
||||
*/
|
||||
package main
|
||||
|
||||
// BUG(gri): At the moment, only single-file scope analysis is performed.
|
||||
|
@ -74,7 +74,7 @@ func parse(fset *token.FileSet, filename string, src []byte) *ast.File {
|
||||
}
|
||||
|
||||
// parse entire file
|
||||
mode := parser.DeclarationErrors
|
||||
var mode parser.Mode
|
||||
if *allErrors {
|
||||
mode |= parser.AllErrors
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user