| OLD | NEW |
| 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 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 library to.html; | 10 library to.html; |
| 11 | 11 |
| 12 import 'dart:convert'; | 12 import 'dart:convert'; |
| 13 | 13 |
| 14 import 'package:html5lib/dom.dart' as dom; | 14 import 'package:html/dom.dart' as dom; |
| 15 | 15 |
| 16 import 'api.dart'; | 16 import 'api.dart'; |
| 17 import 'codegen_tools.dart'; | 17 import 'codegen_tools.dart'; |
| 18 import 'from_html.dart'; | 18 import 'from_html.dart'; |
| 19 import 'html_tools.dart'; | 19 import 'html_tools.dart'; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * Embedded stylesheet | 22 * Embedded stylesheet |
| 23 */ | 23 */ |
| 24 final String stylesheet = ''' | 24 final String stylesheet = ''' |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 bool verticalBarNeeded = false; | 582 bool verticalBarNeeded = false; |
| 583 for (TypeDecl choice in typeUnion.choices) { | 583 for (TypeDecl choice in typeUnion.choices) { |
| 584 if (verticalBarNeeded) { | 584 if (verticalBarNeeded) { |
| 585 write(' | '); | 585 write(' | '); |
| 586 } | 586 } |
| 587 visitTypeDecl(choice); | 587 visitTypeDecl(choice); |
| 588 verticalBarNeeded = true; | 588 verticalBarNeeded = true; |
| 589 } | 589 } |
| 590 } | 590 } |
| 591 } | 591 } |
| OLD | NEW |