| Index: pkg/compiler/lib/src/js_emitter/model.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/model.dart b/pkg/compiler/lib/src/js_emitter/model.dart
|
| index 29b547c560d068814f71081f4704cff97a0d685c..1c3f80d72cbbf1e8885d7ab12b17cb6ece405431 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/model.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/model.dart
|
| @@ -318,13 +318,16 @@ class DartMethod extends Method {
|
| final bool needsStubs;
|
| // TODO(herhut): Directly store aliases instead.
|
| final bool canBeApplied;
|
| + final bool canBeReflected;
|
|
|
| DartMethod(Element element, String name, js.Expression code,
|
| - {this.needsTearOff, this.tearOffName, this.needsStubs, this.canBeApplied})
|
| + {this.needsTearOff, this.tearOffName, this.needsStubs, this.canBeApplied,
|
| + this.canBeReflected})
|
| : super(element, name, code) {
|
| assert(needsTearOff != null);
|
| assert(!needsTearOff || tearOffName != null);
|
| assert(canBeApplied != null);
|
| + assert(canBeReflected != null);
|
| assert(needsStubs != null);
|
| }
|
| }
|
| @@ -339,12 +342,14 @@ class InstanceMethod extends DartMethod {
|
| String tearOffName,
|
| this.hasSuperAlias,
|
| bool canBeApplied,
|
| + bool canBeReflected,
|
| this.isClosure,
|
| bool needsStubs})
|
| : super(element, name, code,
|
| needsTearOff: needsTearOff,
|
| tearOffName: tearOffName,
|
| canBeApplied: canBeApplied,
|
| + canBeReflected: canBeReflected,
|
| needsStubs: needsStubs) {
|
| assert(hasSuperAlias != null);
|
| assert(isClosure != null);
|
| @@ -366,11 +371,12 @@ class StaticMethod extends DartMethod {
|
| final Holder holder;
|
| StaticMethod(Element element, String name, this.holder, js.Expression code,
|
| {bool needsTearOff, String tearOffName, bool canBeApplied,
|
| - bool needsStubs})
|
| + bool canBeReflected, bool needsStubs})
|
| : super(element, name, code,
|
| needsTearOff: needsTearOff,
|
| tearOffName : tearOffName,
|
| canBeApplied : canBeApplied,
|
| + canBeReflected : canBeReflected,
|
| needsStubs : needsStubs);
|
| }
|
|
|
|
|