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

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

Issue 1411153007: Begin moving code generation tools from analysis_server to analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | pkg/analyzer/lib/src/codegen/text_formatter.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 * Tools for HTML manipulation. 6 * Tools for manipulating HTML during code generation of analyzer and analysis
7 * server.
7 */ 8 */
8 library html.tools; 9 library analyzer.src.codegen.html;
9 10
10 import 'package:html/dom.dart' as dom; 11 import 'package:html/dom.dart' as dom;
11 12
12 /** 13 /**
13 * Make a deep copy of the given HTML nodes. 14 * Make a deep copy of the given HTML nodes.
14 */ 15 */
15 List<dom.Node> cloneHtmlNodes(List<dom.Node> nodes) => 16 List<dom.Node> cloneHtmlNodes(List<dom.Node> nodes) =>
16 nodes.map((dom.Node node) => node.clone(true)).toList(); 17 nodes.map((dom.Node node) => node.clone(true)).toList();
17 18
18 /** 19 /**
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 _html.add(new dom.Text(text)); 129 _html.add(new dom.Text(text));
129 } 130 }
130 131
131 /** 132 /**
132 * Output text, ending the current line. 133 * Output text, ending the current line.
133 */ 134 */
134 void writeln([Object obj = '']) { 135 void writeln([Object obj = '']) {
135 write('$obj\n'); 136 write('$obj\n');
136 } 137 }
137 } 138 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/codegen/text_formatter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698