checker

package
v0.12.11 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 12 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         common.Location
	IgnoreParseError bool
	Options          []sema.Option
}

Jump to

Keyboard shortcuts

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