Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser for a Go source file that contains convergen blocks.
func (*Parser) CreateBuilder ¶
func (p *Parser) CreateBuilder() *builder.FunctionBuilder
CreateBuilder creates a new function builder.
func (*Parser) GenerateBaseCode ¶
GenerateBaseCode generates the base code without convergen annotations. The code is stripped of convergen annotations and the doc comments of interfaces. The resulting code can be used as a starting point for the code generation process. GenerateBaseCode returns the resulting code as a string, or an error if the generation process fails.
Click to show internal directories.
Click to hide internal directories.