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

Unified Diff: pkg/compiler/lib/src/resolution/semantic_visitor.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
Index: pkg/compiler/lib/src/resolution/semantic_visitor.dart
diff --git a/pkg/compiler/lib/src/resolution/semantic_visitor.dart b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
index 3c265cc097ada4d20dc7a1e88160acc172212ba8..342cf333713a23ab4f81577009f2331607ea8555 100644
--- a/pkg/compiler/lib/src/resolution/semantic_visitor.dart
+++ b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
@@ -4056,6 +4056,86 @@ abstract class SemanticSendVisitor<R, A> {
CallStructure callStructure,
A arg);
+ /// Read access of an invalid expression.
+ ///
+ /// For instance
+ /// import 'foo.dart' as p;
+ ///
+ /// m() => p;
+ ///
+ R errorInvalidGet(
+ Send node,
+ ErroneousElement error,
+ A arg);
+
+
+ /// Invocation of an invalid expression with [arguments].
+ ///
+ /// For instance
+ /// import 'foo.dart' as p;
+ ///
+ /// m() => p(null, 42);
+ ///
+ R errorInvalidInvoke(
+ Send node,
+ ErroneousElement error,
+ NodeList arguments,
+ Selector selector,
+ A arg);
+
+ /// Assignment of [rhs] to an invalid expression.
+ ///
+ /// For instance
+ /// import 'foo.dart' as p;
+ ///
+ /// m() { p = 42; }
+ ///
+ R errorInvalidSet(
+ Send node,
+ ErroneousElement error,
+ Node rhs,
+ A arg);
+
+ /// Prefix operation on an invalid expression.
+ ///
+ /// For instance
+ /// import 'foo.dart' as p;
+ ///
+ /// m() => ++p;
+ ///
+ R errorInvalidPrefix(
+ Send node,
+ ErroneousElement error,
+ IncDecOperator operator,
+ A arg);
+
+ /// Postfix operation on an invalid expression.
+ ///
+ /// For instance
+ /// import 'foo.dart' as p;
+ ///
+ /// m() => p--;
+ ///
+ R errorInvalidPostfix(
+ Send node,
+ ErroneousElement error,
+ IncDecOperator operator,
+ A arg);
+
+ /// Compound assignment of [operator] with [rhs] on an invalid expression.
+ ///
+ /// For instance
+ /// import 'foo.dart' as p;
+ ///
+ /// m() => p += 42;
+ ///
+ R errorInvalidCompound(
+ Send node,
+ ErroneousElement error,
+ AssignmentOperator operator,
+ Node rhs,
+ A arg);
+
/// Access of library through a deferred [prefix].
///
/// For instance
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/semantic_visitor_mixins.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698