checker

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectCheckerErrors

func ExpectCheckerErrors(t *testing.T, err error, count int) []error

func ParseAndCheck

func ParseAndCheck(t *testing.T, code string) (*sema.Checker, error)

func ParseAndCheckWithOptions

func ParseAndCheckWithOptions(
	t *testing.T,
	code string,
	options ParseAndCheckOptions,
) (*sema.Checker, error)

Types

type ParseAndCheckOptions

type ParseAndCheckOptions struct {
	ImportResolver   ast.ImportResolver
	Location         ast.Location
	IgnoreParseError bool
	Options          []sema.Option
}

Jump to

Keyboard shortcuts

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