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

Unified Diff: pkg/analyzer/test/generated/parser_test.dart

Issue 1062723002: Implement the new '?.' operator in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bump analyzer version. Created 5 years, 8 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/analyzer/test/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index ea1fa59687e67f4e00d47accf6d4aebfdb73ac33..2b716bf29e7e75408f8efe6b77d2fbc979fad812 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -1302,6 +1302,18 @@ class Foo {
[ParserErrorCode.INVALID_OPERATOR]);
}
+ void test_invalidOperatorAfterSuper_assignableExpression() {
+ _enableNullAwareOperators = true;
+ parse3('parseAssignableExpression', <Object>[false], 'super?.v',
+ [ParserErrorCode.INVALID_OPERATOR_FOR_SUPER]);
+ }
+
+ void test_invalidOperatorAfterSuper_primaryExpression() {
+ _enableNullAwareOperators = true;
+ parse4('parsePrimaryExpression', 'super?.v',
+ [ParserErrorCode.INVALID_OPERATOR_FOR_SUPER]);
+ }
+
void test_invalidOperatorForSuper() {
parse4("parseUnaryExpression", "++super",
[ParserErrorCode.INVALID_OPERATOR_FOR_SUPER]);

Powered by Google App Engine
This is Rietveld 408576698