Documentation ¶
Index ¶
- func DefaultCheckerConfig(checkers map[common.Location]*sema.Checker, codes map[common.Location][]byte) *sema.Config
- func ExitWithError(message string)
- func PrepareChecker(program *ast.Program, location common.Location, ...) (*sema.Checker, func(error))
- func PrepareInterpreter(filename string, debugger *interpreter.Debugger) (*interpreter.Interpreter, *sema.Checker, func(error))
- func PrepareProgram(code []byte, location common.Location, codes map[common.Location][]byte) (*ast.Program, func(error))
- func PrepareProgramFromFile(location common.StringLocation, codes map[common.Location][]byte) (*ast.Program, func(error))
- type StandardOutputLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCheckerConfig ¶ added in v0.26.0
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 PrepareProgramFromFile ¶ added in v0.7.0
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 2019-2022 Dapper Labs, Inc.
|
* Cadence - The resource-oriented smart contract programming language * * Copyright 2019-2022 Dapper Labs, Inc. |
Click to show internal directories.
Click to hide internal directories.