Documentation
¶
Index ¶
- type MethodContext
- type Options
- type Project
- func (p *Project) ForEachInterface(...)
- func (p *Project) ForEachTypeAnnotation(annotationName string, f func(a meta.Annotation, named *meta.Named))
- func (p *Project) Implement(id meta.DeclId, f func(ctx MethodContext)) (*src.TypeBuilder, error)
- func (p *Project) String() string
- func (p *Project) TypeDecl(id meta.DeclId) *src.TypeDecl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MethodContext ¶
type MethodContext struct { TypeAnnotations []meta.Annotation TypeImpl *src.TypeBuilder MethodAnnotations []meta.Annotation Method *src.FuncBuilder }
type Options ¶
type Options struct { // Dir is the directory in which to run the build system's query tool that provides information about the packages. // If Dir is empty, the tool is run in the current directory. Dir string // Patterns contains the root packages to parse, e.g. github.com/golangee/... Patterns []string }
Options for the reflectplus parser
type Project ¶
type Project struct {
// contains filtered or unexported fields
}
func NewProject ¶
func (*Project) ForEachInterface ¶
func (*Project) ForEachTypeAnnotation ¶
func (*Project) Implement ¶
func (p *Project) Implement(id meta.DeclId, f func(ctx MethodContext)) (*src.TypeBuilder, error)
Click to show internal directories.
Click to hide internal directories.