mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
19 lines
252 B
Go
19 lines
252 B
Go
|
package taskfile
|
||
|
|
||
|
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,
|
||
|
}
|
||
|
}
|