parser

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AngularDecoratorKind

func AngularDecoratorKind(node *sitter.Node, content []byte) string

AngularDecoratorKind returns the Angular-specific kind for a decorated class

func Parse

func Parse(path string, content []byte) ([]Symbol, []Edge)

func RegisterLanguage

func RegisterLanguage(ext string, lang Language)

func SupportedExtensions

func SupportedExtensions() []string

Types

type Edge

type Edge struct {
	FromSymbol string
	ToSymbol   string
	Kind       string
}

func ExtractAngularDeps

func ExtractAngularDeps(className string, node *sitter.Node, content []byte) []Edge

ExtractAngularDeps extracts constructor injection dependencies

type Language

type Language interface {
	GetLanguage() *sitter.Language
	Extract(root *sitter.Node, content []byte) ([]Symbol, []Edge)
}

type Symbol

type Symbol struct {
	Name      string
	Kind      string
	LineStart int
	LineEnd   int
	Signature string
}

Jump to

Keyboard shortcuts

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