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

Side by Side Diff: test/codegen/try_catch.dart

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. Created 4 years, 7 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 | « test/codegen/temps.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
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.
4
5 foo() {
6 try {
7 throw "hi there";
8 } on String catch (e, t) {
9 } catch (e, t) {
10 rethrow;
11 }
12 }
13
14 bar() {
15 try {
16 throw "hi there";
17 } catch (e, t) {
18 } on String catch (e, t) {
19 // unreachable
20 rethrow;
21 }
22 }
23
24 baz() {
25 try {
26 throw "finally only";
27 } finally {
28 return true;
29 }
30 }
31
32 qux() {
33 try {
34 throw "on only";
35 } on String catch (e, t) {
36 // unreachable
37 rethrow;
38 }
39 }
40
41 wub() {
42 try {
43 throw "on without exception parameter";
44 } on String {
45 }
46 }
47
48 main() {
49 foo();
50 bar();
51 baz();
52 qux();
53 wub();
54 }
OLDNEW
« no previous file with comments | « test/codegen/temps.dart ('k') | test/codegen_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698