symbols

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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 Class added in v1.0.1

type Class struct {
	Name   string
	Type   ClassType
	Pos    meta.ElementPosition
	Colors *palette.ColorContainer

	WithExplicitConstructor bool
}

Class is a structure for storing information about a class.

func (*Class) HasColors added in v1.0.1

func (f *Class) HasColors() bool

func (*Class) HumanReadableName added in v1.0.1

func (f *Class) HumanReadableName() string

HumanReadableName returns a string with a name that is understandable.

func (*Class) String added in v1.0.1

func (f *Class) String() string

type ClassType added in v1.0.1

type ClassType uint8
const (
	PlainClass ClassType = iota
	Interface
	Trait
)

type Classes added in v1.0.1

type Classes struct {
	Classes map[string]*Class
	// contains filtered or unexported fields
}

func NewClasses added in v1.0.1

func NewClasses() *Classes

func (*Classes) Add added in v1.0.1

func (f *Classes) Add(class *Class)

func (*Classes) Get added in v1.0.1

func (f *Classes) Get(name string) (*Class, bool)

func (*Classes) Len added in v1.0.1

func (f *Classes) Len() int

func (*Classes) Raw added in v1.0.1

func (f *Classes) Raw() map[string]*Class

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