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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 952013003: Fix exception handling (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import "dart:math" as math; 10 import "dart:math" as math;
(...skipping 6820 matching lines...) Expand 10 before | Expand all | Expand 10 after
6831 /** 6831 /**
6832 * Perform this analysis task, ensuring that all exceptions are wrapped in an 6832 * Perform this analysis task, ensuring that all exceptions are wrapped in an
6833 * [AnalysisException]. 6833 * [AnalysisException].
6834 * 6834 *
6835 * @throws AnalysisException if any exception occurs while performing the task 6835 * @throws AnalysisException if any exception occurs while performing the task
6836 */ 6836 */
6837 void _safelyPerform() { 6837 void _safelyPerform() {
6838 try { 6838 try {
6839 internalPerform(); 6839 internalPerform();
6840 } on AnalysisException catch (exception) { 6840 } on AnalysisException catch (exception) {
6841 throw exception; 6841 rethrow;
6842 } catch (exception, stackTrace) { 6842 } catch (exception, stackTrace) {
6843 throw new AnalysisException( 6843 throw new AnalysisException(
6844 exception.toString(), 6844 exception.toString(),
6845 new CaughtException(exception, stackTrace)); 6845 new CaughtException(exception, stackTrace));
6846 } 6846 }
6847 } 6847 }
6848 } 6848 }
6849 6849
6850 /** 6850 /**
6851 * An `AnalysisTaskVisitor` visits tasks. While tasks are not structured in any 6851 * An `AnalysisTaskVisitor` visits tasks. While tasks are not structured in any
(...skipping 5577 matching lines...) Expand 10 before | Expand all | Expand 10 after
12429 if (element.id == _id) { 12429 if (element.id == _id) {
12430 result = element; 12430 result = element;
12431 throw new _ElementByIdFinderException(); 12431 throw new _ElementByIdFinderException();
12432 } 12432 }
12433 super.visitElement(element); 12433 super.visitElement(element);
12434 } 12434 }
12435 } 12435 }
12436 12436
12437 class _ElementByIdFinderException { 12437 class _ElementByIdFinderException {
12438 } 12438 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698