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

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

Issue 895063002: Add member type to 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 6b3ea300512ba3fef7a1f02ffc1efb29616fc4ac..410d9544377ba313411570e164e684bee8cfd6c5 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -337,6 +337,7 @@ class DartMethod extends Method {
final List<ParameterStubMethod> parameterStubs;
final bool canBeApplied;
final bool canBeReflected;
+ final DartType type;
// If this method can be torn off, contains the name of the corresponding
// call method. For example, for the member `foo$1$name` it would be
@@ -344,7 +345,7 @@ class DartMethod extends Method {
final String callName;
DartMethod(Element element, String name, js.Expression code,
- this.parameterStubs, this.callName,
+ this.parameterStubs, this.callName, this.type,
{this.needsTearOff, this.tearOffName, this.canBeApplied,
this.canBeReflected})
: super(element, name, code) {
@@ -366,14 +367,14 @@ class InstanceMethod extends DartMethod {
InstanceMethod(Element element, String name, js.Expression code,
List<ParameterStubMethod> parameterStubs,
- String callName,
+ String callName, DartType type,
{bool needsTearOff,
String tearOffName,
this.aliasName,
bool canBeApplied,
bool canBeReflected,
this.isClosure})
- : super(element, name, code, parameterStubs, callName,
+ : super(element, name, code, parameterStubs, callName, type,
needsTearOff: needsTearOff,
tearOffName: tearOffName,
canBeApplied: canBeApplied,
@@ -421,10 +422,10 @@ class StaticDartMethod extends DartMethod implements StaticMethod {
StaticDartMethod(Element element, String name, this.holder,
js.Expression code, List<ParameterStubMethod> parameterStubs,
- String callName,
+ String callName, DartType type,
{bool needsTearOff, String tearOffName, bool canBeApplied,
bool canBeReflected})
- : super(element, name, code, parameterStubs, callName,
+ : super(element, name, code, parameterStubs, callName, type,
needsTearOff: needsTearOff,
tearOffName : tearOffName,
canBeApplied : canBeApplied,

Powered by Google App Engine
This is Rietveld 408576698