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

Unified Diff: pkg/compiler/lib/src/kernel/element_adapter.dart

Issue 2672063003: Implement SuperPropertySet and SuperNoSuchMethod. (Closed)
Patch Set: . Created 3 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 | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/element_adapter.dart
diff --git a/pkg/compiler/lib/src/kernel/element_adapter.dart b/pkg/compiler/lib/src/kernel/element_adapter.dart
index 448bd65bf8628b2da0a5db4eba99ed516bf60d6f..7103a63d89588f4a26de33613d362fa32083ea76 100644
--- a/pkg/compiler/lib/src/kernel/element_adapter.dart
+++ b/pkg/compiler/lib/src/kernel/element_adapter.dart
@@ -147,7 +147,12 @@ abstract class KernelElementAdapterMixin implements KernelElementAdapter {
if (node is ir.SuperPropertyGet) {
return getGetterSelector((node as ir.SuperPropertyGet).name);
}
- if (node is ir.PropertySet) return getSetterSelector(node.name);
+ if (node is ir.PropertySet) {
+ return getSetterSelector((node as ir.PropertySet).name);
+ }
+ if (node is ir.SuperPropertySet) {
+ return getSetterSelector((node as ir.SuperPropertySet).name);
+ }
if (node is ir.InvocationExpression) return getInvocationSelector(node);
throw new SpannableAssertionFailure(
CURRENT_ELEMENT_SPANNABLE,
« no previous file with comments | « no previous file | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698