mirror of
https://github.com/go-task/task.git
synced 2025-01-04 03:48:02 +02:00
247c2586c2
* refactor: ast package * feat: read -> taskfile * refactor: taskfile.Taskfile -> taskfile.Read * refactor: move merge function back into taskfile package * refactor: rename taskfile.go to read.go
19 lines
247 B
Go
19 lines
247 B
Go
package ast
|
|
|
|
type Location struct {
|
|
Line int
|
|
Column int
|
|
Taskfile string
|
|
}
|
|
|
|
func (l *Location) DeepCopy() *Location {
|
|
if l == nil {
|
|
return nil
|
|
}
|
|
return &Location{
|
|
Line: l.Line,
|
|
Column: l.Column,
|
|
Taskfile: l.Taskfile,
|
|
}
|
|
}
|