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

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

Issue 689383005: Fix for issue 20796 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed missed case Created 6 years, 1 month 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/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 62c6c6a8778717f95eb01354490f24e5d46a6d74..c6826b6c75aba9bb2d5c3e34f7c81a47268801f8 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -2473,6 +2473,22 @@ class B = Object with A {}''', [ParserErrorCode.EXPECTED_TOKEN]);
expect(vars[0].name.name, "v");
}
+ void test_incomplete_constructorInitializers_empty() {
+ ParserTestCase.parse3(
+ "parseClassMember",
+ ["C"],
+ "C() : {}",
+ [ParserErrorCode.MISSING_INITIALIZER]);
+ }
+
+ void test_incomplete_constructorInitializers_variable() {
+ ParserTestCase.parse3(
+ "parseClassMember",
+ ["C"],
+ "C() : x {}",
+ [ParserErrorCode.MISSING_ASSIGNMENT_IN_INITIALIZER]);
+ }
+
void test_incomplete_topLevelVariable() {
CompilationUnit unit = ParserTestCase.parseCompilationUnit("String", [ParserErrorCode.EXPECTED_EXECUTABLE]);
NodeList<CompilationUnitMember> declarations = unit.declarations;
« no previous file with comments | « pkg/analyzer/lib/src/generated/parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698