sema_utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllActivationTypes

func AllActivationTypes(activation *sema.VariableActivation) map[string]sema.Type

func AllBaseSemaTypes

func AllBaseSemaTypes() map[string]sema.Type

func AllBaseSemaValueTypes

func AllBaseSemaValueTypes() map[string]sema.Type

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

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

func RequireCheckerErrors

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

func RequireGlobalType

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

func RequireGlobalValue

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

Types

type ParseAndCheckOptions

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

Jump to

Keyboard shortcuts

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