IsTransformedLine returns true if the given Dingo line has a direct transformation mapping. Transformed lines have different code structure and require special column handling.
(dingoLine int)
| 660 | // IsTransformedLine returns true if the given Dingo line has a direct transformation mapping. |
| 661 | // Transformed lines have different code structure and require special column handling. |
| 662 | func (r *Reader) IsTransformedLine(dingoLine int) bool { |
| 663 | r.mu.RLock() |
| 664 | defer r.mu.RUnlock() |
| 665 | |
| 666 | for _, m := range r.lineMappings { |
| 667 | if int(m.DingoLine) == dingoLine { |
| 668 | return true |
| 669 | } |
| 670 | } |
| 671 | return false |
| 672 | } |
| 673 | |
| 674 | // Header returns a copy of the file header. |
| 675 | func (r *Reader) Header() Header { |