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

Side by Side Diff: pkg/analyzer/test/generated/parser_fasta_test.dart

Issue 2732023002: Fix test for parsing 'await'. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:analyzer/dart/ast/ast.dart'; 5 import 'package:analyzer/dart/ast/ast.dart';
6 import 'package:analyzer/dart/ast/token.dart' as analyzer; 6 import 'package:analyzer/dart/ast/token.dart' as analyzer;
7 import 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/error/error.dart'; 8 import 'package:analyzer/error/error.dart';
9 import 'package:analyzer/src/generated/parser.dart' as analyzer; 9 import 'package:analyzer/src/generated/parser.dart' as analyzer;
10 import 'package:analyzer/src/generated/utilities_dart.dart'; 10 import 'package:analyzer/src/generated/utilities_dart.dart';
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 @override 345 @override
346 @failingTest 346 @failingTest
347 void 347 void
348 test_parseAssignableExpression_identifier_args_dot_typeParameterComments() { 348 test_parseAssignableExpression_identifier_args_dot_typeParameterComments() {
349 super 349 super
350 .test_parseAssignableExpression_identifier_args_dot_typeParameterComment s(); 350 .test_parseAssignableExpression_identifier_args_dot_typeParameterComment s();
351 } 351 }
352 352
353 @override 353 @override
354 @failingTest 354 @failingTest
355 void test_parseAwaitExpression() {
356 super.test_parseAwaitExpression();
357 }
358
359 @override
360 @failingTest
361 void test_parseCascadeSection_ia_typeArgumentComments() { 355 void test_parseCascadeSection_ia_typeArgumentComments() {
362 super.test_parseCascadeSection_ia_typeArgumentComments(); 356 super.test_parseCascadeSection_ia_typeArgumentComments();
363 } 357 }
364 358
365 @override 359 @override
366 @failingTest 360 @failingTest
367 void test_parseCascadeSection_ia_typeArguments() { 361 void test_parseCascadeSection_ia_typeArguments() {
368 super.test_parseCascadeSection_ia_typeArguments(); 362 super.test_parseCascadeSection_ia_typeArguments();
369 } 363 }
370 364
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 if (code.isEmpty) { 734 if (code.isEmpty) {
741 return _parseExpression('foo'); 735 return _parseExpression('foo');
742 } 736 }
743 return _parseExpression('(foo)$code'); 737 return _parseExpression('(foo)$code');
744 } 738 }
745 return _parseExpression('foo$code'); 739 return _parseExpression('foo$code');
746 } 740 }
747 741
748 @override 742 @override
749 AwaitExpression parseAwaitExpression(String code) { 743 AwaitExpression parseAwaitExpression(String code) {
750 return _parseExpression(code); 744 var function = _parseExpression('() async => $code') as FunctionExpression;
745 return (function.body as ExpressionFunctionBody).expression;
751 } 746 }
752 747
753 @override 748 @override
754 Expression parseBitwiseAndExpression(String code) { 749 Expression parseBitwiseAndExpression(String code) {
755 return _parseExpression(code); 750 return _parseExpression(code);
756 } 751 }
757 752
758 @override 753 @override
759 Expression parseBitwiseOrExpression(String code) { 754 Expression parseBitwiseOrExpression(String code) {
760 return _parseExpression(code); 755 return _parseExpression(code);
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { 1507 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() {
1513 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); 1508 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType();
1514 } 1509 }
1515 1510
1516 @override 1511 @override
1517 @failingTest 1512 @failingTest
1518 void test_parseTypeAlias_genericFunction_voidReturnType() { 1513 void test_parseTypeAlias_genericFunction_voidReturnType() {
1519 super.test_parseTypeAlias_genericFunction_voidReturnType(); 1514 super.test_parseTypeAlias_genericFunction_voidReturnType();
1520 } 1515 }
1521 } 1516 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698