docs: record nominal property review and query guidance
This commit is contained in:
1 parent
cef944d30e
commit
b2a0251376
3 files changed
+8
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user