skyform

package
v0.0.0-...-6e43c67 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Skylark bindings.

Index

Constants

This section is empty.

Variables

View Source
var AllBuiltins = sk.StringDict{
	"iamheft": sk.NewBuiltin("iamheft", func(thread *sk.Thread, fn *sk.Builtin, args sk.Tuple, kwargs []sk.Tuple) (sk.Value, error) {
		if thread.Print != nil {
			thread.Print(thread, "yes")
		} else {
			fmt.Fprintln(os.Stderr, "yes")
		}
		return sk.None, nil
	}),
	"formula":       sk.NewBuiltin("formula", MakeFormulaUnion),
	"basting":       sk.NewBuiltin("basting", NewBasting),
	"releaseItemID": sk.NewBuiltin("releaseItemID", NewReleaseItemID),
}

Functions

func HitchSingleton

func HitchSingleton(hitchViewCatalogTool hitch.ViewCatalog) sk.Value

func MakeFormulaUnion

func MakeFormulaUnion(_ *sk.Thread, _ *sk.Builtin, args sk.Tuple, kwargs []sk.Tuple) (_ sk.Value, err error)

func NewBasting

func NewBasting(_ *sk.Thread, _ *sk.Builtin, args sk.Tuple, kwargs []sk.Tuple) (_ sk.Value, err error)

func NewReleaseItemID

func NewReleaseItemID(_ *sk.Thread, _ *sk.Builtin, args sk.Tuple, kwargs []sk.Tuple) (_ sk.Value, err error)

Constructor calls should use either kwargs or a single string which will be parsed. The version can be omitted in kwargs mode (because that partial specification is useful as an argument to version lookups that peek at hitch db state).

Most functions that expect a ReleaseItemID should also try to accept a string and do the parse implicitly.

func NewValueTokenizer

func NewValueTokenizer() (d *valueTokenizer)

Types

type Basting

type Basting struct {
	tlapi.Basting
}

func (Basting) Attr

func (x Basting) Attr(name string) (sk.Value, error)

func (Basting) AttrNames

func (x Basting) AttrNames() []string

func (Basting) Freeze

func (x Basting) Freeze()

func (Basting) Hash

func (x Basting) Hash() (uint32, error)

func (Basting) String

func (x Basting) String() string

func (Basting) Truth

func (x Basting) Truth() sk.Bool

func (Basting) Type

func (x Basting) Type() string

type FormulaUnion

type FormulaUnion struct {
	tlapi.FormulaUnion
}

func (FormulaUnion) Attr

func (s FormulaUnion) Attr(name string) (sk.Value, error)

func (FormulaUnion) AttrNames

func (s FormulaUnion) AttrNames() []string

func (FormulaUnion) Binary

func (x FormulaUnion) Binary(op syntax.Token, y sk.Value, side sk.Side) (sk.Value, error)

func (FormulaUnion) Freeze

func (s FormulaUnion) Freeze()

func (FormulaUnion) Hash

func (s FormulaUnion) Hash() (uint32, error)

func (FormulaUnion) String

func (s FormulaUnion) String() string

func (FormulaUnion) Truth

func (s FormulaUnion) Truth() sk.Bool

func (FormulaUnion) Type

func (s FormulaUnion) Type() string

type Hitch

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

func (Hitch) Attr

func (x Hitch) Attr(name string) (sk.Value, error)

func (Hitch) AttrNames

func (x Hitch) AttrNames() []string

func (Hitch) Freeze

func (x Hitch) Freeze()

func (Hitch) Hash

func (x Hitch) Hash() (uint32, error)

func (Hitch) String

func (x Hitch) String() string

func (Hitch) Truth

func (x Hitch) Truth() sk.Bool

func (Hitch) Type

func (x Hitch) Type() string

type ReleaseItemID

type ReleaseItemID struct {
	tlapi.ReleaseItemID
}

func (ReleaseItemID) Attr

func (x ReleaseItemID) Attr(name string) (sk.Value, error)

func (ReleaseItemID) AttrNames

func (x ReleaseItemID) AttrNames() []string

func (ReleaseItemID) Freeze

func (x ReleaseItemID) Freeze()

func (ReleaseItemID) Hash

func (x ReleaseItemID) Hash() (uint32, error)

func (ReleaseItemID) String

func (x ReleaseItemID) String() string

func (ReleaseItemID) Truth

func (x ReleaseItemID) Truth() sk.Bool

func (ReleaseItemID) Type

func (x ReleaseItemID) Type() string

type Valuable

type Valuable interface {
	// contains filtered or unexported methods
}

Implement this on your custom type if you want them to be easily refmt'able if found deep in the middle of other skylark structures.

Jump to

Keyboard shortcuts

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