internal

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	// contains filtered or unexported fields
}

func (*Function) Name

func (f *Function) Name() string

func (*Function) Params

func (f *Function) Params() ast.ValueGroup

func (*Function) Results

func (f *Function) Results() ast.ValueGroup

func (*Function) String

func (f *Function) String() string

type FunctionBodyMaker

type FunctionBodyMaker interface {
	Make() error
}

type FunctionBodyMakerProvider added in v0.0.6

type FunctionBodyMakerProvider func(statement juice.Statement, function *Function) FunctionBodyMaker

type FunctionGroup

type FunctionGroup []*Function

func (FunctionGroup) String

func (f FunctionGroup) String() string

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(impl Implement) *Generator

func (*Generator) Generate

func (g *Generator) Generate() (io.Reader, error)

func (*Generator) WriteTo

func (g *Generator) WriteTo(writer io.Writer) (int64, error)

WriteTo writes generated code to writer.

type GenericFunctionBodyMaker added in v0.0.6

type GenericFunctionBodyMaker struct {
	// contains filtered or unexported fields
}

func (*GenericFunctionBodyMaker) Make added in v0.0.6

func (f *GenericFunctionBodyMaker) Make() error

type Implement

type Implement interface {
	Render() (string, error)
}

func NewImplement

func NewImplement(writer *ast.File, iface *ast.InterfaceType, cfg juice.Configuration, namespace, version, input, output string) (Implement, error)

type ImplementV1 added in v0.0.6

type ImplementV1 struct {
	// contains filtered or unexported fields
}

func (ImplementV1) Imports added in v0.0.6

func (i ImplementV1) Imports() astlite.ImportGroup

func (ImplementV1) Package added in v0.0.6

func (i ImplementV1) Package() string

func (*ImplementV1) Render added in v0.0.6

func (i *ImplementV1) Render() (string, error)

type ImplementV2 added in v0.0.6

type ImplementV2 struct {
	// contains filtered or unexported fields
}

func (ImplementV2) Imports added in v0.0.6

func (i ImplementV2) Imports() astlite.ImportGroup

func (ImplementV2) Package added in v0.0.6

func (i ImplementV2) Package() string

func (*ImplementV2) Render added in v0.0.6

func (i *ImplementV2) Render() (string, error)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(typeName string) *Parser

func (*Parser) Config

func (p *Parser) Config() (juice.Configuration, error)

func (*Parser) Namespace

func (p *Parser) Namespace() (string, error)

func (*Parser) Output

func (p *Parser) Output() (io.Writer, error)

func (*Parser) TypeInterface

func (p *Parser) TypeInterface() (*ast.InterfaceType, *ast.File, error)

func (*Parser) WithConfig

func (p *Parser) WithConfig(cfg string) *Parser

func (*Parser) WithImpl

func (p *Parser) WithImpl(impl string) *Parser

func (*Parser) WithNamespace

func (p *Parser) WithNamespace(namespace string) *Parser

func (*Parser) WithOutput

func (p *Parser) WithOutput(output string) *Parser

Jump to

Keyboard shortcuts

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