docs: record nominal property review and query guidance

This commit is contained in:
dev committed 2026-10-10 12:46:42 +03:00
1 parent cef944d30e
commit b2a0251376
3 files changed
+8 -1

No files matched your search

+3
View File
@@ -214,6 +214,9 @@ fn fact(m: air.Module, n: Named) bool {
};
}
/// Each uncached nominal query prepares the entire resolved module afresh.
/// For repeated queries, call prepare once and query its returned immutable
/// module; this avoids paying the preparation cost for every named root.
pub fn query(a: std.mem.Allocator, m: air.Module, t: Type, property: Property) std.mem.Allocator.Error!bool {
return switch (classify(t, property)) {
.known => |value| value,