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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart

Issue 10872048: Convert getter and catch syntax in tests; fix resulting bugs (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
Index: compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart (revision 11229)
+++ compiler/javatests/com/google/dart/compiler/parser/CatchFinally.dart (working copy)
@@ -15,7 +15,7 @@
static testRethrow() {
try {
throw new Foo();
- } catch(var e, var st) {
+ } catch(e, st) {
throw;
}
}
@@ -24,7 +24,7 @@
var exception;
try {
throw new Foo();
- } catch(var e, var st) {
+ } catch(e, st) {
exception = e;
}
}
@@ -42,7 +42,7 @@
var exception;
try {
throw new Foo();
- } catch(var e, var st) {
+ } catch(e, st) {
exception = e;
} finally {
exception = null;
@@ -53,9 +53,9 @@
var exception;
try {
throw new Foo();
- } catch(Foo e, var st) {
+ } on Foo catch(e, st) {
exception = e;
- } catch(Bar e) {
+ } on Bar catch(e) {
exception = e;
} finally {
exception = null;
@@ -66,52 +66,18 @@
var exception;
try {
throw new Foo();
- } catch (final e) {
+ } catch (e) {
exception = e;
- } catch (var e) {
+ } on Map catch (e) {
exception = e;
- } catch (Map<int, double> e) {
+ } on int catch (e) {
exception = e;
- } catch (final Map<int, double> e) {
+ } catch (e, st) {
exception = e;
- } catch (int e) {
+ } on Map catch (e, st) {
exception = e;
- } catch (final int e) {
+ } on int catch (e, st) {
exception = e;
- } catch (final e, final st) {
- exception = e;
- } catch (var e, final st) {
- exception = e;
- } catch (Map<int, double> e, final st) {
- exception = e;
- } catch (int e, final st) {
- exception = e;
- } catch (int e, final int st) {
- exception = e;
- } catch (final e, var st) {
- exception = e;
- } catch (var e, var st) {
- exception = e;
- } catch (Map<int, double> e, var st) {
- exception = e;
- } catch (int e, var st) {
- exception = e;
- } catch (final e, Map<int, double> st) {
- exception = e;
- } catch (var e, Map<int, double> st) {
- exception = e;
- } catch (Map<int, double> e, Map<int, double> st) {
- exception = e;
- } catch (int e, Map<int, double> st) {
- exception = e;
- } catch (final e, int st) {
- exception = e;
- } catch (var e, int st) {
- exception = e;
- } catch (Map<int, double> e, int st) {
- exception = e;
- } catch (int e, int st) {
- exception = e;
} finally {
exception = e;
}

Powered by Google App Engine
This is Rietveld 408576698