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

Side by Side Diff: lib/src/pretty_print.dart

Issue 1584563003: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/matcher@master
Patch Set: Created 4 years, 11 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 | « lib/src/operator_matchers.dart ('k') | lib/src/string_matchers.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library matcher.pretty_print;
6
7 import 'description.dart'; 5 import 'description.dart';
8 import 'interfaces.dart'; 6 import 'interfaces.dart';
9 import 'util.dart'; 7 import 'util.dart';
10 8
11 /// Returns a pretty-printed representation of [object]. 9 /// Returns a pretty-printed representation of [object].
12 /// 10 ///
13 /// If [maxLineLength] is passed, this will attempt to ensure that each line is 11 /// If [maxLineLength] is passed, this will attempt to ensure that each line is
14 /// no longer than [maxLineLength] characters long. This isn't guaranteed, since 12 /// no longer than [maxLineLength] characters long. This isn't guaranteed, since
15 /// individual objects may have string representations that are too long, but 13 /// individual objects may have string representations that are too long, but
16 /// most lines will be less than [maxLineLength] long. 14 /// most lines will be less than [maxLineLength] long.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return "?"; 125 return "?";
128 } 126 }
129 } 127 }
130 128
131 /// Returns [source] with any control characters replaced by their escape 129 /// Returns [source] with any control characters replaced by their escape
132 /// sequences. 130 /// sequences.
133 /// 131 ///
134 /// This doesn't add quotes to the string, but it does escape single quote 132 /// This doesn't add quotes to the string, but it does escape single quote
135 /// characters so that single quotes can be applied externally. 133 /// characters so that single quotes can be applied externally.
136 String _escapeString(String source) => escape(source).replaceAll("'", r"\'"); 134 String _escapeString(String source) => escape(source).replaceAll("'", r"\'");
OLDNEW
« no previous file with comments | « lib/src/operator_matchers.dart ('k') | lib/src/string_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698