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

Side by Side Diff: pkg/analyzer/lib/src/codegen/text_formatter.dart

Issue 1513643009: Clean up package imports and library names (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « pkg/analyzer/lib/src/cancelable_future.dart ('k') | pkg/analyzer/lib/src/codegen/tools.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 /** 5 /**
6 * Code for converting HTML into text, for use during code generation of 6 * Code for converting HTML into text, for use during code generation of
7 * analyzer and analysis server. 7 * analyzer and analysis server.
8 */ 8 */
9 library analyzer.src.codegen.text_formatter; 9 library analyzer.src.codegen.text_formatter;
10 10
11 import 'package:analyzer/src/codegen/tools.dart';
11 import 'package:html/dom.dart' as dom; 12 import 'package:html/dom.dart' as dom;
12 13
13 import 'tools.dart';
14
15 final RegExp whitespace = new RegExp(r'\s'); 14 final RegExp whitespace = new RegExp(r'\s');
16 15
17 /** 16 /**
18 * Convert the HTML in [desc] into text, word wrapping at width [width]. 17 * Convert the HTML in [desc] into text, word wrapping at width [width].
19 * 18 *
20 * If [javadocStyle] is true, then the output is compatable with Javadoc, 19 * If [javadocStyle] is true, then the output is compatable with Javadoc,
21 * which understands certain HTML constructs. 20 * which understands certain HTML constructs.
22 */ 21 */
23 String nodesToText(List<dom.Node> desc, int width, bool javadocStyle, 22 String nodesToText(List<dom.Node> desc, int width, bool javadocStyle,
24 {bool removeTrailingNewLine: false}) { 23 {bool removeTrailingNewLine: false}) {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 writeln(line); 237 writeln(line);
239 line = word; 238 line = word;
240 } 239 }
241 } else { 240 } else {
242 line = word; 241 line = word;
243 } 242 }
244 word = ''; 243 word = '';
245 } 244 }
246 } 245 }
247 } 246 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/cancelable_future.dart ('k') | pkg/analyzer/lib/src/codegen/tools.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698