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

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

Issue 2707163002: Add preliminary support for methods to AstBuilder. (Closed)
Patch Set: Created 3 years, 10 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
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/element/element.dart'; 6 import 'package:analyzer/dart/element/element.dart';
7 import 'package:analyzer/error/error.dart'; 7 import 'package:analyzer/error/error.dart';
8 import 'package:analyzer/src/generated/parser.dart' as analyzer; 8 import 'package:analyzer/src/generated/parser.dart' as analyzer;
9 import 'package:front_end/src/fasta/analyzer/ast_builder.dart'; 9 import 'package:front_end/src/fasta/analyzer/ast_builder.dart';
10 import 'package:front_end/src/fasta/analyzer/element_store.dart'; 10 import 'package:front_end/src/fasta/analyzer/element_store.dart';
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 } 464 }
465 465
466 /** 466 /**
467 * Tests of the fasta parser based on [TopLevelParserTestMixin]. 467 * Tests of the fasta parser based on [TopLevelParserTestMixin].
468 */ 468 */
469 @reflectiveTest 469 @reflectiveTest
470 class TopLevelParserTest_Fasta extends FastaParserTestCase 470 class TopLevelParserTest_Fasta extends FastaParserTestCase
471 with TopLevelParserTestMixin { 471 with TopLevelParserTestMixin {
472 @override 472 @override
473 @failingTest 473 @failingTest
474 void
475 test_function_literal_allowed_in_ArgumentList_in_ConstructorFieldInitializ er() {
476 // TODO(paulberry): Unhandled event: Method
477 super
478 .test_function_literal_allowed_in_ArgumentList_in_ConstructorFieldInitia lizer();
479 }
480
481 @override
482 @failingTest
483 void
484 test_function_literal_allowed_in_IndexExpression_in_ConstructorFieldInitia lizer() {
485 // TODO(paulberry): Unhandled event: Method
486 super
487 .test_function_literal_allowed_in_IndexExpression_in_ConstructorFieldIni tializer();
488 }
489
490 @override
491 @failingTest
492 void
493 test_function_literal_allowed_in_ListLiteral_in_ConstructorFieldInitialize r() {
494 // TODO(paulberry): Unhandled event: Method
495 super
496 .test_function_literal_allowed_in_ListLiteral_in_ConstructorFieldInitial izer();
497 }
498
499 @override
500 @failingTest
501 void
502 test_function_literal_allowed_in_MapLiteral_in_ConstructorFieldInitializer () {
503 // TODO(paulberry): Unhandled event: Method
504 super
505 .test_function_literal_allowed_in_MapLiteral_in_ConstructorFieldInitiali zer();
506 }
507
508 @override
509 @failingTest
510 void
511 test_function_literal_allowed_in_ParenthesizedExpression_in_ConstructorFie ldInitializer() {
512 // TODO(paulberry): Unhandled event: Method
513 super
514 .test_function_literal_allowed_in_ParenthesizedExpression_in_Constructor FieldInitializer();
515 }
516
517 @override
518 @failingTest
519 void
520 test_function_literal_allowed_in_StringInterpolation_in_ConstructorFieldIn itializer() {
521 // TODO(paulberry): Unhandled event: Method
522 super
523 .test_function_literal_allowed_in_StringInterpolation_in_ConstructorFiel dInitializer();
524 }
525
526 @override
527 @failingTest
528 void test_parseClassDeclaration_abstract() { 474 void test_parseClassDeclaration_abstract() {
529 // TODO(paulberry): Implement AstBuilder.handleModifier 475 // TODO(paulberry): Implement AstBuilder.handleModifier
530 super.test_parseClassDeclaration_abstract(); 476 super.test_parseClassDeclaration_abstract();
531 } 477 }
532 478
533 @override 479 @override
534 @failingTest 480 @failingTest
535 void test_parseClassDeclaration_native() { 481 void test_parseClassDeclaration_native() {
536 // TODO(paulberry): TODO(paulberry,ahe): Fasta parser doesn't appear to supp ort "native" syntax yet. 482 // TODO(paulberry): TODO(paulberry,ahe): Fasta parser doesn't appear to supp ort "native" syntax yet.
537 super.test_parseClassDeclaration_native(); 483 super.test_parseClassDeclaration_native();
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() { 920 void test_parseTypeAlias_genericFunction_typeParameters_voidReturnType() {
975 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType(); 921 super.test_parseTypeAlias_genericFunction_typeParameters_voidReturnType();
976 } 922 }
977 923
978 @override 924 @override
979 @failingTest 925 @failingTest
980 void test_parseTypeAlias_genericFunction_voidReturnType() { 926 void test_parseTypeAlias_genericFunction_voidReturnType() {
981 super.test_parseTypeAlias_genericFunction_voidReturnType(); 927 super.test_parseTypeAlias_genericFunction_voidReturnType();
982 } 928 }
983 } 929 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698