This commit is contained in:
2026-03-24 13:40:33 +00:00
parent 6a4f7ea773
commit df8c0db6eb
12 changed files with 367 additions and 431 deletions
+11
View File
@@ -178,6 +178,17 @@ impl CanonicalFnKey {
pub fn new(import: ImportRef, arity: u16) -> Self { Self { import, arity } }
}
/// Opaque canonical reference to a type known to the Frontend.
/// Backend must not rely on its internal representation.
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Ord, PartialOrd)]
pub struct TypeRef(pub u32);
/// Opaque canonical reference to a function signature (overload identity).
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Ord, PartialOrd)]
pub struct SignatureRef(pub u32);
/// Diagnostic severity.
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]