golang

package
v0.0.0-...-e00d658 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 NewProject(opts Options) (*Project, error)

func (*Project) ForEachInterface

func (p *Project) ForEachInterface(f func(pkg *meta.Package, id meta.DeclId, named *meta.Named, iface *meta.Interface))

func (*Project) ForEachTypeAnnotation

func (p *Project) ForEachTypeAnnotation(annotationName string, f func(a meta.Annotation, named *meta.Named))

func (*Project) Implement

func (p *Project) Implement(id meta.DeclId, f func(ctx MethodContext)) (*src.TypeBuilder, error)

func (*Project) String

func (p *Project) String() string

func (*Project) TypeDecl

func (p *Project) TypeDecl(id meta.DeclId) *src.TypeDecl

Jump to

Keyboard shortcuts

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