(a, b uint64, h hash.Hash64)
| 499 | } |
| 500 | |
| 501 | func orderedHash(a, b uint64, h hash.Hash64) uint64 { |
| 502 | h.Reset() |
| 503 | if err := binary.Write(h, binary.LittleEndian, a); err != nil { |
| 504 | panic(err) // should not fail |
| 505 | } |
| 506 | if err := binary.Write(h, binary.LittleEndian, b); err != nil { |
| 507 | panic(err) // should not fail |
| 508 | } |
| 509 | return h.Sum64() |
| 510 | } |
| 511 | |
| 512 | func mustGenerateType(meta expr.MetaExpr) bool { |
| 513 | if _, ok := meta["type:generate:force"]; ok { |
no test coverage detected