blob: 266dc8477ae870be3fbe1de13b48fc36d4a44849 (
plain) (
tree)
|
|
package ast
import (
"github.com/graphql-go/graphql/language/source"
)
type Location struct {
Start int
End int
Source *source.Source
}
func NewLocation(loc *Location) *Location {
if loc == nil {
loc = &Location{}
}
return &Location{
Start: loc.Start,
End: loc.End,
Source: loc.Source,
}
}
|