Home | History | Annotate | Download | only in vet

Lines Matching refs:Package

7 package main
172 // Usage is a replacement usage function for the flags package.
176 fmt.Fprintf(os.Stderr, "\tvet [flags] files... # Must be a single package\n")
188 pkg *Package
195 // Parsed package "foo" when checking package "foo_test"
196 basePkg *Package
303 func (v *vetConfig) Import(path string) (*types.Package, error) {
315 return nil, fmt.Errorf("unknown package file for import %q", path)
326 return nil, fmt.Errorf("unknown package file for %q", path)
335 // doPackageCfg analyzes a single package described in a config file.
350 // doPackageDir analyzes the single package found in the directory, if there is one,
351 // plus a test package, if there is one.
372 names = append(names, pkg.TestGoFiles...) // These are also in the "foo" package.
376 // Is there also a "foo_test" package? If so, do that one as well.
384 type Package struct {
392 typesPkg *types.Package
395 // doPackage analyzes the single package constructed from the named files.
396 // It returns the parsed Package or nil if none of the files have been checked.
397 func doPackage(names []string, basePkg *Package) *Package {
404 // Warn but continue to next package.
429 pkg := new(Package)
432 // Type check the package.
478 // One package per directory. Ignore the files themselves.
486 func (pkg *Package) hasFileWithSuffix(suffix string) bool {