Documentation ¶
Index ¶
- func CmdRewriteImports(parsed *ParsedFile, w io.Writer) error
- func GenerateContractProxy(parsed *ParsedFile, classReference string, out io.Writer) error
- func GenerateContractWrapper(parsed *ParsedFile, out io.Writer) error
- func GetContractName(p *ParsedFile) string
- func IsContract(typeNode *ast.TypeSpec) bool
- func RewriteContractPackage(p *ParsedFile, w io.Writer)
- type ParsedFile
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 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)
Click to show internal directories.
Click to hide internal directories.