1
0
mirror of https://github.com/go-task/task.git synced 2025-01-04 03:48:02 +02:00
task/taskfile/ast/location.go
Pete Davison 247c2586c2
refactor: taskfile/ast package (#1450)
* 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
2023-12-29 20:32:03 +00:00

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,
}
}