parse

package
v1.19.9 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fixup

func Fixup(cfg FixupConfig, structs []*ast.Struct, processNameFunc func(string) string) []*ast.Struct

func Parse

func Parse(raw []byte, name string) (*ast.Contract, []*ast.Struct, error)

Types

type Cache

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

func NewCache

func NewCache() *Cache

func (*Cache) CacheStruct

func (c *Cache) CacheStruct(newStruct *ast.Struct) error

func (*Cache) IsCached

func (c *Cache) IsCached(newStruct *ast.Struct) (*ast.Struct, bool)

type FixupConfig

type FixupConfig map[string]FixupStruct

type FixupStruct

type FixupStruct struct {
	Name   string
	Equals string
	Fields map[string]string
}

Jump to

Keyboard shortcuts

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