Home | History | Annotate | Download | only in vet

Lines Matching refs:Package

7 package main
162 // Usage is a replacement usage function for the flags package.
166 fmt.Fprintf(os.Stderr, "\tvet [flags] files... # Must be a single package\n")
178 pkg *Package
185 // Parsed package "foo" when checking package "foo_test"
186 basePkg *Package
262 // doPackageDir analyzes the single package found in the directory, if there is one,
263 // plus a test package, if there is one.
284 names = append(names, pkg.TestGoFiles...) // These are also in the "foo" package.
288 // Is there also a "foo_test" package? If so, do that one as well.
296 type Package struct {
304 typesPkg *types.Package
307 // doPackage analyzes the single package constructed from the named files.
308 // It returns the parsed Package or nil if none of the files have been checked.
309 func doPackage(directory string, names []string, basePkg *Package) *Package {
316 // Warn but continue to next package.
335 pkg := new(Package)
338 // Type check the package.
370 // One package per directory. Ignore the files themselves.
378 func (pkg *Package) hasFileWithSuffix(suffix string) bool {