Documentation ¶
Index ¶
- type Maker
- func (m *Maker) GetPairs(n string) []enum.Pair
- func (m *Maker) GetStatements(n string) (block.Limits, error)
- func (m *Maker) GetStatementsByType(t r.Type) block.Limits
- func (m *Maker) GetTerms(n string) (block.Limits, error)
- func (m *Maker) GetTermsByType(t r.Type) block.Limits
- func (m *Maker) RegisterBlocks(p block.Project, mbs *mutant.MutatedBlocks, opts map[string]block.Dict) (err error)
- type TypeCollector
- func (tc *TypeCollector) AddStatement(ptr interface{}) *TypeCollector
- func (tc *TypeCollector) AddTerm(ptr interface{}) *TypeCollector
- func (tc *TypeCollector) AddTopStatement(ptr interface{}) *TypeCollector
- func (tc *TypeCollector) GetTypes() (ret []*tin.TypeInfo, err error)
- func (tc *TypeCollector) NewBlocks() *toolbox.Builder
- func (tc *TypeCollector) NewShadows(s toolbox.Shadowing) *toolbox.Builder
- type UniqueNames
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Maker ¶
type Maker struct {
// contains filtered or unexported fields
}
func (*Maker) RegisterBlocks ¶
func (m *Maker) RegisterBlocks(p block.Project, mbs *mutant.MutatedBlocks, opts map[string]block.Dict) (err error)
submit all previously added blocks to a blockly-like project. mbs is the target for user generated mutation instance data ( where these blocks will write to if necessary ) opts contains per-block type extra options.
type TypeCollector ¶
type TypeCollector struct {
// contains filtered or unexported fields
}
provide a sink ( similar to gblocks.TypeCollector ) to collect blocks visited during toolbox creation
func NewTypeCollector ¶
func NewTypeCollector(names UniqueNames) *TypeCollector
func (*TypeCollector) AddStatement ¶
func (tc *TypeCollector) AddStatement(ptr interface{}) *TypeCollector
you're either a statement, which can contain input terms; or you're a term, which can contain input statements. fix: used for testing only; public b/c system tests are in a different package
func (*TypeCollector) AddTerm ¶
func (tc *TypeCollector) AddTerm(ptr interface{}) *TypeCollector
you're either a term, which can contain input statements; or you're statement, which can contain input terms. fix: used for testing only; public b/c system tests are in a different package
func (*TypeCollector) AddTopStatement ¶
func (tc *TypeCollector) AddTopStatement(ptr interface{}) *TypeCollector
a top statement is a statement with no previous connection. fix: used for testing only; public b/c system tests are in a different package
func (*TypeCollector) GetTypes ¶
func (tc *TypeCollector) GetTypes() (ret []*tin.TypeInfo, err error)
func (*TypeCollector) NewBlocks ¶
func (tc *TypeCollector) NewBlocks() *toolbox.Builder
return a toolbox builder which registers blocks to this maker
func (*TypeCollector) NewShadows ¶
func (tc *TypeCollector) NewShadows(s toolbox.Shadowing) *toolbox.Builder
return a toolbox builder which registers blocks to this maker same as: TypeCollector.NewBlocks(toolbox.SubShadow)
type UniqueNames ¶
type UniqueNames interface{ GenerateUniqueName() string }
Directories ¶
Path | Synopsis |
---|---|
Package blockly wraps google's blocky javascript api for use with gopherjs.
|
Package blockly wraps google's blocky javascript api for use with gopherjs. |
extremely minimial wrapper for javascript dom
|
extremely minimial wrapper for javascript dom |
package test provides structures and defintions for testing
|
package test provides structures and defintions for testing |
Package tin provides blockly like information for golang types
|
Package tin provides blockly like information for golang types |