Documentation
¶
Index ¶
- Variables
- func IsEmbeddedFunc(name string) bool
- type Class
- type Classes
- func (c *Classes) Add(class *Class)
- func (c *Classes) Get(name string) (*Class, bool)
- func (c *Classes) GetAll(onlyInterface bool, count int64, offset int64, sorted bool) []*Class
- func (c *Classes) GetAllClasses(count int64, offset int64, sorted bool) []*Class
- func (c *Classes) GetAllInterfaces(count int64, offset int64, sorted bool) []*Class
- func (c *Classes) GetFullClassName(name string) ([]string, error)
- func (c *Classes) Len() int
- type Constant
- type Constants
- type Field
- type FieldKey
- type Fields
- type File
- func (f *File) AddClass(class *Class)
- func (f *File) AddFunc(fun *Function)
- func (f *File) AddRequiredByFile(file *File)
- func (f *File) AddRequiredFile(file *File)
- func (f *File) AddRequiredRootFile(file *File)
- func (f *File) GobDecode(buf []byte) error
- func (f *File) GobEncode() ([]byte, error)
- func (f *File) UniqueId() string
- type Files
- type FuncKey
- type Function
- func (f *Function) AddCalled(fn *Function)
- func (f *Function) AddCalledBy(fn *Function)
- func (f *Function) AddUse()
- func (f *Function) CountDeps() int64
- func (f *Function) CountDepsBy() int64
- func (f *Function) Deps() *Classes
- func (f *Function) DepsBy() *Classes
- func (f Function) Equal(fi2 Function) bool
- func (f *Function) GobDecode(buf []byte) error
- func (f *Function) GobEncode() ([]byte, error)
- func (f *Function) ID() int64
- func (f *Function) IsEmbeddedFunc() bool
- func (f *Function) IsMethod() bool
- type Functions
- func (f *Functions) Add(fn *Function)
- func (f *Functions) Get(fn FuncKey) (*Function, bool)
- func (f *Functions) GetAll(onlyMethods, onlyFuncs, all bool, count int64, offset int64, sorted bool, ...) []*Function
- func (f *Functions) GetFullFuncName(name string) ([]FuncKey, error)
- func (f *Functions) Len() int
- type Namespace
- type Namespaces
- func (n *Namespaces) Add(ns *Namespace)
- func (n *Namespaces) AddClassToNamespace(nsName string, class *Class)
- func (n *Namespaces) AddFileToNamespace(nsName string, file *File)
- func (n *Namespaces) CreateNamespace(nsName string) *Namespace
- func (n *Namespaces) Get(name string) (*Namespace, bool)
- func (n *Namespaces) GetNamespace(nsName string) (*Namespace, bool)
- func (n *Namespaces) GetNamespacesWithSpecificLevel(level int64) []*Namespace
- func (n *Namespaces) Len() int
Constants ¶
This section is empty.
Variables ¶
View Source
var FieldsCount int64
View Source
var FunctionCount int64
Functions ¶
func IsEmbeddedFunc ¶
Types ¶
type Class ¶
type Class struct { Name string File *File Implements *Classes Extends *Classes IsAbstract bool IsInterface bool Fields *Fields Methods *Functions Constants *Constants // Зависим от Deps *Classes // Зависят от нас DepsBy *Classes Vendor bool // metrics LcomResolved bool Lcom float64 Lcom4Resolved bool Lcom4 int64 }
func NewAbstractClass ¶
func NewInterface ¶
func (*Class) AddExtends ¶
func (*Class) AddImplements ¶
type Classes ¶
func NewClasses ¶
func NewClasses() *Classes
func (*Classes) GetAllClasses ¶
func (*Classes) GetAllInterfaces ¶
func (*Classes) GetFullClassName ¶
type Constant ¶
func NewConstant ¶
type Constants ¶
type Constants struct { Constants map[Constant]*Constant // contains filtered or unexported fields }
func NewConstants ¶
func NewConstants() *Constants
type FieldKey ¶
func NewFieldKey ¶
type Fields ¶
func (*Fields) AddMethodAccess ¶
type File ¶
type File struct { Name string Path string RequiredRoot *Files RequiredBlock *Files RequiredBy *Files Classes *Classes Funcs *Functions CountLines int64 }
func (*File) AddRequiredByFile ¶
func (*File) AddRequiredFile ¶
func (*File) AddRequiredRootFile ¶
type Function ¶
type Function struct { Name FuncKey Pos meta.ElementPosition Called *Functions CalledBy *Functions UsesCount int64 CyclomaticComplexity int64 CountMagicNumbers int64 // Method part Class *Class Id int64 // contains filtered or unexported fields }
func NewFunction ¶
func NewFunction(name FuncKey, pos meta.ElementPosition) *Function
func (*Function) AddCalledBy ¶
func (*Function) CountDepsBy ¶
func (*Function) IsEmbeddedFunc ¶
type Functions ¶
func NewFunctions ¶
func NewFunctions() *Functions
func (*Functions) GetFullFuncName ¶
type Namespace ¶
type Namespace struct { Name string FullName string Files *Files Classes *Classes Childs *Namespaces MetricsResolved bool Aff float64 Eff float64 Instab float64 }
func NewNamespace ¶
type Namespaces ¶
type Namespaces struct { Namespaces map[string]*Namespace // contains filtered or unexported fields }
func NewNamespaces ¶
func NewNamespaces() *Namespaces
func (*Namespaces) Add ¶
func (n *Namespaces) Add(ns *Namespace)
func (*Namespaces) AddClassToNamespace ¶
func (n *Namespaces) AddClassToNamespace(nsName string, class *Class)
func (*Namespaces) AddFileToNamespace ¶
func (n *Namespaces) AddFileToNamespace(nsName string, file *File)
func (*Namespaces) CreateNamespace ¶
func (n *Namespaces) CreateNamespace(nsName string) *Namespace
func (*Namespaces) GetNamespace ¶
func (n *Namespaces) GetNamespace(nsName string) (*Namespace, bool)
func (*Namespaces) GetNamespacesWithSpecificLevel ¶
func (n *Namespaces) GetNamespacesWithSpecificLevel(level int64) []*Namespace
func (*Namespaces) Len ¶
func (n *Namespaces) Len() int
Click to show internal directories.
Click to hide internal directories.