示例#1
0
文件: ast.go 项目: gonotes/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()))
}
示例#2
0
文件: ast.go 项目: gonotes/godef
func (x *BasicLit) End() token.Pos     { return token.Pos(int(x.ValuePos) + len(x.Value)) }
示例#3
0
文件: ast.go 项目: gonotes/godef
func (c *Comment) End() token.Pos { return token.Pos(int(c.Slash) + len(c.Text)) }
示例#4
0
文件: ast.go 项目: gonotes/godef
func (x *Ident) End() token.Pos   { return token.Pos(int(x.NamePos) + len(x.Name)) }