Documentation
¶
Overview ¶
Package parsebackends parses the backends.Builder API to enumerate graph building methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MethodsBlackList = types.SetWith("Compile", "OpShape", "Name")
Functions ¶
func BackendsDir ¶
func BackendsDir() string
BackendsDir returns the path to the "backends" package.
func FindRepositoryRoot ¶
func FindRepositoryRoot() string
FindRepositoryRoot returns the first directory, from the current, with the file `go.mod`, which is assumed to be repository root.
Types ¶
type NodeTextExtractor ¶
type NodeTextExtractor struct {
// contains filtered or unexported fields
}
func NewNodeTextExtractor ¶
func NewNodeTextExtractor(fset *token.FileSet) *NodeTextExtractor
func Parse ¶
func Parse() (*NodeTextExtractor, *ast.Package)
Parse returns the parse tree of the github.com/gomlx/gomlx/backends pacakge.
Notice ast.Package is deprecated, but the go/types package it suggests as a replacement doesn't seem to do the same thing.
func ParseBuilder ¶
func ParseBuilder() (extractor *NodeTextExtractor, funcs map[string]FuncInfo)
Click to show internal directories.
Click to hide internal directories.