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

Unified Diff: runtime/lib/object_patch.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: 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 | « runtime/lib/null_patch.dart ('k') | runtime/lib/print_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/object_patch.dart
diff --git a/runtime/lib/object_patch.dart b/runtime/lib/object_patch.dart
index 04d450ef47043af55205cce05fdc05bdd62e6118..ae9589bd406d6792b88289dec61496dab5cab914 100644
--- a/runtime/lib/object_patch.dart
+++ b/runtime/lib/object_patch.dart
@@ -2,11 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-@patch
-class Object {
+@patch class Object {
+
// The VM has its own implementation of equals.
- @patch
- bool operator ==(other) native "Object_equals";
+ @patch bool operator ==(other) native "Object_equals";
// Helpers used to implement hashCode. If a hashCode is used, we remember it
// in a weak table in the VM. A new hashCode value is calculated using a
@@ -30,30 +29,29 @@ class Object {
return result;
}
- @patch
- int get hashCode => _objectHashCode(this);
+ @patch int get hashCode => _objectHashCode(this);
int get _identityHashCode => _objectHashCode(this);
- @patch
- String toString() native "Object_toString";
+ @patch String toString() native "Object_toString";
// A statically dispatched version of Object.toString.
static String _toString(obj) native "Object_toString";
- _noSuchMethod(bool isMethod, String memberName, int type, List arguments,
- Map<String, dynamic> namedArguments) native "Object_noSuchMethod";
+ _noSuchMethod(bool isMethod,
+ String memberName,
+ int type,
+ List arguments,
+ Map<String, dynamic> namedArguments)
+ native "Object_noSuchMethod";
- @patch
- dynamic noSuchMethod(Invocation invocation) {
- return _noSuchMethod(
- invocation.isMethod,
- internal.Symbol.getName(invocation.memberName),
- invocation._type,
- invocation.positionalArguments,
- _symbolMapToStringMap(invocation.namedArguments));
+ @patch dynamic noSuchMethod(Invocation invocation) {
+ return _noSuchMethod(invocation.isMethod,
+ internal.Symbol.getName(invocation.memberName),
+ invocation._type,
+ invocation.positionalArguments,
+ _symbolMapToStringMap(invocation.namedArguments));
}
- @patch
- Type get runtimeType native "Object_runtimeType";
+ @patch Type get runtimeType native "Object_runtimeType";
static bool _haveSameRuntimeType(a, b) native "Object_haveSameRuntimeType";
« no previous file with comments | « runtime/lib/null_patch.dart ('k') | runtime/lib/print_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698