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

Unified Diff: pkg/compiler/lib/src/js_emitter/model.dart

Issue 891473002: Move reflection support out of model. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
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 1c3f80d72cbbf1e8885d7ab12b17cb6ece405431..29b547c560d068814f71081f4704cff97a0d685c 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -318,16 +318,13 @@ 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.canBeReflected})
+ {this.needsTearOff, this.tearOffName, this.needsStubs, this.canBeApplied})
: super(element, name, code) {
assert(needsTearOff != null);
assert(!needsTearOff || tearOffName != null);
assert(canBeApplied != null);
- assert(canBeReflected != null);
assert(needsStubs != null);
}
}
@@ -342,14 +339,12 @@ 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);
@@ -371,12 +366,11 @@ class StaticMethod extends DartMethod {
final Holder holder;
StaticMethod(Element element, String name, this.holder, js.Expression code,
{bool needsTearOff, String tearOffName, bool canBeApplied,
- bool canBeReflected, bool needsStubs})
+ bool needsStubs})
: super(element, name, code,
needsTearOff: needsTearOff,
tearOffName : tearOffName,
canBeApplied : canBeApplied,
- canBeReflected : canBeReflected,
needsStubs : needsStubs);
}

Powered by Google App Engine
This is Rietveld 408576698