2021-12-04 16:42:11 +00:00

29 lines
735 B
TOML

desc = "A set of Go AST nodes from the go/ast package."
package = "nodeset"
type = "ast.Node"
zero = "nil"
less = """
if x.Pos() == y.Pos() {
return x.End() > y.End()
}
return x.Pos() < y.Pos()
"""
imports = ["go/ast"]
testImports = ["go/ast"]
transforms = true
testValues = [
'&ast.Ident{Name: "amy", NamePos: 1}',
'&ast.Ident{Name: "basil", NamePos: 3}',
'&ast.Ident{Name: "clara", NamePos: 5}',
'&ast.Ident{Name: "desmond", NamePos: 9}',
'&ast.Ident{Name: "ernest", NamePos: 10}',
'&ast.Ident{Name: "fanny", NamePos: 12}',
'&ast.Ident{Name: "george", NamePos: 14}',
'&ast.Ident{Name: "hector", NamePos: 17}',
'&ast.Ident{Name: "ida", NamePos: 19}',
'&ast.Ident{Name: "james", NamePos: 25}',
]