info

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeclInfo

type DeclInfo struct {
	FuncDecl *syntax.FuncDecl

	Kind         DeclKind
	Name         string
	RecvTypeName string
	RecvGeneric  bool
	RecvPtr      bool
	Generic      bool
	Closure      bool
	Stdlib       bool

	// this is an interface type declare
	// only the Name is valid
	Interface bool

	// arg names
	RecvName string
	ArgNames []string
	ResNames []string

	FileSyntax *syntax.File
	FileIndex  int
	DeclIndex  int

	// this is file name after applied -trimpath
	File string
	Line int

	// has func trap
	HasFuncTrap bool
}

func (*DeclInfo) FuncInfoVarName

func (c *DeclInfo) FuncInfoVarName() string

func (*DeclInfo) FuncName

func (c *DeclInfo) FuncName() string

func (*DeclInfo) GenericName

func (c *DeclInfo) GenericName() string

func (*DeclInfo) IdentityName

func (c *DeclInfo) IdentityName() string

func (*DeclInfo) RefName

func (c *DeclInfo) RefName() string

func (*DeclInfo) RefNameSyntax

func (c *DeclInfo) RefNameSyntax(pos syntax.Pos) syntax.Expr

type DeclKind

type DeclKind int
const (
	Kind_Func   DeclKind = 0
	Kind_Var    DeclKind = 1
	Kind_VarPtr DeclKind = 2
	Kind_Const  DeclKind = 3
)

func (DeclKind) IsFunc

func (c DeclKind) IsFunc() bool

func (DeclKind) IsVarOrConst

func (c DeclKind) IsVarOrConst() bool

func (DeclKind) String

func (c DeclKind) String() string

Jump to

Keyboard shortcuts

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