| 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 /// Custom HTML tags, data binding, and templates for building | 5 /// Custom HTML tags, data binding, and templates for building |
| 6 /// structured, encapsulated, client-side web apps. | 6 /// structured, encapsulated, client-side web apps. |
| 7 /// | 7 /// |
| 8 /// Polymer.dart, the next evolution of Web UI, | 8 /// Polymer.dart, the next evolution of Web UI, |
| 9 /// is an in-progress Dart port of the | 9 /// is an in-progress Dart port of the |
| 10 /// [Polymer project](http://www.polymer-project.org/). | 10 /// [Polymer project](http://www.polymer-project.org/). |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 import 'dart:async'; | 46 import 'dart:async'; |
| 47 import 'dart:collection' show HashMap, HashSet; | 47 import 'dart:collection' show HashMap, HashSet; |
| 48 import 'dart:html'; | 48 import 'dart:html'; |
| 49 import 'dart:js' as js show context; | 49 import 'dart:js' as js show context; |
| 50 import 'dart:js' hide context; | 50 import 'dart:js' hide context; |
| 51 | 51 |
| 52 // *** Important Note *** | 52 // *** Important Note *** |
| 53 // This import is automatically replaced when calling pub build by the | 53 // This import is automatically replaced when calling pub build by the |
| 54 // mirrors_remover transformer. The transformer will remove any dependencies on | 54 // mirrors_remover transformer. The transformer will remove any dependencies on |
| 55 // dart:mirrors in deployed polymer apps. This and the import to | 55 // dart:mirrors in deployed polymer apps. This should be updated in sync with |
| 56 // mirror_loader.dart below should be updated in sync with changed in | 56 // changed in lib/src/build/mirrors_remover.dart. |
| 57 // lib/src/build/mirrors_remover.dart. | |
| 58 // | 57 // |
| 59 // Technically, if we have codegen for expressions we shouldn't need any | 58 // Technically this annotation is not needed now that we have codegen for |
| 60 // @MirrorsUsed (since this is for development only), but our test bots don't | 59 // expressions, but our test bots don't run pub-build yet. Until then, tests |
| 61 // run pub-build yet. Until then, polymer might be tested with mirror_loader | 60 // might (transitively) have an import to smoke.mirrors, even though the code is |
| 62 // instead of the static_loader, however the actual code there is practically | 61 // completely dead. This @MirrorsUsed annotation helps reduce the load on our |
| 63 // dead ([initializers] will be set programatically with generated code | 62 // bots. |
| 64 // anyways), but the @MirrorsUsed helps reduce the load on our bots. | |
| 65 @MirrorsUsed(metaTargets: | 63 @MirrorsUsed(metaTargets: |
| 66 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag, | 64 const [Reflectable, ObservableProperty, PublishedProperty, CustomTag, |
| 67 ObserveProperty], | 65 ObserveProperty], |
| 68 targets: const [PublishedProperty, ObserveProperty], | 66 targets: const [PublishedProperty, ObserveProperty], |
| 69 override: const ['smoke.mirrors']) | 67 override: const ['smoke.mirrors']) |
| 70 import 'dart:mirrors' show MirrorsUsed; // ** see important note above | 68 import 'dart:mirrors' show MirrorsUsed; // ** see important note above |
| 71 | 69 |
| 72 import 'package:logging/logging.dart' show Logger, Level; | 70 import 'package:logging/logging.dart' show Logger, Level; |
| 73 import 'package:observe/observe.dart'; | 71 import 'package:observe/observe.dart'; |
| 74 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone; | 72 import 'package:observe/src/dirty_check.dart' show dirtyCheckZone; |
| 75 import 'package:path/path.dart' as path; | 73 import 'package:path/path.dart' as path; |
| 76 import 'package:polymer_expressions/polymer_expressions.dart' | 74 import 'package:polymer_expressions/polymer_expressions.dart' |
| 77 show PolymerExpressions; | 75 show PolymerExpressions; |
| 78 import 'package:smoke/smoke.dart' as smoke; | 76 import 'package:smoke/smoke.dart' as smoke; |
| 79 import 'package:template_binding/template_binding.dart'; | 77 import 'package:template_binding/template_binding.dart'; |
| 80 | 78 |
| 81 import 'deserialize.dart' as deserialize; | 79 import 'deserialize.dart' as deserialize; |
| 82 import 'src/mirror_loader.dart' as loader; // ** see important note above | |
| 83 | 80 |
| 84 export 'package:observe/observe.dart'; | 81 export 'package:observe/observe.dart'; |
| 85 export 'package:observe/html.dart'; | 82 export 'package:observe/html.dart'; |
| 86 | 83 |
| 87 part 'src/declaration.dart'; | 84 part 'src/declaration.dart'; |
| 88 part 'src/instance.dart'; | 85 part 'src/instance.dart'; |
| 89 part 'src/job.dart'; | 86 part 'src/job.dart'; |
| 90 part 'src/loader.dart'; | 87 part 'src/loader.dart'; |
| OLD | NEW |