exported

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumMember

type EnumMember struct{ Name, Value string }

type Function

type Function struct {
	*collector.Context `json:"-"`

	PPackage        *packages.Package `json:"-"`
	FuncId          uint32
	Name            string
	Type            *Type  `json:"-"`
	ReceiverName    string `json:"-"`
	ReceiverPointer bool   `json:"-"`
	Params          []FunctionParam
	Return          ir.Term
	ReturnError     bool
	// contains filtered or unexported fields
}

func (*Function) Pos

func (efunc *Function) Pos() token.Pos

func (*Function) Resolve

func (efunc *Function) Resolve()

type FunctionParam

type FunctionParam struct {
	Name string
	Term ir.Term
}

type Package

type Package struct {
	Types     []*Type
	TypeNames map[string]int
	Funcs     []*Function
	IsDep     bool
	// contains filtered or unexported fields
}

func NewPackage

func NewPackage(ppkg *packages.Package, ctx *collector.Context, isDep bool) *Package

func (*Package) HasType

func (epkg *Package) HasType(name string) bool

func (*Package) PPackage

func (epkg *Package) PPackage() *packages.Package

func (*Package) Resolve

func (epkg *Package) Resolve()

func (*Package) Type

func (epkg *Package) Type(name string) interfaces.Type

type Type

type Type struct {
	types.Object       `json:"-"`
	*collector.Context `json:"-"`
	PPackage           *packages.Package `json:"-"`
	Term               ir.Term
	TypeId             uint16
	Methods            []TypeMethod
	IsEnum             bool
	EnumMembers        []EnumMember
	Rename             string

	IsPinnable bool
	// contains filtered or unexported fields
}

func (*Type) Resolve

func (t *Type) Resolve()

func (*Type) Uri

func (t *Type) Uri() uri.Uri

type TypeMethod

type TypeMethod struct {
	Name string
	*Function
}

Jump to

Keyboard shortcuts

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