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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDLCache

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

func (*IDLCache) AddFile

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

func (*IDLCache) GetScope

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

func (*IDLCache) GetScopeByAst

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

func (*IDLCache) GetWaitProcessScopes

func (c *IDLCache) 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.Packages, error)

Jump to

Keyboard shortcuts

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