| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |