internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 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 struct {
	// contains filtered or unexported fields
}

func (*FunctionBodyMaker) Make

func (f *FunctionBodyMaker) Make() error

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(namespace string, cfg juice.IConfiguration, 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 Implement

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

func NewImplement

func NewImplement(writer *ast.File, iface *ast.InterfaceType, input, output string) *Implement

func (*Implement) Imports

func (i *Implement) Imports() astlite.ImportGroup

func (*Implement) Package

func (i *Implement) Package() string

func (*Implement) String

func (i *Implement) String() string

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.IConfiguration, 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