thrift

package
v0.0.0-...-0bfb5ad Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func (*Cache) AddFile

func (c *Cache) AddFile(filename string) (*golang.Scope, error)

func (*Cache) GetScope

func (c *Cache) GetScope(path string) (*golang.Scope, bool)

func (*Cache) GetScopeByAst

func (c *Cache) GetScopeByAst(ast *parser.Thrift) (*golang.Scope, bool)

func (*Cache) GetWaitProcessScopes

func (c *Cache) GetWaitProcessScopes() []*golang.Scope

type Options

type Options struct {
	PackagePrefix string            `json:"package_prefix"`
	Features      golang.Features   `json:"features"`
	ImportReplace map[string]string `json:"import_replace"`
}

func DefaultOptions

func DefaultOptions() Options

func (*Options) NewParser

func (o *Options) NewParser() (parser.Parser, error)

type Parser

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

func (*Parser) Parse

func (p *Parser) Parse(files ...string) ([]*parser.Package, error)

Jump to

Keyboard shortcuts

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