symbols

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	Name   string
	Type   FunctionType
	Pos    meta.ElementPosition
	Colors palette.ColorContainer

	Called   *Functions
	CalledBy *Functions
}

Function is a structure for storing information about a function.

func (*Function) HasColors

func (f *Function) HasColors() bool

func (*Function) HumanReadableName

func (f *Function) HumanReadableName() string

HumanReadableName returns a string with a name that is understandable.

func (*Function) String

func (f *Function) String() string

type FunctionType

type FunctionType int64
const (
	MainFunc FunctionType = iota
	LocalFunc
	ExternFunc
)

type Functions

type Functions struct {
	Functions map[string]*Function
	// contains filtered or unexported fields
}

func NewFunctions

func NewFunctions() *Functions

func (*Functions) Add

func (f *Functions) Add(fun *Function)

func (*Functions) Get

func (f *Functions) Get(name string) (*Function, bool)

func (*Functions) Len

func (f *Functions) Len() int

func (*Functions) Raw

func (f *Functions) Raw() map[string]*Function

Jump to

Keyboard shortcuts

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