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

Unified Diff: pkg/compiler/lib/src/resolution/access_semantics.dart

Issue 1182563003: Handle most qualified sends. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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/resolution/access_semantics.dart
diff --git a/pkg/compiler/lib/src/resolution/access_semantics.dart b/pkg/compiler/lib/src/resolution/access_semantics.dart
index 17ec4adabc49af4aee3af3b32485884feadcf0a1..e9025ded700bff32038b3bd3fbb29c3603867079 100644
--- a/pkg/compiler/lib/src/resolution/access_semantics.dart
+++ b/pkg/compiler/lib/src/resolution/access_semantics.dart
@@ -17,6 +17,10 @@ import '../dart_types.dart';
/// Enum representing the different kinds of destinations which a property
/// access or method or function invocation might refer to.
enum AccessKind {
+ /// The destination of the conditional access is an instance method, property,
+ /// or field of a class, and thus must be determined dynamically.
+ IF_NOT_NULL_PROPERTY,
karlklose 2015/06/12 07:01:02 Shoudn't this be IF_DYNAMIC_PROPERTY or CONDITIONA
Johnni Winther 2015/06/12 07:50:30 Done.
+
/// The destination of the access is an instance method, property, or field
/// of a class, and thus must be determined dynamically.
DYNAMIC_PROPERTY,
@@ -256,6 +260,9 @@ class DynamicAccess extends AccessSemantics {
DynamicAccess.dynamicProperty(this.target)
: super._(AccessKind.DYNAMIC_PROPERTY);
+
+ DynamicAccess.ifNotNullProperty(this.target)
+ : super._(AccessKind.IF_NOT_NULL_PROPERTY);
}
class ConstantAccess extends AccessSemantics {

Powered by Google App Engine
This is Rietveld 408576698