Home | History | Annotate | Download | only in vet

Lines Matching defs:String

28 	tags    = flag.String("tags", "", "space-separated list of build tags to apply when parsing")
29 tagList = []string{} // exploded version of tags flag; set in main
38 var report = map[string]*triState{
47 var experimental = map[string]bool{}
71 func triStateFlag(name string, value triState, usage string) *triState {
86 func (ts *triState) Set(value string) error {
100 func (ts *triState) String() string {
117 func vet(name string) bool {
147 checkers = make(map[ast.Node]map[string]func(*File, ast.Node))
150 func register(name, usage string, fn func(*File, ast.Node), types ...ast.Node) {
155 m = make(map[string]func(*File, ast.Node))
180 name string
188 // The objects that are receivers of a "String() string" method.
254 func prefixDirectory(directory string, names []string) {
264 func doPackageDir(directory string) {
281 var names []string
297 path string
309 func doPackage(directory string, names []string, basePkg *Package) *Package {
365 func visit(path string, f os.FileInfo, err error) error {
378 func (pkg *Package) hasFileWithSuffix(suffix string) bool {
388 func walkDir(root string) {
394 func errorf(format string, args ...interface{}) {
401 func warnf(format string, args ...interface{}) {
415 func Printf(format string, args ...interface{}) {
429 func (f *File) Badf(pos token.Pos, format string, args ...interface{}) {
435 func (f *File) loc(pos token.Pos) string {
447 func (f *File) locPrefix(pos token.Pos) string {
460 func (f *File) Warnf(pos token.Pos, format string, args ...interface{}) {
465 func (f *File) walkFile(name string, file *ast.File) {
505 // gofmt returns a string representation of the expression.
506 func (f *File) gofmt(x ast.Expr) string {
509 return f.b.String()