Documentation
¶
Index ¶
- type Dependency
- type DependencyContext
- type DependencyInterface
- type DependencyList
- func (l *DependencyList) AddDependency(dep DependencyInterface)
- func (l *DependencyList) AddInheritDependency(dep *InheritDependency)
- func (l *DependencyList) GetDependenciesAndInheritDependencies() []DependencyInterface
- func (l *DependencyList) GetDependenciesByClass(classLikeName string) []DependencyInterface
- type DependencyToken
- type InheritDependency
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct {
// contains filtered or unexported fields
}
func NewDependency ¶
func NewDependency(depender tokens.TokenInterface, dependent tokens.TokenInterface, context *DependencyContext) *Dependency
func (*Dependency) GetContext ¶
func (d *Dependency) GetContext() *DependencyContext
func (*Dependency) GetDependent ¶
func (d *Dependency) GetDependent() tokens.TokenInterface
func (*Dependency) GetDepender ¶
func (d *Dependency) GetDepender() tokens.TokenInterface
func (*Dependency) Serialize ¶
func (d *Dependency) Serialize() []map[string]interface{}
type DependencyContext ¶
type DependencyContext struct { FileOccurrence *dtos.FileOccurrence DependencyType enums.DependencyType }
DependencyContext - Context of the dependency_contract. Any additional info about where the dependency_contract occurred.
func NewDependencyContext ¶
func NewDependencyContext(fileOccurrence *dtos.FileOccurrence, dependencyType enums.DependencyType) *DependencyContext
type DependencyInterface ¶
type DependencyInterface interface { GetDepender() tokens.TokenInterface GetDependent() tokens.TokenInterface GetContext() *DependencyContext Serialize() []map[string]interface{} }
DependencyInterface - Represents a dependency_contract between 2 tokens (depender and dependent).
type DependencyList ¶
type DependencyList struct {
// contains filtered or unexported fields
}
func NewDependencyList ¶
func NewDependencyList() *DependencyList
func (*DependencyList) AddDependency ¶
func (l *DependencyList) AddDependency(dep DependencyInterface)
func (*DependencyList) AddInheritDependency ¶
func (l *DependencyList) AddInheritDependency(dep *InheritDependency)
func (*DependencyList) GetDependenciesAndInheritDependencies ¶
func (l *DependencyList) GetDependenciesAndInheritDependencies() []DependencyInterface
func (*DependencyList) GetDependenciesByClass ¶
func (l *DependencyList) GetDependenciesByClass(classLikeName string) []DependencyInterface
type DependencyToken ¶
type DependencyToken struct { Token tokens.TokenInterface Context *DependencyContext }
func NewDependencyToken ¶
func NewDependencyToken(token tokens.TokenInterface, context *DependencyContext) *DependencyToken
type InheritDependency ¶
type InheritDependency struct {
// contains filtered or unexported fields
}
func NewInheritDependency ¶
func NewInheritDependency(depender *tokens.ClassLikeToken, dependent tokens.TokenInterface, originalDependency DependencyInterface, inheritPath *ast_inherits.AstInherit) *InheritDependency
func (*InheritDependency) GetContext ¶
func (i *InheritDependency) GetContext() *DependencyContext
func (*InheritDependency) GetDependent ¶
func (i *InheritDependency) GetDependent() tokens.TokenInterface
func (*InheritDependency) GetDepender ¶
func (i *InheritDependency) GetDepender() tokens.TokenInterface
func (*InheritDependency) Serialize ¶
func (i *InheritDependency) Serialize() []map[string]interface{}
Click to show internal directories.
Click to hide internal directories.