Chromium Code Reviews| 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 library polymer_expressions.eval; | 5 library polymer_expressions.eval; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | |
| 10 @MirrorsUsed(metaTargets: const [Reflectable, ObservableProperty], | |
| 11 override: 'polymer_expressions.eval') | |
|
Siggi Cherem (dart-lang)
2013/10/15 21:52:18
ditto
Jennifer Messerly
2013/10/15 22:03:29
ditto :)
| |
| 9 import 'dart:mirrors'; | 12 import 'dart:mirrors'; |
| 10 | 13 |
| 11 import 'package:observe/observe.dart'; | 14 import 'package:observe/observe.dart'; |
| 12 | 15 |
| 13 import 'async.dart'; | 16 import 'async.dart'; |
| 14 import 'expression.dart'; | 17 import 'expression.dart'; |
| 15 import 'filter.dart'; | 18 import 'filter.dart'; |
| 16 import 'visitor.dart'; | 19 import 'visitor.dart'; |
| 17 import 'src/mirrors.dart'; | 20 import 'src/mirrors.dart'; |
| 18 | 21 |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 641 * This does not work for calls that need to pass more than one argument. | 644 * This does not work for calls that need to pass more than one argument. |
| 642 */ | 645 */ |
| 643 call(arg0) => mirror.invoke(symbol, [arg0], null).reflectee; | 646 call(arg0) => mirror.invoke(symbol, [arg0], null).reflectee; |
| 644 } | 647 } |
| 645 | 648 |
| 646 class EvalException implements Exception { | 649 class EvalException implements Exception { |
| 647 final String message; | 650 final String message; |
| 648 EvalException(this.message); | 651 EvalException(this.message); |
| 649 String toString() => "EvalException: $message"; | 652 String toString() => "EvalException: $message"; |
| 650 } | 653 } |
| OLD | NEW |