Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: mojom/mojom_parser/utils/sort_utils.go

Issue 1823563002: Mojom frontend: Implement computeFieldOffsets(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Another comment and more tests. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojom/mojom_parser/utils/math_utils.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
1 package utils 5 package utils
2 6
3 // BoolSlice 7 // BoolSlice
4 type BoolSlice []bool 8 type BoolSlice []bool
5 9
6 func (s BoolSlice) Len() int { 10 func (s BoolSlice) Len() int {
7 return len(s) 11 return len(s)
8 } 12 }
9 13
10 func (s BoolSlice) Less(i, j int) bool { 14 func (s BoolSlice) Less(i, j int) bool {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return len(s) 146 return len(s)
143 } 147 }
144 148
145 func (s UInt64Slice) Less(i, j int) bool { 149 func (s UInt64Slice) Less(i, j int) bool {
146 return s[i] < s[j] 150 return s[i] < s[j]
147 } 151 }
148 152
149 func (s UInt64Slice) Swap(i, j int) { 153 func (s UInt64Slice) Swap(i, j int) {
150 s[i], s[j] = s[j], s[i] 154 s[i], s[j] = s[j], s[i]
151 } 155 }
OLDNEW
« no previous file with comments | « mojom/mojom_parser/utils/math_utils.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698