helper function that takes a start and end index and returns a slice of all indexes inbetween (inclusive)
(start int, end int)
| 49 | // helper function that takes a start and end index and returns a slice of all |
| 50 | // indexes inbetween (inclusive) |
| 51 | func ExpandRange(start int, end int) []int { |
| 52 | expanded := []int{} |
| 53 | for i := start; i <= end; i++ { |
| 54 | expanded = append(expanded, i) |
| 55 | } |
| 56 | return expanded |
| 57 | } |
| 58 | |
| 59 | func (self *patchTransformer) transform() *Patch { |
| 60 | header := self.transformHeader() |
no outgoing calls