semantic

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 2 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	CheckAll(t *parser.Thrift) (warns []string, err error)
}

Checker reports whether there are semantic errors in the AST and produces warning messages for non-fatal errors.

func NewChecker

func NewChecker(opt Options) Checker

NewChecker creates a checker.

type Options

type Options struct {
	FixWarnings bool
}

Options controls the behavior of the default checker.

Jump to

Keyboard shortcuts

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