OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 * Part of the template compilation that concerns with extracting information | 6 * Part of the template compilation that concerns with extracting information |
7 * from the HTML parse tree. | 7 * from the HTML parse tree. |
8 */ | 8 */ |
9 library analyzer; | 9 library analyzer; |
10 | 10 |
11 import 'dart:coreimpl'; | 11 import 'dart:coreimpl'; |
12 import 'package:html5lib/dom.dart'; | 12 import 'package:html5lib/dom.dart'; |
| 13 import 'package:html5lib/dom_parsing.dart'; |
13 | 14 |
14 import 'info.dart'; | 15 import 'info.dart'; |
15 import 'files.dart'; | 16 import 'files.dart'; |
16 import 'utils.dart'; | 17 import 'utils.dart'; |
17 import 'world.dart'; | 18 import 'world.dart'; |
18 | 19 |
19 | 20 |
20 /** | 21 /** |
21 * Finds custom elements in this file and the list of referenced files with | 22 * Finds custom elements in this file and the list of referenced files with |
22 * component declarations. This is the first pass of analysis on a file. | 23 * component declarations. This is the first pass of analysis on a file. |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 '${fileInfo.filename}: imported duplicate custom element definitions ' | 516 '${fileInfo.filename}: imported duplicate custom element definitions ' |
516 'for "${componentInfo.tagName}"' | 517 'for "${componentInfo.tagName}"' |
517 'from "${existing.file.filename}":\n ${existing.element.outerHTML}\n' | 518 'from "${existing.file.filename}":\n ${existing.element.outerHTML}\n' |
518 'and from "${componentInfo.file.filename}":\n' | 519 'and from "${componentInfo.file.filename}":\n' |
519 ' ${componentInfo.element.outerHTML}'); | 520 ' ${componentInfo.element.outerHTML}'); |
520 } | 521 } |
521 } else { | 522 } else { |
522 fileInfo.components[componentInfo.tagName] = componentInfo; | 523 fileInfo.components[componentInfo.tagName] = componentInfo; |
523 } | 524 } |
524 } | 525 } |
OLD | NEW |