| 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'; | |
| 15 import 'package:html/dom.dart' as dom; | 14 import 'package:html/dom.dart' as dom; |
| 16 | 15 |
| 17 import 'api.dart'; | 16 import 'api.dart'; |
| 18 import 'from_html.dart'; | 17 import 'from_html.dart'; |
| 19 | 18 |
| 20 /** | 19 /** |
| 21 * Embedded stylesheet | 20 * Embedded stylesheet |
| 22 */ | 21 */ |
| 23 final String stylesheet = ''' | 22 final String stylesheet = ''' |
| 24 body { | 23 body { |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 bool verticalBarNeeded = false; | 818 bool verticalBarNeeded = false; |
| 820 for (TypeDecl choice in typeUnion.choices) { | 819 for (TypeDecl choice in typeUnion.choices) { |
| 821 if (verticalBarNeeded) { | 820 if (verticalBarNeeded) { |
| 822 write(' | '); | 821 write(' | '); |
| 823 } | 822 } |
| 824 visitTypeDecl(choice); | 823 visitTypeDecl(choice); |
| 825 verticalBarNeeded = true; | 824 verticalBarNeeded = true; |
| 826 } | 825 } |
| 827 } | 826 } |
| 828 } | 827 } |
| OLD | NEW |