bazel

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	please.Ctl
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(log logging.Logger, ctl please.Ctl, filesystem please.Filesystem) *Builder

func (*Builder) NewFile

func (this *Builder) NewFile(path string) please.File

func (*Builder) NewRule

func (this *Builder) NewRule(kind, name string) please.Rule

func (*Builder) Parse

func (this *Builder) Parse(path string, data []byte) (please.File, error)

func (*Builder) Write

func (this *Builder) Write(file please.File) error

type Decode

type Decode struct{}

func (Decode) AssignExpr

func (Decode) AssignExpr(in *please.AssignExpr) *build.AssignExpr

func (Decode) BinaryExpr

func (Decode) BinaryExpr(in *please.BinaryExpr) *build.BinaryExpr

func (Decode) CallExpr

func (Decode) CallExpr(in *please.CallExpr) *build.CallExpr

func (Decode) DictExpr

func (Decode) DictExpr(in *please.DictExpr) *build.DictExpr

func (Decode) Expr

func (Decode) Expr(in please.Expr) build.Expr

func (Decode) Ident

func (Decode) Ident(in *please.Ident) *build.Ident

func (Decode) KeyValueExpr

func (Decode) KeyValueExpr(in *please.KeyValueExpr) *build.KeyValueExpr

func (Decode) ListExpr

func (Decode) ListExpr(in *please.ListExpr) *build.ListExpr

func (Decode) LiteralExpr

func (Decode) LiteralExpr(in *please.LiteralExpr) *build.LiteralExpr

func (Decode) StringExpr

func (Decode) StringExpr(in *please.StringExpr) *build.StringExpr

type Encode

type Encode struct{}

func (Encode) AssignExpr

func (Encode) AssignExpr(in *build.AssignExpr) *please.AssignExpr

func (Encode) BinaryExpr

func (Encode) BinaryExpr(in *build.BinaryExpr) *please.BinaryExpr

func (Encode) CallExpr

func (Encode) CallExpr(in *build.CallExpr) *please.CallExpr

func (Encode) Comment

func (Encode) Comment(in build.Comment) please.Comment

func (Encode) CommentList

func (Encode) CommentList(in []build.Comment) []please.Comment

func (Encode) Comments

func (Encode) Comments(in build.Comments) please.Comments

func (Encode) DictExpr

func (Encode) DictExpr(in *build.DictExpr) *please.DictExpr

func (Encode) Expr

func (Encode) Expr(in build.Expr) please.Expr

func (Encode) Ident

func (Encode) Ident(in *build.Ident) *please.Ident

func (Encode) KeyValueExpr

func (Encode) KeyValueExpr(in *build.KeyValueExpr) *please.KeyValueExpr

func (Encode) ListExpr

func (Encode) ListExpr(in *build.ListExpr) *please.ListExpr

func (Encode) LiteralExpr

func (Encode) LiteralExpr(in *build.LiteralExpr) *please.LiteralExpr

func (Encode) StringExpr

func (Encode) StringExpr(in *build.StringExpr) *please.StringExpr

type File

type File struct {
	*build.File
	Data []byte
}

func NewFile

func NewFile(data []byte, file *build.File) *File

func (*File) DelRule

func (this *File) DelRule(name string) bool

func (*File) GetPath

func (this *File) GetPath() string

func (*File) GetRule

func (this *File) GetRule(name string) please.Rule

func (*File) GetRules

func (this *File) GetRules(yield func(please.Rule))

func (*File) IsEmpty added in v0.0.3

func (this *File) IsEmpty() bool

func (*File) SetRule

func (this *File) SetRule(rule please.Rule)

func (*File) Unwrap

func (this *File) Unwrap() *build.File

type Rule

type Rule struct {
	*build.Rule
}

func NewRule

func NewRule(call *build.CallExpr) *Rule

func (*Rule) Attr

func (this *Rule) Attr(key string) please.Expr

func (*Rule) AttrDefn

func (this *Rule) AttrDefn(key string) *please.AssignExpr

func (*Rule) Comment

func (this *Rule) Comment() please.Comments

func (*Rule) DelAttr

func (this *Rule) DelAttr(name string) please.Expr

func (*Rule) SetAttr

func (this *Rule) SetAttr(name string, val please.Expr)

func (*Rule) Unwrap

func (this *Rule) Unwrap() *please.CallExpr

Jump to

Keyboard shortcuts

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