file

package
v0.0.0-...-d69f115 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileParser

type FileParser struct {
	*types.Config
}

func NewParser

func NewParser(config *types.Config) *FileParser

func (*FileParser) MakePackagequalifier

func (fp *FileParser) MakePackagequalifier(spec *ast.ImportSpec) *gotypes.Packagequalifier

func (*FileParser) Parse

func (fp *FileParser) Parse(p *Payload) error

type Payload

type Payload struct {
	DataTypes         []*ast.TypeSpec
	Variables         []*ast.ValueSpec
	Constants         []types.ConstSpec
	Functions         []*ast.FuncDecl
	FunctionDeclsOnly bool
	Reprocessing      bool
	Imports           []*ast.ImportSpec
}

Payload stores symbols for parsing/processing

func MakePayload

func MakePayload(f *ast.File) (*Payload, error)

Jump to

Keyboard shortcuts

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