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

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

Issue 2938573002: Improve recovery from compile-time errors. (Closed)
Patch Set: Created 3 years, 6 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/front_end/lib/src/fasta/builder/library_builder.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/fasta/ast_builder.dart'; 9 import 'package:analyzer/src/fasta/ast_builder.dart';
10 import 'package:analyzer/src/fasta/element_store.dart'; 10 import 'package:analyzer/src/fasta/element_store.dart';
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 */ 765 */
766 class KernelLibraryBuilderProxy implements KernelLibraryBuilder { 766 class KernelLibraryBuilderProxy implements KernelLibraryBuilder {
767 @override 767 @override
768 final uri = Uri.parse('file:///test.dart'); 768 final uri = Uri.parse('file:///test.dart');
769 769
770 @override 770 @override
771 Uri get fileUri => uri; 771 Uri get fileUri => uri;
772 772
773 @override 773 @override
774 void addCompileTimeError(int charOffset, Object message, 774 void addCompileTimeError(int charOffset, Object message,
775 {Uri fileUri, bool silent: false}) { 775 {Uri fileUri, bool silent: false, bool wasHandled: false}) {
776 fail('$message'); 776 fail('$message');
777 } 777 }
778 778
779 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 779 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
780 } 780 }
781 781
782 /** 782 /**
783 * Proxy implementation of the analyzer parser, implemented in terms of the 783 * Proxy implementation of the analyzer parser, implemented in terms of the
784 * Fasta parser. 784 * Fasta parser.
785 * 785 *
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 } 996 }
997 997
998 @override 998 @override
999 @failingTest 999 @failingTest
1000 void test_parsePartOfDirective_uri() { 1000 void test_parsePartOfDirective_uri() {
1001 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by 1001 // TODO(paulberry,ahe): URIs in "part of" declarations are not supported by
1002 // Fasta. 1002 // Fasta.
1003 super.test_parsePartOfDirective_uri(); 1003 super.test_parsePartOfDirective_uri();
1004 } 1004 }
1005 } 1005 }
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/builder/library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698