Documentation
¶
Index ¶
- func FindChildByType(node *sitter.Node, typeString string) *sitter.Node
- func FindChildIdentifier(node *sitter.Node) *sitter.Node
- func GetLanguage(l uniast.Language) *sitter.Language
- func GetModuleMap(root *ModuleInfo) map[string]string
- func GetModulePaths(root *ModuleInfo) []string
- func GetModuleStructMap(root *ModuleInfo) map[string]*ModuleInfo
- func NewParser() *sitter.Parser
- func Parse(ctx context.Context, content []byte) (*sitter.Tree, error)
- func PrintProjectTree(module *ModuleInfo, indent string)
- func Utf8ToUtf16Position(content []byte, row, byteColumn uint32) (line, character int)
- type DebugNode
- type ModuleInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetModuleMap ¶
func GetModuleMap(root *ModuleInfo) map[string]string
func GetModulePaths ¶
func GetModulePaths(root *ModuleInfo) []string
func GetModuleStructMap ¶
func GetModuleStructMap(root *ModuleInfo) map[string]*ModuleInfo
func PrintProjectTree ¶
func PrintProjectTree(module *ModuleInfo, indent string)
PrintProjectTree prints the project structure in a hierarchical format.
func Utf8ToUtf16Position ¶
Types ¶
type DebugNode ¶
type ModuleInfo ¶
type ModuleInfo struct { ArtifactID string GroupID string Version string Coordinates string Path string SourcePath string TestSourcePath string TargetPath string SubModules []*ModuleInfo Properties map[string]string }
ModuleInfo stores information about a Maven module.
func ParseMavenProject ¶
func ParseMavenProject(pomPath string) (*ModuleInfo, error)
ParseMavenProject recursively parses a module and its submodules. pomPath: The path to the pom.xml file to parse.
Click to show internal directories.
Click to hide internal directories.