generator

package
v0.0.0-...-84c8e1d Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Visit

func Visit(w io.Writer, f *ast.File, opts Options) error

Types

type GeneratorError

type GeneratorError struct {
	Inner    error
	Location lexer.Location
}

func (*GeneratorError) At

func (e *GeneratorError) At() lexer.Location

func (*GeneratorError) Error

func (e *GeneratorError) Error() string

func (*GeneratorError) Unwrap

func (e *GeneratorError) Unwrap() error

type Instruction

type Instruction interface {
	WriteTo(w io.Writer)
}

type InstructionBlockEnd

type InstructionBlockEnd struct {
	Newline bool
}

func (*InstructionBlockEnd) WriteTo

func (i *InstructionBlockEnd) WriteTo(w io.Writer)

type InstructionBlockStart

type InstructionBlockStart struct {
}

func (*InstructionBlockStart) WriteTo

func (i *InstructionBlockStart) WriteTo(w io.Writer)

type InstructionBufioWriter

type InstructionBufioWriter struct {
}

func (*InstructionBufioWriter) WriteTo

func (i *InstructionBufioWriter) WriteTo(w io.Writer)

type InstructionFileHeader

type InstructionFileHeader struct {
	Package string
	Imports []string
}

func (*InstructionFileHeader) WriteTo

func (i *InstructionFileHeader) WriteTo(w io.Writer)

type InstructionGo

type InstructionGo struct {
	Value      string
	HTMLEscape bool
}

func (*InstructionGo) WriteTo

func (i *InstructionGo) WriteTo(w io.Writer)

type InstructionGoLine

type InstructionGoLine struct {
	Content []byte
}

func (*InstructionGoLine) WriteTo

func (i *InstructionGoLine) WriteTo(w io.Writer)

type InstructionIndentation

type InstructionIndentation struct {
	Depth int
}

func (*InstructionIndentation) WriteTo

func (i *InstructionIndentation) WriteTo(w io.Writer)

type InstructionLiteral

type InstructionLiteral struct {
	String string
}

func (*InstructionLiteral) WriteTo

func (i *InstructionLiteral) WriteTo(w io.Writer)

type InstructionStatementStart

type InstructionStatementStart struct {
	Keyword string
	Arg     string
}

func (*InstructionStatementStart) WriteTo

func (i *InstructionStatementStart) WriteTo(w io.Writer)

type InstructionVariable

type InstructionVariable struct {
	Name, Type, Value string
}

func (*InstructionVariable) WriteTo

func (i *InstructionVariable) WriteTo(w io.Writer)

type InstructionWriteFuncHeader

type InstructionWriteFuncHeader struct {
	Name string
	Args []string
}

func (*InstructionWriteFuncHeader) WriteTo

func (i *InstructionWriteFuncHeader) WriteTo(w io.Writer)

type Options

type Options struct {
	Package        string
	ForceExport    bool
	UseBufioWriter bool
}

Jump to

Keyboard shortcuts

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