parser

package
v0.0.0-...-fd45be6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(pkg *loader.Package) *astx.AstSpec

Types

type Imports

type Imports struct {
	// contains filtered or unexported fields
}

func (*Imports) ImportSpecs

func (its *Imports) ImportSpecs() []string

func (*Imports) NeedImport

func (its *Imports) NeedImport(importPath string) string

type Parser

type Parser interface {
	Parse(pkg *loader.Package) *astx.AstSpec
	ParseStructs(aw *astx.Astx) *astx.PackageSpec
	ParseMethods(aw *astx.Astx, ps *astx.PackageSpec)
}

func NewParser

func NewParser() Parser

Jump to

Keyboard shortcuts

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