Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory creates appropriate inspectors based on language
func NewFactory ¶
NewFactory creates a new inspector factory with the given config
func (*Factory) GetInspector ¶
GetInspector returns an appropriate inspector based on file extension
func (*Factory) InspectFile ¶
InspectFile is a convenience method that gets the appropriate inspector and inspects the file
func (*Factory) InspectPackage ¶
InspectPackage is a convenience method that gets the appropriate inspector for a package
func (*Factory) InspectProject ¶
InspectProject is a convenience method that gets the appropriate inspector for a package
type Inspector ¶
type Inspector interface {
// InspectSource parses source code from a byte slice and extracts type information
InspectSource(src []byte) (*graph.File, error)
// InspectFile parses a source file and extracts type information
InspectFile(filename string) (*graph.File, error)
// InspectPackage inspects a package directory and extracts all type information
InspectPackage(packagePath string) (*graph.Package, error)
// InspectProject inspects a project directory and extracts all type information
InspectProject(location string) (*graph.Project, error)
}
Inspector provides an interface for inspecting source code
Click to show internal directories.
Click to hide internal directories.