Example #1
0
File: ast.go Project: grncdr/godef
func (s *BranchStmt) End() token.Pos {
	if s.Label != nil {
		return s.Label.End()
	}
	return token.Pos(int(s.TokPos) + len(s.Tok.String()))
}
Example #2
0
File: ast.go Project: grncdr/godef
func (x *BasicLit) End() token.Pos     { return token.Pos(int(x.ValuePos) + len(x.Value)) }
Example #3
0
File: ast.go Project: grncdr/godef
func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
Example #4
0
File: ast.go Project: grncdr/godef
func (x *Ident) End() token.Pos   { return token.Pos(int(x.NamePos) + len(x.Name)) }