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

Unified Diff: sdk/lib/math/point.dart

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/math/math.dart ('k') | sdk/lib/math/rectangle.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/math/point.dart
diff --git a/sdk/lib/math/point.dart b/sdk/lib/math/point.dart
index 01ce93c3b77387774708a0eb0eb25910b4f785a2..34c8b5066604e4362c980499e60e327a6e55efe9 100644
--- a/sdk/lib/math/point.dart
+++ b/sdk/lib/math/point.dart
@@ -10,7 +10,9 @@ class Point<T extends num> {
final T x;
final T y;
- const Point(T x, T y): this.x = x, this.y = y;
+ const Point(T x, T y)
+ : this.x = x,
+ this.y = y;
String toString() => 'Point($x, $y)';
@@ -22,7 +24,7 @@ class Point<T extends num> {
* [x] equal to `other.x` and [y] equal to `other.y`.
*/
bool operator ==(other) {
- if (other is !Point) return false;
+ if (other is! Point) return false;
return x == other.x && y == other.y;
}
@@ -55,7 +57,7 @@ class Point<T extends num> {
* it, passing in a double [factor] on a `Point<int>` _causes_ _a_
* _runtime_ _error_ in checked mode.
*/
- Point<T> operator *(num/*T|int*/ factor) {
+ Point<T> operator *(num /*T|int*/ factor) {
return new Point<T>(
(x * factor) as dynamic/*=T*/, (y * factor) as dynamic/*=T*/);
}
« no previous file with comments | « sdk/lib/math/math.dart ('k') | sdk/lib/math/rectangle.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698