parser

package
v0.0.0-...-298ac24 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLanguage

func DetectLanguage(filePath string) string

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(filePath string) (*Parser, error)

func (*Parser) GetLanguage

func (p *Parser) GetLanguage() string

func (*Parser) Parse

func (p *Parser) Parse(sourceCode []byte) (*sitter.Tree, error)

Jump to

Keyboard shortcuts

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