stool

package
v0.0.0-...-d5cc100 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blade

type Blade struct {
	RootDir string
}

func (*Blade) AddPath

func (this *Blade) AddPath(p string)

func (*Blade) GetName

func (this *Blade) GetName(name string) (string, bool)

func (*Blade) GetPath

func (this *Blade) GetPath(path string) (string, bool)

type ChildrenCollection

type ChildrenCollection struct {
	Children map[string]ViewNode
}

type OrphanFinder

type OrphanFinder struct {
	Root string
}

func (*OrphanFinder) GetOrphans

func (this *OrphanFinder) GetOrphans() []string

type ParentCollection

type ParentCollection struct {
	Parents map[string]ViewNode
}

type VariableCollection

type VariableCollection struct {
	Variables map[string]int
}

type VariableCollector

type VariableCollector struct {
}

func (*VariableCollector) GetAllVariablesFrom

func (this *VariableCollector) GetAllVariablesFrom(path string) (map[string]int, error)

type ViewExplainer

type ViewExplainer struct {
	ViewIndexer ViewIndexer
}

func GetExplainer

func GetExplainer(view_root string) ViewExplainer

func (*ViewExplainer) CollectChildrenFrom

func (this *ViewExplainer) CollectChildrenFrom(viewName string) map[string]bool

func (*ViewExplainer) CollectParentsFrom

func (this *ViewExplainer) CollectParentsFrom(viewName string) map[string]bool

func (*ViewExplainer) CollectVariablesFromChildren

func (this *ViewExplainer) CollectVariablesFromChildren(viewName string) map[string]int

func (*ViewExplainer) CollectVariablesFromParents

func (this *ViewExplainer) CollectVariablesFromParents(viewName string) map[string]int

type ViewFinder

type ViewFinder struct {
	Root string
}

func (*ViewFinder) GetFilePath

func (this *ViewFinder) GetFilePath(view_name string) string

type ViewIndexer

type ViewIndexer struct {
	RootDir    string
	Explainer  *VariableCollector
	ViewFinder *ViewFinder
	Writer     *bufio.Writer
}

func (*ViewIndexer) FindAllIncludes

func (this *ViewIndexer) FindAllIncludes(path string) ([]string, error)

func (*ViewIndexer) IndexView

func (this *ViewIndexer) IndexView(view_name string) []*ViewNode

func (*ViewIndexer) IndexViews

func (this *ViewIndexer) IndexViews(root string) map[string]ViewNode

type ViewNode

type ViewNode struct {
	Name      string
	Children  []string
	Parents   []string
	Variables map[string]int
}

Jump to

Keyboard shortcuts

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