Documentation ¶
Index ¶
- func CanSkipStaticTypeMigration(valueType interpreter.StaticType) bool
- func RewriteLegacyIntersectionType(intersectionType *interpreter.IntersectionStaticType) interpreter.StaticType
- type CompositeTypeConverterFunc
- type InterfaceTypeConverterFunc
- type StaticTypeMigration
- func (m *StaticTypeMigration) CanSkip(valueType interpreter.StaticType) bool
- func (*StaticTypeMigration) Domains() map[string]struct{}
- func (m *StaticTypeMigration) Migrate(_ interpreter.StorageKey, _ interpreter.StorageMapKey, value interpreter.Value, ...) (newValue interpreter.Value, err error)
- func (*StaticTypeMigration) Name() string
- func (m *StaticTypeMigration) WithCompositeTypeConverter(converterFunc CompositeTypeConverterFunc) *StaticTypeMigration
- func (m *StaticTypeMigration) WithInterfaceTypeConverter(converterFunc InterfaceTypeConverterFunc) *StaticTypeMigration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanSkipStaticTypeMigration ¶
func CanSkipStaticTypeMigration(valueType interpreter.StaticType) bool
func RewriteLegacyIntersectionType ¶
func RewriteLegacyIntersectionType( intersectionType *interpreter.IntersectionStaticType, ) interpreter.StaticType
Types ¶
type CompositeTypeConverterFunc ¶
type CompositeTypeConverterFunc func(*interpreter.CompositeStaticType) interpreter.StaticType
type InterfaceTypeConverterFunc ¶
type InterfaceTypeConverterFunc func(*interpreter.InterfaceStaticType) interpreter.StaticType
type StaticTypeMigration ¶
type StaticTypeMigration struct {
// contains filtered or unexported fields
}
func NewStaticTypeMigration ¶
func NewStaticTypeMigration() *StaticTypeMigration
func NewStaticTypeMigrationWithCache ¶
func NewStaticTypeMigrationWithCache(migratedTypeCache migrations.StaticTypeCache) *StaticTypeMigration
func (*StaticTypeMigration) CanSkip ¶
func (m *StaticTypeMigration) CanSkip(valueType interpreter.StaticType) bool
func (*StaticTypeMigration) Domains ¶
func (*StaticTypeMigration) Domains() map[string]struct{}
func (*StaticTypeMigration) Migrate ¶
func (m *StaticTypeMigration) Migrate( _ interpreter.StorageKey, _ interpreter.StorageMapKey, value interpreter.Value, _ *interpreter.Interpreter, ) ( newValue interpreter.Value, err error, )
Migrate migrates static types in values.
func (*StaticTypeMigration) Name ¶
func (*StaticTypeMigration) Name() string
func (*StaticTypeMigration) WithCompositeTypeConverter ¶
func (m *StaticTypeMigration) WithCompositeTypeConverter(converterFunc CompositeTypeConverterFunc) *StaticTypeMigration
func (*StaticTypeMigration) WithInterfaceTypeConverter ¶
func (m *StaticTypeMigration) WithInterfaceTypeConverter(converterFunc InterfaceTypeConverterFunc) *StaticTypeMigration
Click to show internal directories.
Click to hide internal directories.