sortKey returns the intra-SCC lexicographic key. Matches hard contract C10. For functions the signature is appended so overloads have distinct sort keys and the install order is fully deterministic.
()
| 103 | // For functions the signature is appended so overloads have distinct sort |
| 104 | // keys and the install order is fully deterministic. |
| 105 | func (e *objectEntry) sortKey() string { |
| 106 | base := e.schema + "\x00" + e.name + "\x00" + kindLabel(e.kind) |
| 107 | if e.kind == kindFunction { |
| 108 | base += "\x00" + funcSignatureKey(e.funcMeta) |
| 109 | } |
| 110 | return base |
| 111 | } |
| 112 | |
| 113 | // funcSignatureKey returns a stable, comparable identifier for a function |
| 114 | // signature. Uses the metadata Signature string when present; falls back to |
no test coverage detected