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

Side by Side Diff: sky/specs/utils.md

Issue 974313003: Specs: fix typos in style2.md, checkin forgotten builtins.md, add guard feature to runloop.md, rena… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/specs/style2.md ('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
(Empty)
1 Dart Utilities Used By dart:sky
2 ===============================
3
4 The classes defined here are used internally by dart:sky but are
5 pretty generic.
6
7 ```dart
8 class Pair<A, B> {
9 const Pair(this.a, this.b);
10 final A a;
11 final B b;
12 int get hashCode => a.hashCode ^ b.hashCode;
13 bool operator==(other) => other is Pair<A, B> && a == other.a && b == other.b;
14 }
15
16 // MapOfWeakReferences can be implemented in C, using the C Dart API, apparently
17 class MapOfWeakReferences<Key, Value> {
18 external operator[](Key key);
19 external operator[]=(Key key, Value value);
20 external bool containsKey(Key key);
21 }
22 ```
OLDNEW
« no previous file with comments | « sky/specs/style2.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698