Documentation
¶
Index ¶
- type Database
- type FQN
- type Func
- type FuncCall
- type FuncCallArg
- type FuncCallArgType
- type FuncCallArgs
- type FuncCallTable
- type FuncCalls
- type FuncMap
- type FuncPath
- type FuncTable
- type Global
- type GlobalTable
- type Globals
- type Graph
- type Node
- type Nodes
- type NodesIDs
- type Pos
- type RawGraph
- type TableCol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) GetFuncByID ¶
type Func ¶
type Func struct { ID int64 Fqn FQN Pos_ Pos Rem bool Globals_ Globals Calls_ FuncCalls UseCount int64 }
func (Func) Calls ¶
func (f Func) Calls() models.IFuncCalls
type FuncCall ¶
type FuncCall struct { ID int64 Pos Pos Args_ FuncCallArgs }
type FuncCallArg ¶
type FuncCallArg struct { Type FuncCallArgType Value string }
func (FuncCallArg) IsBool ¶
func (a FuncCallArg) IsBool() bool
func (FuncCallArg) IsConstant ¶
func (a FuncCallArg) IsConstant() bool
func (FuncCallArg) IsExpression ¶
func (a FuncCallArg) IsExpression() bool
func (FuncCallArg) IsFloat ¶
func (a FuncCallArg) IsFloat() bool
func (FuncCallArg) IsInt ¶
func (a FuncCallArg) IsInt() bool
func (FuncCallArg) IsString ¶
func (a FuncCallArg) IsString() bool
func (FuncCallArg) IsVariable ¶
func (a FuncCallArg) IsVariable() bool
func (FuncCallArg) String ¶
func (a FuncCallArg) String() string
type FuncCallArgType ¶
type FuncCallArgType uint8
const ( IntArg FuncCallArgType = iota FloatArg BoolArg StringArg VariableArg ConstantArg ExpressionArg )
type FuncCallArgs ¶
type FuncCallArgs []FuncCallArg
type FuncCallTable ¶
func (*FuncCallTable) NeedShowCol ¶
func (t *FuncCallTable) NeedShowCol(name string) bool
type FuncTable ¶
func (*FuncTable) NeedShowCol ¶
type GlobalTable ¶
func (GlobalTable) Count ¶
func (t GlobalTable) Count() int64
func (GlobalTable) Length ¶
func (t GlobalTable) Length() int64
func (GlobalTable) NeedShowCol ¶
func (t GlobalTable) NeedShowCol(name string) bool
type Graph ¶
Graph is a structure for storing the complete call graph, as well as the functions that are included in it.
func (*Graph) Remove ¶
Remove is a function that removes the passed node from the Graph.
Note: Node is not removed from the RevGraph.
func (*Graph) ReversePaths ¶
type NodesIDs ¶
type NodesIDs []int64
NodesIDs is an alias for a slice of graph nodes for which a Remove function is defined for ease of interaction.
Click to show internal directories.
Click to hide internal directories.