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

Unified Diff: dart/frog/leg/resolver.dart

Issue 9539009: Generate code that throws an exception on unimplemented features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/frog/leg/scanner/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/resolver.dart
diff --git a/dart/frog/leg/resolver.dart b/dart/frog/leg/resolver.dart
index d2b10ed5689b46c0c1e3dc0c4956c9695b209ec1..81807b501d30a56fc1c61ab8a2df56852f1f4da7 100644
--- a/dart/frog/leg/resolver.dart
+++ b/dart/frog/leg/resolver.dart
@@ -1125,7 +1125,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
}
visitLiteralMap(LiteralMap node) {
- unimplemented(node, 'map');
+ warning(node, MessageKind.GENERIC, ['map literals are not implemented']);
}
visitLiteralMapEntry(LiteralMapEntry node) {
@@ -1137,7 +1137,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
}
visitSwitchStatement(SwitchStatement node) {
- unimplemented(node, 'switch');
+ warning(node, MessageKind.GENERIC, ['switch statement is not implemented']);
}
visitTryStatement(TryStatement node) {
« no previous file with comments | « no previous file | dart/frog/leg/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698