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