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

Unified Diff: frog/leg/emitter.dart

Issue 9359016: Implement is-Operator for interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | frog/tests/leg/src/ResolverTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/emitter.dart
diff --git a/frog/leg/emitter.dart b/frog/leg/emitter.dart
index 9132b207045996f4e150a635f0a51f229543ba35..c6642c1eef92307123593607d40b110f1100b5dc 100644
--- a/frog/leg/emitter.dart
+++ b/frog/leg/emitter.dart
@@ -233,6 +233,9 @@ function(child, parent) {
}
}
buffer.add('$prototype.${namer.operatorIs(classElement)} = true;\n');
+ for (Type ifc in classElement.interfaces) {
+ buffer.add('$prototype.${namer.operatorIs(ifc.element)} = true;\n');
+ }
}
void emitClasses(StringBuffer buffer) {
« no previous file with comments | « no previous file | frog/tests/leg/src/ResolverTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698