cmd

package
v0.39.13-stable-cadence Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCheckerConfig added in v0.26.0

func DefaultCheckerConfig(
	checkers map[common.Location]*sema.Checker,
	codes map[common.Location][]byte,
) *sema.Config

func ExitWithError

func ExitWithError(message string)

func PrepareChecker

func PrepareChecker(
	program *ast.Program,
	location common.Location,
	codes map[common.Location][]byte,
	memberAccountAccess map[common.Location]map[common.Location]struct{},
	must func(error),
) (*sema.Checker, func(error))

PrepareChecker prepares and initializes a checker with a given code as a string, and a filename which is used for pretty-printing errors, if any

func PrepareInterpreter

func PrepareInterpreter(filename string, debugger *interpreter.Debugger) (*interpreter.Interpreter, *sema.Checker, func(error))

func PrepareProgram added in v0.7.0

func PrepareProgram(code []byte, location common.Location, codes map[common.Location][]byte) (*ast.Program, func(error))

func PrepareProgramFromFile added in v0.7.0

func PrepareProgramFromFile(location common.StringLocation, codes map[common.Location][]byte) (*ast.Program, func(error))

Types

type StandardOutputLogger added in v0.26.1

type StandardOutputLogger struct{}

func (StandardOutputLogger) ProgramLog added in v0.26.1

func (s StandardOutputLogger) ProgramLog(message string) error

Directories

Path Synopsis
* Cadence - The resource-oriented smart contract programming language * * Copyright Dapper Labs, Inc.
* Cadence - The resource-oriented smart contract programming language * * Copyright Dapper Labs, Inc.

Jump to

Keyboard shortcuts

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