╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ RangeSet.zig ─────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭ find file ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╮ ╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │ │ │http│ ssh │ │ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─╯ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
82 return false; 83 } 84 } 85 86 return true; 87 } 88 89 const SearchCtx = struct { 90 val: Value, 91 zcu: *const Zcu, 92 }; 93 fn compare(ctx: SearchCtx, other: Value) math.Order { 94 return ctx.val.order(other, ctx.zcu); 95 } 96 97 const SortCtx = struct { 98 ty: Type, 99 zcu: *Zcu, 100 }; 101 fn lessThan(ctx: SortCtx, a: Value, b: Value) bool { 102 return a.compareScalar(.lt, b, ctx.ty, ctx.zcu); 103 } 104 105 const std = @import("std"); 106 const math = std.math; 107 const assert = std.debug.assert; 108 const Allocator = std.mem.Allocator; 109 110 const InternPool = @import("InternPool.zig"); 111 const Type = @import("Type.zig"); 112 const Value = @import("Value.zig"); 113 const Zcu = @import("Zcu.zig"); 114 const LazySrcLoc = Zcu.LazySrcLoc; 115