noxast

package
v3.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Translate

func Translate(s *asm.Script, c *Config) *ast.File

Types

type Config added in v3.2.0

type Config struct {
	Package        string
	DoNotOptimize  bool
	DoNotFold      bool
	InlineSwitches bool
}

type TypeSet

type TypeSet struct {
	Def   asm.VarDef
	Hints []reflect.Type
}

func (*TypeSet) Add

func (s *TypeSet) Add(types ...reflect.Type)

func (*TypeSet) AllHasKind

func (s *TypeSet) AllHasKind(k reflect.Kind) bool

func (*TypeSet) AllHasKindExcept

func (s *TypeSet) AllHasKindExcept(k reflect.Kind, exc int) bool

func (*TypeSet) AllImplements

func (s *TypeSet) AllImplements(t reflect.Type) bool

func (*TypeSet) Best

func (s *TypeSet) Best() (reflect.Type, bool)

func (*TypeSet) GetWithKind

func (s *TypeSet) GetWithKind(k reflect.Kind) (reflect.Type, bool)

func (*TypeSet) Has

func (s *TypeSet) Has(t reflect.Type) bool

func (*TypeSet) HasKind

func (s *TypeSet) HasKind(k reflect.Kind) bool

Jump to

Keyboard shortcuts

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