backendparser

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func ParseBuilder() ([]Method, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL