Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: pkg/polymer/lib/polymer.dart

Issue 26967004: add @MirrorsUsed to observe/polymer/polymer_exprs pkgs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo in comment Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 * Custom HTML tags, data binding, and templates for building 6 * Custom HTML tags, data binding, and templates for building
7 * structured, encapsulated, client-side web apps. 7 * structured, encapsulated, client-side web apps.
8 * 8 *
9 * Polymer.dart, the next evolution of Web UI, 9 * Polymer.dart, the next evolution of Web UI,
10 * is an in-progress Dart port of the 10 * is an in-progress Dart port of the
(...skipping 25 matching lines...) Expand all
36 * 36 *
37 * * [Upgrading to Polymer.dart](http://www.dartlang.org/polymer-dart/upgrading- to-polymer-from-web-ui.html): 37 * * [Upgrading to Polymer.dart](http://www.dartlang.org/polymer-dart/upgrading- to-polymer-from-web-ui.html):
38 * Tips for converting your apps from Web UI to Polymer.dart. 38 * Tips for converting your apps from Web UI to Polymer.dart.
39 */ 39 */
40 library polymer; 40 library polymer;
41 41
42 import 'dart:async'; 42 import 'dart:async';
43 import 'dart:collection' show HashMap; 43 import 'dart:collection' show HashMap;
44 import 'dart:html'; 44 import 'dart:html';
45 import 'dart:js' as js; 45 import 'dart:js' as js;
46
47 @MirrorsUsed(metaTargets:
48 const [Reflectable, ObservableProperty, CustomTag, 'initMethod'],
Siggi Cherem (dart-lang) 2013/10/15 21:52:18 ohhh, so dart2js is smart about understanding that
Siggi Cherem (dart-lang) 2013/10/15 21:52:18 About 'initMethod', should this be 'initMethod' or
Jennifer Messerly 2013/10/15 22:03:29 yup
Jennifer Messerly 2013/10/15 22:03:29 originally I was having issues with private types.
49 override: const ['polymer', 'polymer.deserialize'])
Siggi Cherem (dart-lang) 2013/10/15 21:52:18 Q: I wonder if the override should just be '*' so
Jennifer Messerly 2013/10/15 22:03:29 exactly. Building "*" into Polymer would be bad :)
46 import 'dart:mirrors'; 50 import 'dart:mirrors';
47 51
48 import 'package:logging/logging.dart' show Logger, Level; 52 import 'package:logging/logging.dart' show Logger, Level;
49 import 'package:mdv/mdv.dart' as mdv; 53 import 'package:mdv/mdv.dart' as mdv;
50 import 'package:mdv/mdv.dart' show NodeBinding; 54 import 'package:mdv/mdv.dart' show NodeBinding;
51 import 'package:meta/meta.dart' show deprecated; 55 import 'package:meta/meta.dart' show deprecated;
52 import 'package:observe/observe.dart'; 56 import 'package:observe/observe.dart';
53 import 'package:observe/src/microtask.dart'; 57 import 'package:observe/src/microtask.dart';
54 import 'package:path/path.dart' as path; 58 import 'package:path/path.dart' as path;
55 import 'package:polymer_expressions/polymer_expressions.dart' 59 import 'package:polymer_expressions/polymer_expressions.dart'
56 show PolymerExpressions; 60 show PolymerExpressions;
57 61
58 import 'deserialize.dart' as deserialize; 62 import 'deserialize.dart' as deserialize;
59 import 'job.dart'; 63 import 'job.dart';
60 import 'platform.dart' as platform; 64 import 'platform.dart' as platform;
65 import 'src/reflected_type.dart';
61 66
62 export 'package:observe/observe.dart'; 67 export 'package:observe/observe.dart';
63 export 'package:observe/html.dart'; 68 export 'package:observe/html.dart';
64 export 'package:observe/src/microtask.dart'; 69 export 'package:observe/src/microtask.dart';
65 70
66 part 'src/declaration.dart'; 71 part 'src/declaration.dart';
67 part 'src/instance.dart'; 72 part 'src/instance.dart';
68 part 'src/loader.dart'; 73 part 'src/loader.dart';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698