preprocessor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdRewriteImports added in v0.0.6

func CmdRewriteImports(parsed *ParsedFile, w io.Writer) error

func GenerateContractProxy added in v0.0.6

func GenerateContractProxy(parsed *ParsedFile, classReference string, out io.Writer) error

func GenerateContractWrapper added in v0.0.6

func GenerateContractWrapper(parsed *ParsedFile, out io.Writer) error

func GetContractName added in v0.0.6

func GetContractName(p *ParsedFile) string

func IsContract added in v0.0.5

func IsContract(typeNode *ast.TypeSpec) bool

func RewriteContractPackage added in v0.0.6

func RewriteContractPackage(p *ParsedFile, w io.Writer)

Types

type ParsedFile added in v0.0.6

type ParsedFile struct {
	// contains filtered or unexported fields
}

func ParseFile added in v0.0.6

func ParseFile(fileName string) (*ParsedFile, error)

Jump to

Keyboard shortcuts

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