Documentation ¶
Index ¶
- func Visit(w io.Writer, f *ast.File, opts Options) error
- type GeneratorError
- type Instruction
- type InstructionBlockEnd
- type InstructionBlockStart
- type InstructionBufioWriter
- type InstructionFileHeader
- type InstructionGo
- type InstructionGoLine
- type InstructionIndentation
- type InstructionLiteral
- type InstructionStatementStart
- type InstructionVariable
- type InstructionWriteFuncHeader
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GeneratorError ¶
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 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 ¶
func (*InstructionFileHeader) WriteTo ¶
func (i *InstructionFileHeader) WriteTo(w io.Writer)
type InstructionGo ¶
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 ¶
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 ¶
func (*InstructionWriteFuncHeader) WriteTo ¶
func (i *InstructionWriteFuncHeader) WriteTo(w io.Writer)
Click to show internal directories.
Click to hide internal directories.