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

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

Issue 907483004: Handle exception and clean-up code (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
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 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 if (element == null) { 1970 if (element == null) {
1971 return null; 1971 return null;
1972 } 1972 }
1973 element = element.getChild(components[i]); 1973 element = element.getChild(components[i]);
1974 } 1974 }
1975 return element; 1975 return element;
1976 } 1976 }
1977 if (AnalysisEngine.isHtmlFileName(sourceName)) { 1977 if (AnalysisEngine.isHtmlFileName(sourceName)) {
1978 return computeHtmlElement(source); 1978 return computeHtmlElement(source);
1979 } 1979 }
1980 } on AnalysisException catch (exception) { 1980 } catch (exception) {
1981 // If the location cannot be decoded for some reason then the underlying
1982 // cause should have been logged already and we can fall though to return
1983 // null.
1981 } 1984 }
1982 return null; 1985 return null;
1983 } 1986 }
1984 1987
1985 @override 1988 @override
1986 AnalysisErrorInfo getErrors(Source source) { 1989 AnalysisErrorInfo getErrors(Source source) {
1987 SourceEntry sourceEntry = getReadableSourceEntryOrNull(source); 1990 SourceEntry sourceEntry = getReadableSourceEntryOrNull(source);
1988 if (sourceEntry is DartEntry) { 1991 if (sourceEntry is DartEntry) {
1989 DartEntry dartEntry = sourceEntry; 1992 DartEntry dartEntry = sourceEntry;
1990 return new AnalysisErrorInfoImpl( 1993 return new AnalysisErrorInfoImpl(
(...skipping 10377 matching lines...) Expand 10 before | Expand all | Expand 10 after
12368 if (element.id == _id) { 12371 if (element.id == _id) {
12369 result = element; 12372 result = element;
12370 throw new _ElementByIdFinderException(); 12373 throw new _ElementByIdFinderException();
12371 } 12374 }
12372 super.visitElement(element); 12375 super.visitElement(element);
12373 } 12376 }
12374 } 12377 }
12375 12378
12376 class _ElementByIdFinderException { 12379 class _ElementByIdFinderException {
12377 } 12380 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/source/package_map_resolver.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698