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 ¶
func CmdRewriteImports(parsed *ParsedFile, w io.Writer) error
func GenerateContractProxy ¶
func GenerateContractProxy(parsed *ParsedFile, classReference string, out io.Writer) error
func GenerateContractWrapper ¶
func GenerateContractWrapper(parsed *ParsedFile, out io.Writer) error
func GetContractName ¶
func GetContractName(p *ParsedFile) string
func IsContract ¶
func RewriteContractPackage ¶
func RewriteContractPackage(p *ParsedFile, w io.Writer)
Types ¶
type ParsedFile ¶
type ParsedFile struct {
// contains filtered or unexported fields
}
func ParseFile ¶
func ParseFile(fileName string) (*ParsedFile, error)
Click to show internal directories.
Click to hide internal directories.