src/go/ast/ast.go | 8 ++++---- diff --git a/src/go/ast/ast.go b/src/go/ast/ast.go index cca2d48bbde90ad087755310d7494bb4b498812c..d3dcd7915ba8ed099cdd98533e13add838ead51f 100644 --- a/src/go/ast/ast.go +++ b/src/go/ast/ast.go @@ -418,7 +418,7 @@ } ) // Pos and End implementations for expression/type nodes. -// + func (x *BadExpr) Pos() token.Pos { return x.From } func (x *Ident) Pos() token.Pos { return x.NamePos } func (x *Ellipsis) Pos() token.Pos { return x.Ellipsis } @@ -709,7 +709,7 @@ } ) // Pos and End implementations for statement nodes. -// + func (s *BadStmt) Pos() token.Pos { return s.From } func (s *DeclStmt) Pos() token.Pos { return s.Decl.Pos() } func (s *EmptyStmt) Pos() token.Pos { return s.Semicolon } @@ -854,7 +854,7 @@ } ) // Pos and End implementations for spec nodes. -// + func (s *ImportSpec) Pos() token.Pos { if s.Name != nil { return s.Name.Pos() @@ -931,7 +931,7 @@ } ) // Pos and End implementations for declaration nodes. -// + func (d *BadDecl) Pos() token.Pos { return d.From } func (d *GenDecl) Pos() token.Pos { return d.TokPos } func (d *FuncDecl) Pos() token.Pos { return d.Type.Pos() }