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 reading an HTML API description. | 6 * Code for reading an HTML API description. |
7 */ | 7 */ |
8 library from.html; | |
9 | |
10 import 'dart:io'; | 8 import 'dart:io'; |
11 | 9 |
12 import 'package:analyzer/src/codegen/html.dart'; | 10 import 'package:analyzer/src/codegen/html.dart'; |
13 import 'package:html/dom.dart' as dom; | 11 import 'package:html/dom.dart' as dom; |
14 import 'package:html/parser.dart' as parser; | 12 import 'package:html/parser.dart' as parser; |
15 import 'package:path/path.dart'; | 13 import 'package:path/path.dart'; |
16 | 14 |
17 import 'api.dart'; | 15 import 'api.dart'; |
18 | 16 |
19 const List<String> specialElements = const [ | 17 const List<String> specialElements = const [ |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 TypeDefinition typeDefinition = typeDefinitionFromHtml(child); | 552 TypeDefinition typeDefinition = typeDefinitionFromHtml(child); |
555 types[typeDefinition.name] = typeDefinition; | 553 types[typeDefinition.name] = typeDefinition; |
556 } | 554 } |
557 }); | 555 }); |
558 return new Types(types, html); | 556 return new Types(types, html); |
559 } | 557 } |
560 | 558 |
561 typedef void ElementProcessor(dom.Element element); | 559 typedef void ElementProcessor(dom.Element element); |
562 | 560 |
563 typedef void TextProcessor(dom.Text text); | 561 typedef void TextProcessor(dom.Text text); |
OLD | NEW |