OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library web_components.build.html_import_recorder_inliner; | 4 library web_components.build.html_import_recorder_inliner; |
5 | 5 |
6 import 'package:analyzer/src/generated/element.dart'; | 6 import 'package:analyzer/dart/element/element.dart'; |
| 7 import 'package:analyzer/dart/element/type.dart'; |
7 import 'package:initialize/transformer.dart'; | 8 import 'package:initialize/transformer.dart'; |
8 import 'package:path/path.dart' as path; | 9 import 'package:path/path.dart' as path; |
9 import '../src/normalize_path.dart'; | 10 import '../src/normalize_path.dart'; |
10 | 11 |
11 /// [InitializerPlugin] for @HtmlImport annotations. This records all paths | 12 /// [InitializerPlugin] for @HtmlImport annotations. This records all paths |
12 /// seen, normalizes them relative to the entry point, and records the values in | 13 /// seen, normalizes them relative to the entry point, and records the values in |
13 /// [importPaths]. | 14 /// [importPaths]. |
14 /// | 15 /// |
15 /// Note: This does nothing with the paths on its own, a separate step needs to | 16 /// Note: This does nothing with the paths on its own, a separate step needs to |
16 /// add the imports to the entry point document. | 17 /// add the imports to the entry point document. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 return null; | 93 return null; |
93 } | 94 } |
94 | 95 |
95 importPaths | 96 importPaths |
96 .add(normalizeHtmlImportPath(originalImportPath, package, libPath)); | 97 .add(normalizeHtmlImportPath(originalImportPath, package, libPath)); |
97 | 98 |
98 // Don't emit an InitEntry. | 99 // Don't emit an InitEntry. |
99 return null; | 100 return null; |
100 } | 101 } |
101 } | 102 } |
OLD | NEW |