deepscan

package
v0.0.0-...-094b1a8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gate

type Gate struct {
	IsInterfaceType bool
}

type Method

type Method struct {
	Name  string
	Gates []Gate
}

type ProjectAstFetcher

type ProjectAstFetcher struct {
}

func NewProjectAstFetcher

func NewProjectAstFetcher() *ProjectAstFetcher

func (*ProjectAstFetcher) FindPublicMethods

func (o *ProjectAstFetcher) FindPublicMethods(astPackage *packages.Package) []Method

FindPublicMethods will find all public methods (functions) in all packages that belongs to this component. Our main target is find methods like `books.NewRepository(db)`. this useful for checking gates [example: `db`], and verify that component `cmp` can depend on owner of `db`

Jump to

Keyboard shortcuts

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