Lines Matching refs:hashes
89 if hashes, ok := ni.targetHashes[tn]; ok {
90 return hashes, nil
92 hashes := make(map[hash]struct{})
102 if _, ok := hashes[hash]; !ok {
103 hashes[hash] = struct{}{}
106 ni.targetHashes[tn] = hashes
107 return hashes, nil
110 link := func(tn *TargetNode, hashes map[hash]struct{}, installPaths []string) error {
111 for h := range hashes {
167 var hashes map[hash]struct{}
168 hashes, err = index(tn)
172 err = link(tn, hashes, installPaths)
181 hashes, err = index(r.actsOn)
185 err = link(r.actsOn, hashes, installPaths)
209 hashes := make(map[hash]struct{})
213 if _, ok := hashes[h]; ok {
216 hashes[h] = struct{}{}
611 hashes *[]hash member
615 func (l hashList) Len() int { return len(*l.hashes) }
619 func (l hashList) Swap(i, j int) { (*l.hashes)[i], (*l.hashes)[j] = (*l.hashes)[j], (*l.hashes)[i] }
626 insti = len(l.ni.hashLibInstall[(*l.hashes)[i]][l.libName])
627 instj = len(l.ni.hashLibInstall[(*l.hashes)[j]][l.libName])
629 libsi := l.ni.InstallHashLibs(l.installPath, (*l.hashes)[i])
630 libsj := l.ni.InstallHashLibs(l.installPath, (*l.hashes)[j])
638 leni := len(l.ni.text[(*l.hashes)[i]])
639 lenj := len(l.ni.text[(*l.hashes)[j]])
642 return (*l.hashes)[i].key < (*l.hashes)[j].key