checker

package
v0.29.0-attachments Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAndCheck

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

func ParseAndCheckWithOptions

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

func ParseAndCheckWithOptionsAndMemoryMetering added in v0.24.0

func ParseAndCheckWithOptionsAndMemoryMetering(
	t testing.TB,
	code string,
	options ParseAndCheckOptions,
	memoryGauge common.MemoryGauge,
) (*sema.Checker, error)

func RequireCheckerErrors added in v0.28.0

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

func RequireGlobalType added in v0.13.0

func RequireGlobalType(t *testing.T, elaboration *sema.Elaboration, name string) sema.Type

func RequireGlobalValue added in v0.13.0

func RequireGlobalValue(t *testing.T, elaboration *sema.Elaboration, name string) sema.Type

Types

type ParseAndCheckOptions

type ParseAndCheckOptions struct {
	Location         common.Location
	IgnoreParseError bool
	Config           *sema.Config
	ParseOptions     parser.Config
}

Jump to

Keyboard shortcuts

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