VisitEntryExpr updates the max identifier if the incoming entry id is greater than previously observed.
(e ast.EntryExpr)
| 894 | |
| 895 | // VisitEntryExpr updates the max identifier if the incoming entry id is greater than previously observed. |
| 896 | func (c *idCollector) VisitEntryExpr(e ast.EntryExpr) { |
| 897 | if e.ID() == 0 { |
| 898 | return |
| 899 | } |
| 900 | c.ids = append(c.ids, e.ID()) |
| 901 | } |
| 902 | |
| 903 | func (c *idCollector) IDs() []int64 { |
| 904 | sort.Sort(c.ids) |