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

Side by Side Diff: pkg/analyzer_plugin/tool/spec/to_html.dart

Issue 2742333005: Move some of analyzer's code generation utilities into front_end. (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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 displaying the API as HTML. This is used both for generating a 6 * Code for displaying the API as HTML. This is used both for generating a
7 * full description of the API as a web page, and for generating doc comments 7 * full description of the API as a web page, and for generating doc comments
8 * in generated code. 8 * in generated code.
9 */ 9 */
10 import 'dart:convert'; 10 import 'dart:convert';
11 11
12 import 'package:analyzer/src/codegen/html.dart'; 12 import 'package:analyzer/src/codegen/html.dart';
13 import 'package:analyzer/src/codegen/tools.dart'; 13 import 'package:analyzer/src/codegen/tools.dart';
14 import 'package:front_end/src/codegen/tools.dart';
14 import 'package:html/dom.dart' as dom; 15 import 'package:html/dom.dart' as dom;
15 16
16 import 'api.dart'; 17 import 'api.dart';
17 import 'from_html.dart'; 18 import 'from_html.dart';
18 19
19 /** 20 /**
20 * Embedded stylesheet 21 * Embedded stylesheet
21 */ 22 */
22 final String stylesheet = ''' 23 final String stylesheet = '''
23 body { 24 body {
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 bool verticalBarNeeded = false; 765 bool verticalBarNeeded = false;
765 for (TypeDecl choice in typeUnion.choices) { 766 for (TypeDecl choice in typeUnion.choices) {
766 if (verticalBarNeeded) { 767 if (verticalBarNeeded) {
767 write(' | '); 768 write(' | ');
768 } 769 }
769 visitTypeDecl(choice); 770 visitTypeDecl(choice);
770 verticalBarNeeded = true; 771 verticalBarNeeded = true;
771 } 772 }
772 } 773 }
773 } 774 }
OLDNEW
« no previous file with comments | « pkg/analyzer_plugin/tool/spec/generate_all.dart ('k') | pkg/front_end/lib/src/codegen/tools.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698