Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Class ¶
type Class struct {
Name string
Type ClassType
Pos meta.ElementPosition
WithExplicitConstructor bool
}
Class is a structure for storing information about a class.
func (*Class) HumanReadableName ¶
HumanReadableName returns a string with a name that is understandable.
type Classes ¶
func NewClasses ¶
func NewClasses() *Classes
type Function ¶
type Function struct {
Name string
Type FunctionType
Pos meta.ElementPosition
NeedRemove bool
Globals *GlobalVars
Calls *FunctionCalls
FunctionsCalls *FunctionCalls
Called *Functions
CalledBy *Functions
}
Function is a structure for storing information about a function.
func (*Function) HumanReadableName ¶
HumanReadableName returns a string with a name that is understandable.
type FunctionArg ¶
type FunctionCall ¶
type FunctionCall struct {
Function *Function
Position meta.ElementPosition
Args []FunctionArg
}
type FunctionCalls ¶
type FunctionCalls struct {
Calls map[meta.ElementPosition]FunctionCall
// contains filtered or unexported fields
}
func NewFunctionCalls ¶
func NewFunctionCalls() *FunctionCalls
func (*FunctionCalls) Add ¶
func (c *FunctionCalls) Add(call FunctionCall)
type FunctionType ¶
type FunctionType int64
const ( MainFunc FunctionType = iota LocalFunc ExternFunc )
type Functions ¶
func NewFunctions ¶
func NewFunctions() *Functions
type GlobalVars ¶
type GlobalVars struct {
GlobalVars map[string]*GlobalVar
// contains filtered or unexported fields
}
func NewGlobals ¶
func NewGlobals() *GlobalVars
func (*GlobalVars) Add ¶
func (g *GlobalVars) Add(variable *GlobalVar)
Click to show internal directories.
Click to hide internal directories.