entities

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FunctionDeclEntity = "function_decl"

	FunctionDeclPropertyName           = "name"
	FunctionDeclPropertyContainerName  = "containerName"
	FunctionDeclPropertySourceFilePath = "sourceFilePath"
	FunctionDeclPropertySourceFileType = "sourceFileType"
)
View Source
const (
	// The entity type
	PackageEntity = "package"

	// Entity specific constants
	PackageEntitySourceTypeApp    = "app"
	PackageEntitySourceTypeImport = "import"

	// Property names
	PackagePropertyName           = "name"
	PackagePropertySourceFilePath = "sourceFilePath"
	PackagePropertySourceFileType = "sourceFileType"

	// Relationship names
	PackageRelationshipImports          = "imports"
	PackageRelationshipDeclaresFunction = "declares_function"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionDecl

type FunctionDecl struct {
	Id string

	ContainerName  string
	FunctionName   string
	SourceFilePath string
	SourceFileType string
}

func (*FunctionDecl) Properties

func (f *FunctionDecl) Properties() map[string]string

type Package

type Package struct {
	Id             string
	Name           string
	SourceFilePath string
	SourceFileType string
}

func (*Package) DeclaresFunction

func (p *Package) DeclaresFunction(fn *FunctionDecl) *graph.Edge

func (*Package) Imports

func (p *Package) Imports(anotherPackage *Package) *graph.Edge

func (*Package) Properties

func (p *Package) Properties() map[string]string

Jump to

Keyboard shortcuts

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