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

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

Issue 1261623002: Add AccessSemantics.INVALID for invalid expressions. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c741b3454b68287af8f4cc527e0370e25051980..830d40175e87d23eefffc60dc7c34353f1331c96 100644
--- a/pkg/compiler/lib/src/resolution/access_semantics.dart
+++ b/pkg/compiler/lib/src/resolution/access_semantics.dart
@@ -143,6 +143,10 @@ enum AccessKind {
/// The destination of the access is unresolved super access.
UNRESOLVED_SUPER,
+
+ /// The destination is invalid as an access. For instance a prefix used
+ /// as an expression.
+ INVALID,
}
enum CompoundAccessKind {
@@ -357,6 +361,9 @@ class StaticAccess extends AccessSemantics {
StaticAccess.unresolvedSuper(this.element)
: super._(AccessKind.UNRESOLVED_SUPER);
+
+ StaticAccess.invalid(this.element)
+ : super._(AccessKind.INVALID);
}
class CompoundAccessSemantics extends AccessSemantics {
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698