checker

package
v0.12.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 {
	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