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

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

Issue 1030063004: more care around generated names, fixes #60 #82 and #97 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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
« lib/runtime/dart/_internal.js ('K') | « test/codegen/names.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 main() { 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() {
2 try { 6 try {
3 throw "hi there"; 7 throw "hi there";
4 } on String catch (e, t) { 8 } on String catch (e, t) {
5 } catch (e, t) { 9 } catch (e, t) {
6 rethrow; 10 rethrow;
7 } 11 }
8 } 12 }
9 13 bar() {
14 try {
15 throw "hi there";
16 } catch (e, t) {
17 } on String catch (e, t) {
18 // unreachable
19 rethrow;
20 }
21 }
22 main() {
23 foo();
24 bar();
25 }
OLDNEW
« lib/runtime/dart/_internal.js ('K') | « test/codegen/names.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698