Home | History | Annotate | Download | only in doc

Lines Matching refs:Package

5 package main
31 type Package struct {
33 name string // Package name, json for encoding/json.
34 userPath string // String the user used to find this package.
35 pkg *ast.Package // Parsed package.
36 file *ast.File // Merged from all files in the package
37 doc *doc.Package
38 build *build.Package
49 // prettyPath returns a version of the package path that is suitable for an
53 func (pkg *Package) prettyPath() string {
98 func (pkg *Package) Fatalf(format string, args ...interface{}) {
102 // parsePackage turns the build package we found into a parsed package
104 func parsePackage(writer io.Writer, pkg *build.Package, userPath string) *Package {
107 // That means the file must be in the build package's GoFiles or CgoFiles
126 // Make sure they are all in one package.
135 // Consts list for the package. This prevents
147 return &Package{
159 func (pkg *Package) Printf(format string, args ...interface{}) {
163 func (pkg *Package) flush() {
174 func (pkg *Package) newlines(n int) {
181 func (pkg *Package) emit(comment string, node ast.Node) {
198 func (pkg *Package) oneLineNode(node ast.Node) string {
205 func (pkg *Package) oneLineNodeDepth(node ast.Node, depth int) string {
358 func (pkg *Package) oneLineField(field *ast.Field, depth int) string {
369 // packageDoc prints the docs for the package (package doc plus one-liners of the rest).
370 func (pkg *Package) packageDoc() {
380 // Show only package docs for commands.
393 // of a package as opposed to just the package docs.
395 // Called only by Package.packageDoc.
396 func (pkg *Package) showInternals() bool {
400 // packageClause prints the package clause.
402 // user's argument is identical to the actual package path or
404 func (pkg *Package) packageClause(checkUserPath bool) {
414 pkg.Printf("package %s // import %q\n\n", pkg.name, importPath)
416 pkg.Printf("WARNING: package source is installed in %q\n", pkg.build.ImportPath)
423 func (pkg *Package) valueSummary(values []*doc.Value, showGrouped bool) {
451 func (pkg *Package) funcSummary(funcs []*doc.Func, showConstructors bool) {
465 // Exported functions only. The go/doc package does not include methods here.
475 func (pkg *Package) typeSummary() {
502 // bugs prints the BUGS information for the package.
504 func (pkg *Package) bugs() {
515 func (pkg *Package) findValues(symbol string, docValues []*doc.Value) (values []*doc.Value) {
527 func (pkg *Package) findFuncs(symbol string) (funcs []*doc.Func) {
538 func (pkg *Package) findTypes(symbol string) (types []*doc.Type) {
549 func (pkg *Package) findTypeSpec(decl *ast.GenDecl, symbol string) *ast.TypeSpec {
562 func (pkg *Package) symbolDoc(symbol string) bool {
700 // An embedded type may refer to a type in another package.
747 func (pkg *Package) printMethodDoc(symbol, method string) bool {
754 pkg.Fatalf("symbol %s is not a type in package %s installed in %q", symbol, pkg.name, pkg.build.ImportPath)
769 // Type may be an interface. The go/doc package does not attach
808 func (pkg *Package) methodDoc(symbol, method string) bool {