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

Side by Side Diff: runtime/lib/print_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 unified diff | Download patch
« no previous file with comments | « runtime/lib/object_patch.dart ('k') | runtime/lib/profiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:core' hide Symbol; 5 import 'dart:core' hide Symbol;
6 6
7 // A print-closure gets a String that should be printed. In general the 7 // A print-closure gets a String that should be printed. In general the
8 // string is a line, but it may contain "\n" characters. 8 // string is a line, but it may contain "\n" characters.
9 typedef void _PrintClosure(String line); 9 typedef void _PrintClosure(String line);
10 10
11 @patch void printToConsole(String line) { 11 @patch
12 void printToConsole(String line) {
12 _printClosure(line); 13 _printClosure(line);
13 } 14 }
14 15
15 void _unsupportedPrint(String line) { 16 void _unsupportedPrint(String line) {
16 throw new UnsupportedError("'print' is not supported"); 17 throw new UnsupportedError("'print' is not supported");
17 } 18 }
18 19
19 // _printClosure can be overwritten by the embedder to supply a different 20 // _printClosure can be overwritten by the embedder to supply a different
20 // print implementation. 21 // print implementation.
21 _PrintClosure _printClosure = _unsupportedPrint; 22 _PrintClosure _printClosure = _unsupportedPrint;
OLDNEW
« no previous file with comments | « runtime/lib/object_patch.dart ('k') | runtime/lib/profiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698