VisitEntryExpr updates the max identifier if the incoming entry id is greater than previously observed.
(e ast.EntryExpr)
| 1219 | |
| 1220 | // VisitEntryExpr updates the max identifier if the incoming entry id is greater than previously observed. |
| 1221 | func (c *idCollector) VisitEntryExpr(e ast.EntryExpr) { |
| 1222 | if e.ID() == 0 { |
| 1223 | return |
| 1224 | } |
| 1225 | c.ids = append(c.ids, e.ID()) |
| 1226 | } |
| 1227 | |
| 1228 | func (c *idCollector) IDs() []int64 { |
| 1229 | sort.Sort(c.ids) |