data

package
v0.0.0-...-32d9607 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseTypes

type BaseTypes struct {
	// contains filtered or unexported fields
}

func NewBaseTypes

func NewBaseTypes() *BaseTypes

type Package

type Package struct {
	Name       string
	Project    *Project
	Package    *types.Package
	Types      map[ast.Expr]types.TypeAndValue
	Defs       map[*ast.Ident]types.Object
	Uses       map[*ast.Ident]types.Object
	Implicits  map[ast.Node]types.Object
	Selections map[*ast.SelectorExpr]*types.Selection
}

Package is the collection of compiled data for the package.

func (*Package) DefinedFuncs

func (p *Package) DefinedFuncs() map[*ast.Ident]*types.Func

DefinedFuncs are all the functions and methods in this package.

func (*Package) FormatFuncs

func (p *Package) FormatFuncs() string

PrintFuncs formats the functions for a package.

func (*Package) FormatParticipation

func (p *Package) FormatParticipation() string

FormatParticipation formats the participantion results for a package.

func (*Package) Participation

func (p *Package) Participation() map[*ast.Ident][]*ast.Ident

Participation gets all the functions which each type definition from the main package has participated in.

func (*Package) SourceFilePaths

func (p *Package) SourceFilePaths() []string

SourceFilePaths gets the list source file paths for this package.

func (*Package) TypeDefs

func (p *Package) TypeDefs() map[*ast.Ident]*types.TypeName

TypeDefs are all the type definitions for structures, interfaces, functions signatures, and aliases from this package.

func (*Package) UsedSignatures

func (p *Package) UsedSignatures() map[*ast.Ident]*types.Signature

UsedSignatures are all the functions and methods in all packages referenced by this package.

type Project

type Project struct {
	BasePath string
	FileSet  *token.FileSet
	Packages []*Package
}

Project is the collection of compiled data for the project.

func (*Project) FormatFuncs

func (p *Project) FormatFuncs() string

PrintFuncs formats the functions for a project

func (*Project) FormatParticipation

func (p *Project) FormatParticipation() string

FormatParticipation formats the participantion results for a project.

func (*Project) PrintFuncs

func (p *Project) PrintFuncs()

PrintFuncs formats and prints the functions.

func (*Project) PrintParticipation

func (p *Project) PrintParticipation()

PrintParticipation formats and prints the participantion results.

Jump to

Keyboard shortcuts

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