- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for PreserveAST (0.18 sec)
-
src/go/doc/reader.go
} } // If there is exactly one result type, // associate the function with that type. if numResultTypes == 1 { typ.funcs.set(fun, r.mode&PreserveAST != 0) return } } // just an ordinary function r.funcs.set(fun, r.mode&PreserveAST != 0) } // lookupTypeParam searches for type parameters named name within the tparams // field list, returning the relevant identifier if found, or nil if not.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
src/go/doc/doc.go
// invisible (unexported) anonymous fields. AllMethods // PreserveAST says to leave the AST unmodified. Originally, pieces of // the AST such as function bodies were nil-ed out to save memory in // godoc, but not all programs want that behavior. PreserveAST ) // New computes the package documentation for the given package AST.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/doc/pkg.go
// go doc time.Sunday // from finding the symbol. Work around this for now, but we // should fix it in go/doc. // A similar story applies to factory functions. mode := doc.AllDecls if showSrc { mode |= doc.PreserveAST // See comment for Package.emit. } docPkg := doc.New(astPkg, pkg.ImportPath, mode) typedValue := make(map[*doc.Value]bool) constructor := make(map[*doc.Func]bool) for _, typ := range docPkg.Types {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0)