location.go 247 B

123456789101112131415161718
  1. package ast
  2. type Location struct {
  3. Line int
  4. Column int
  5. Taskfile string
  6. }
  7. func (l *Location) DeepCopy() *Location {
  8. if l == nil {
  9. return nil
  10. }
  11. return &Location{
  12. Line: l.Line,
  13. Column: l.Column,
  14. Taskfile: l.Taskfile,
  15. }
  16. }