analyzer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package analyzer implements the syntax- and type-level repomap commands: overview, package, symbol, struct and deps. It operates over packages loaded by the loader package and returns models types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepsGraph

func DepsGraph(ctx context.Context, l *loader.Loader, path string) (models.Deps, error)

DepsGraph returns the intra-module dependency graph reachable from a root package, along with the maximum dependency depth.

func LookupSymbol

func LookupSymbol(ctx context.Context, l *loader.Loader, name string, detail SymbolDetail) (models.Symbol, error)

LookupSymbol locates a symbol by name and returns the requested detail. The name may be bare ("ValidateToken"), package-qualified ("models.FabricStatus"), or a method ("Type.Method").

func Overview

func Overview(ctx context.Context, l *loader.Loader) (models.Overview, error)

Overview returns a high-level map of the module.

func PackageInfo

func PackageInfo(ctx context.Context, l *loader.Loader, path string) (models.Package, error)

PackageInfo returns information about a single package, addressed by import path or by directory (e.g. "./internal/auth").

func StructShape

func StructShape(ctx context.Context, l *loader.Loader, name string) (models.Struct, error)

StructShape returns the recursive JSON contract of a named struct type.

Types

type SymbolDetail

type SymbolDetail struct {
	Body          bool
	SignatureOnly bool
	Doc           bool
	Shape         bool
}

SymbolDetail selects which detail a symbol lookup returns.

Jump to

Keyboard shortcuts

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