Documentation
¶
Overview ¶
Package backendparser parses the compute interfaces (Backend, Builder, Function, etc.) and enumerate their methods.
This is useful to generate code that works with these interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Method ¶
type Method struct {
// Name is the method name
Name string
// Comment is the method documentation comment
Comments []string
// Parameters of the method.
Parameters []NameAndType
// Outputs of the method.
// Outputs names may contain all empty strings if they are not defined.
Outputs []NameAndType
// Interface indicates which interface this method belongs to: "Builder" or "Function"
Interface string
}
Method represents a single method from the backends.Builder or backends.Function interface with all its signature information as strings.
func ParseBuilder ¶
ParseBuilder returns all methods defined in the backends.Builder and backends.Function interfaces, including those from embedded interfaces like backends.StandardOps and backends.CollectiveOps.
type NameAndType ¶
type NameAndType struct {
Name, Type string
}