Operations return the ordered operations
()
| 115 | |
| 116 | // Operations return the ordered operations |
| 117 | func (bug *Bug) Operations() []Operation { |
| 118 | source := bug.Entity.Operations() |
| 119 | result := make([]Operation, len(source)) |
| 120 | for i, op := range source { |
| 121 | result[i] = op.(Operation) |
| 122 | } |
| 123 | return result |
| 124 | } |
| 125 | |
| 126 | // Compile a bug in an easily usable snapshot |
| 127 | func (bug *Bug) Compile() *Snapshot { |