Help us shape the future of Go! Take the 2026 Go Developer Survey

lang

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(ctx context.Context, uri string, args ParseOptions) ([]byte, error)

func Write

func Write(ctx context.Context, repo *uniast.Repository, args WriteOptions) error

Write writes the AST to the output directory.

Types

type ParseOptions

type ParseOptions struct {
	// LSP sever executable path
	LSP string
	// Language of the repo
	Verbose bool
	collect.CollectOption
	// specify the repo id
	RepoID string

	LspOptions map[string]string

	// TS options
	// tsconfig string
	TSParseOptions
}

ParseOptions is the options for parsing the repo.

type TSParseOptions added in v0.2.0

type TSParseOptions struct {
	// tsconfig path
	TSConfig string
	// srcDir path
	TSSrcDir []string
}

type WriteOptions

type WriteOptions struct {
	// OutputDir is the output directory.
	OutputDir string
	// Compiler path
	Compiler string
}

Write writes the AST to the output directory.

Directories

Path Synopsis
golang
lsp

Jump to

Keyboard shortcuts

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