| 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 593892623ca06f2cb7509cc94450c71508a2fb9a..8d5bc82c5bc39fe1ff5f66b4dac979a8a77752b2 100644
|
| --- a/pkg/analyzer/test/generated/parser_test.dart
|
| +++ b/pkg/analyzer/test/generated/parser_test.dart
|
| @@ -3269,6 +3269,16 @@ class B = Object with A {}''', [ParserErrorCode.EXPECTED_TOKEN]);
|
| parseExpression("m(f() => 0);", [ParserErrorCode.EXPECTED_TOKEN]);
|
| }
|
|
|
| + void test_importDirectivePartial() {
|
| + CompilationUnit unit = ParserTestCase.parseCompilationUnit(
|
| + "import 'b.dart' d as b;",
|
| + [ParserErrorCode.UNEXPECTED_TOKEN]);
|
| + ImportDirective importDirective = unit.childEntities.first;
|
| + expect(importDirective.asKeyword, isNotNull);
|
| + expect(unit.directives, hasLength(1));
|
| + expect(unit.declarations, hasLength(0));
|
| + }
|
| +
|
| void test_incomplete_conditionalExpression() {
|
| parseExpression("x ? 0", [
|
| ParserErrorCode.EXPECTED_TOKEN,
|
|
|