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

Side by Side Diff: dart/tests/compiler/dart2js/message_kind_helper.dart

Issue 841653004: Recover from read errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r42871 Created 5 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library dart2js.test.message_kind_helper; 5 library dart2js.test.message_kind_helper;
6 6
7 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8 import 'dart:async'; 8 import 'dart:async';
9 9
10 import 'package:compiler/src/dart2jslib.dart' show 10 import 'package:compiler/src/dart2jslib.dart' show
(...skipping 21 matching lines...) Expand all
32 MessageKind.FORMAL_DECLARED_CONST, 32 MessageKind.FORMAL_DECLARED_CONST,
33 MessageKind.FORMAL_DECLARED_STATIC, 33 MessageKind.FORMAL_DECLARED_STATIC,
34 MessageKind.FUNCTION_TYPE_FORMAL_WITH_DEFAULT, 34 MessageKind.FUNCTION_TYPE_FORMAL_WITH_DEFAULT,
35 MessageKind.HIDDEN_IMPLICIT_IMPORT, 35 MessageKind.HIDDEN_IMPLICIT_IMPORT,
36 MessageKind.HIDDEN_IMPORT, 36 MessageKind.HIDDEN_IMPORT,
37 MessageKind.INHERIT_GETTER_AND_METHOD, 37 MessageKind.INHERIT_GETTER_AND_METHOD,
38 MessageKind.UNIMPLEMENTED_METHOD, 38 MessageKind.UNIMPLEMENTED_METHOD,
39 MessageKind.UNIMPLEMENTED_METHOD_ONE, 39 MessageKind.UNIMPLEMENTED_METHOD_ONE,
40 MessageKind.VAR_FUNCTION_TYPE_PARAMETER, 40 MessageKind.VAR_FUNCTION_TYPE_PARAMETER,
41 MessageKind.VOID_NOT_ALLOWED, 41 MessageKind.VOID_NOT_ALLOWED,
42
43 MessageKind.INVALID_STARRED_KEYWORD, // TODO(ahe): Have CL to fix this.
44 MessageKind.INVALID_SYNC_MODIFIER, // TODO(ahe): Have CL to fix this.
45 MessageKind.NATIVE_NOT_SUPPORTED, // TODO(ahe): Have CL to fix this.
46 MessageKind.UNMATCHED_TOKEN, // TODO(ahe): Have CL to fix this.
47 MessageKind.UNTERMINATED_STRING, // TODO(ahe): Have CL to fix this.
42 ]); 48 ]);
43 49
44 /// Most messages can be tested without causing a fatal error. Add an exception 50 /// Most messages can be tested without causing a fatal error. Add an exception
45 /// here if a fatal error is unavoidable and leads to pending classes. 51 /// here if a fatal error is unavoidable and leads to pending classes.
46 /// Try to avoid adding exceptions here; a fatal error causes the compiler to 52 /// Try to avoid adding exceptions here; a fatal error causes the compiler to
47 /// stop before analyzing all input, and it isn't safe to reuse it. 53 /// stop before analyzing all input, and it isn't safe to reuse it.
48 final Set<MessageKind> kindsWithPendingClasses = new Set<MessageKind>.from([ 54 final Set<MessageKind> kindsWithPendingClasses = new Set<MessageKind>.from([
49 // If you add something here, please file a *new* bug report. 55 // If you add something here, please file a *new* bug report.
50 ]); 56 ]);
51 57
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 Expect.isTrue(!pendingStuff || kindsWithPendingClasses.contains(kind)); 133 Expect.isTrue(!pendingStuff || kindsWithPendingClasses.contains(kind));
128 134
129 if (!pendingStuff) { 135 if (!pendingStuff) {
130 // If there is pending stuff, or the compiler was cancelled, we 136 // If there is pending stuff, or the compiler was cancelled, we
131 // shouldn't reuse the compiler. 137 // shouldn't reuse the compiler.
132 cachedCompiler = compiler; 138 cachedCompiler = compiler;
133 } 139 }
134 }); 140 });
135 }).then((_) => cachedCompiler); 141 }).then((_) => cachedCompiler);
136 } 142 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/import_test.dart ('k') | dart/tests/compiler/dart2js/missing_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698