cmd

package
v0.24.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitWithError

func ExitWithError(message string)

func PrepareChecker

func PrepareChecker(
	program *ast.Program,
	location common.Location,
	codes map[common.LocationID]string,
	memberAccountAccess map[common.LocationID]map[common.LocationID]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 string, location common.Location, codes map[common.LocationID]string) (*ast.Program, func(error))

func PrepareProgramFromFile added in v0.7.0

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

Types

This section is empty.

Directories

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

Jump to

Keyboard shortcuts

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