| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /// Transfomer that combines multiple dart script tags into a single one. | 5 /// Transfomer that combines multiple dart script tags into a single one. |
| 6 library polymer.src.build.script_compactor; | 6 library polymer.src.build.script_compactor; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:convert'; | 9 import 'dart:convert'; |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 class int extends num {} | 68 class int extends num {} |
| 69 class double extends num {} | 69 class double extends num {} |
| 70 class DateTime extends Object {} | 70 class DateTime extends Object {} |
| 71 class Null extends Object {} | 71 class Null extends Object {} |
| 72 | 72 |
| 73 class Deprecated extends Object { | 73 class Deprecated extends Object { |
| 74 final String expires; | 74 final String expires; |
| 75 const Deprecated(this.expires); | 75 const Deprecated(this.expires); |
| 76 } | 76 } |
| 77 const Object deprecated = const Deprecated("next release"); | 77 const Object deprecated = const Deprecated("next release"); |
| 78 class _Override { const _Override(); } |
| 79 const Object override = const _Override(); |
| 80 class _Proxy { const _Proxy(); } |
| 81 const Object proxy = const _Proxy(); |
| 78 | 82 |
| 79 class List<V> extends Object {} | 83 class List<V> extends Object {} |
| 80 class Map<K, V> extends Object {} | 84 class Map<K, V> extends Object {} |
| 81 ''', | 85 ''', |
| 82 'dart:html': ''' | 86 'dart:html': ''' |
| 83 library dart.html; | 87 library dart.html; |
| 84 class HtmlElement {} | 88 class HtmlElement {} |
| 85 ''', | 89 ''', |
| 86 }); | 90 }); |
| 87 | 91 |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 for (var c in combinators) { | 770 for (var c in combinators) { |
| 767 if (c is ShowElementCombinator) { | 771 if (c is ShowElementCombinator) { |
| 768 var show = c.shownNames.toSet(); | 772 var show = c.shownNames.toSet(); |
| 769 elements.retainWhere((e) => show.contains(e.displayName)); | 773 elements.retainWhere((e) => show.contains(e.displayName)); |
| 770 } else if (c is HideElementCombinator) { | 774 } else if (c is HideElementCombinator) { |
| 771 var hide = c.hiddenNames.toSet(); | 775 var hide = c.hiddenNames.toSet(); |
| 772 elements.removeWhere((e) => hide.contains(e.displayName)); | 776 elements.removeWhere((e) => hide.contains(e.displayName)); |
| 773 } | 777 } |
| 774 } | 778 } |
| 775 } | 779 } |
| OLD | NEW |