- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for sameSlice (0.42 sec)
-
src/go/types/methodset_test.go
sel := ms.At(i) if got, want := sel.Obj().Name(), m.name; got != want { t.Errorf("%s [method %d]: got name = %q at, want %q", src, i, got, want) } if got, want := sel.Index(), m.index; !sameSlice(got, want) { t.Errorf("%s [method %d]: got index = %v, want %v", src, i, got, want) } if got, want := sel.Indirect(), m.indirect; got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 08 15:27:57 UTC 2023 - 6.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
if (f != nil) != test.found { if f == nil { t.Errorf("%s: got no object; want one", test.src) } else { t.Errorf("%s: got object = %v; want none", test.src, f) } } if !sameSlice(index, test.index) { t.Errorf("%s: got index = %v; want %v", test.src, index, test.index) } if indirect != test.indirect { t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0) -
src/go/types/api_test.go
if (f != nil) != test.found { if f == nil { t.Errorf("%s: got no object; want one", test.src) } else { t.Errorf("%s: got object = %v; want none", test.src, f) } } if !sameSlice(index, test.index) { t.Errorf("%s: got index = %v; want %v", test.src, index, test.index) } if indirect != test.indirect { t.Errorf("%s: got indirect = %v; want %v", test.src, indirect, test.indirect) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/os/dir_windows.go
nextEntryOffset = info.NextEntryOffset nameslice = unsafe.Slice(&info.FileName[0], info.FileNameLength/2) } d.bufp += int(nextEntryOffset) islast = nextEntryOffset == 0 if islast { d.bufp = 0 } if (len(nameslice) == 1 && nameslice[0] == '.') || (len(nameslice) == 2 && nameslice[0] == '.' && nameslice[1] == '.') { // Ignore "." and ".." and avoid allocating a string for them. continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/internal/src/xpos.go
return p.index == q.index } // SameFileAndLine reports whether p and q are positions on the same line in the same file. func (p XPos) SameFileAndLine(q XPos) bool { return p.index == q.index && p.lico.SameLine(q.lico) } // After reports whether the position p comes after q in the source. // For positions with different bases, ordering is by base index. func (p XPos) After(q XPos) bool { n, m := p.index, q.index
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/internal/src/pos.go
col = colMax } // default is not-sure-if-statement return makeLicoRaw(line, col) } func (x lico) Line() uint { return uint(x) >> lineShift } func (x lico) SameLine(y lico) bool { return 0 == (x^y)&^lico(1<<lineShift-1) } func (x lico) Col() uint { return uint(x) >> colShift & colMax } func (x lico) IsStmt() uint { if x == 0 { return PosNotStmt }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 15.5K bytes - Viewed (0)