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

Unified Diff: runtime/lib/symbol_patch.dart

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (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/string_patch.dart ('k') | runtime/lib/timeline.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/symbol_patch.dart
diff --git a/runtime/lib/symbol_patch.dart b/runtime/lib/symbol_patch.dart
index aabf923d2f7f2e85ae7022bf3122113db95553fe..3e4c07c53b8dc773b9eae84cfbe4d5b3f197d829 100644
--- a/runtime/lib/symbol_patch.dart
+++ b/runtime/lib/symbol_patch.dart
@@ -4,11 +4,13 @@
import 'dart:core' hide Symbol;
-@patch class Symbol {
- @patch const Symbol(String name)
- : this._name = name;
+@patch
+class Symbol {
+ @patch
+ const Symbol(String name) : this._name = name;
- @patch toString() => 'Symbol("${getUnmangledName(this)}")';
+ @patch
+ toString() => 'Symbol("${getUnmangledName(this)}")';
static getUnmangledName(Symbol symbol) {
String string = Symbol.getName(symbol);
@@ -54,7 +56,8 @@ import 'dart:core' hide Symbol;
return result.toString();
}
- @patch int get hashCode {
+ @patch
+ int get hashCode {
const arbitraryPrime = 664597;
return 0x1fffffff & (arbitraryPrime * _name.hashCode);
}
« no previous file with comments | « runtime/lib/string_patch.dart ('k') | runtime/lib/timeline.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698