orders

package
v0.0.0-...-d31700d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = OrdersConfigT{
	FuncCheck: true,
	VarCheck:  true,
}

Functions

This section is empty.

Types

type FileChecker

type FileChecker struct {
	// contains filtered or unexported fields
}

func NewFileChecker

func NewFileChecker(srcFile *token.File) *FileChecker

func (*FileChecker) Check

func (fc *FileChecker) Check()

func (*FileChecker) Visit

func (fc *FileChecker) Visit(node ast.Node) ast.Node

type Graph

type Graph struct {
	// contains filtered or unexported fields
}

func NewGraph

func NewGraph() *Graph

func (*Graph) AddEdges

func (pg *Graph) AddEdges(startNodeId string, nodes map[string]interface{})

func (*Graph) AddNode

func (pg *Graph) AddNode(id string, value interface{})

func (*Graph) Dump

func (pg *Graph) Dump()

func (*Graph) TopoSort

func (pg *Graph) TopoSort() []string

topology sort

type MyVisiter

type MyVisiter struct {
	// contains filtered or unexported fields
}

func (*MyVisiter) Visit

func (mv *MyVisiter) Visit(node ast.Node, sc *SymbolCollector)

type OrdersConfigT

type OrdersConfigT struct {
	FuncCheck bool
	VarCheck  bool
}

type SymbolCollector

type SymbolCollector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(srcFile *token.File) *SymbolCollector

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func NewTree

func NewTree() *Tree

func (*Tree) Add

func (t *Tree) Add(rootKey string, keys []string)

Keys must be unique

func (*Tree) Clone

func (t *Tree) Clone() *Tree

func (*Tree) Merge

func (t *Tree) Merge(src *Tree) bool

func (*Tree) Size

func (t *Tree) Size() int

func (*Tree) Traverse

func (t *Tree) Traverse() []string

Jump to

Keyboard shortcuts

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