OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |