dependencies

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: GPL-3.0, LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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{}

Jump to

Keyboard shortcuts

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