| 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 2221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2232 } | 2232 } |
| 2233 CompilationUnit fullUnit = getResolvedCompilationUnit2( | 2233 CompilationUnit fullUnit = getResolvedCompilationUnit2( |
| 2234 incrementalResolutionValidation_lastUnitSource, | 2234 incrementalResolutionValidation_lastUnitSource, |
| 2235 incrementalResolutionValidation_lastLibrarySource); | 2235 incrementalResolutionValidation_lastLibrarySource); |
| 2236 if (fullUnit != null) { | 2236 if (fullUnit != null) { |
| 2237 try { | 2237 try { |
| 2238 assertSameResolution(incrementalResolutionValidation_lastUnit, fullUnit)
; | 2238 assertSameResolution(incrementalResolutionValidation_lastUnit, fullUnit)
; |
| 2239 } on IncrementalResolutionMismatch catch (mismatch, stack) { | 2239 } on IncrementalResolutionMismatch catch (mismatch, stack) { |
| 2240 String failure = mismatch.message; | 2240 String failure = mismatch.message; |
| 2241 String message = 'Incremental resolution mismatch:\n$failure\nat\n$stack
'; | 2241 String message = 'Incremental resolution mismatch:\n$failure\nat\n$stack
'; |
| 2242 AnalysisEngine.instance.instrumentationService.logError(message); | 2242 AnalysisEngine.instance.logger.logError(message); |
| 2243 } | 2243 } |
| 2244 } | 2244 } |
| 2245 incrementalResolutionValidation_lastUnitSource = null; | 2245 incrementalResolutionValidation_lastUnitSource = null; |
| 2246 incrementalResolutionValidation_lastLibrarySource = null; | 2246 incrementalResolutionValidation_lastLibrarySource = null; |
| 2247 incrementalResolutionValidation_lastUnit = null; | 2247 incrementalResolutionValidation_lastUnit = null; |
| 2248 } | 2248 } |
| 2249 | 2249 |
| 2250 @override | 2250 @override |
| 2251 void recordLibraryElements(Map<Source, LibraryElement> elementMap) { | 2251 void recordLibraryElements(Map<Source, LibraryElement> elementMap) { |
| 2252 Source htmlSource = _sourceFactory.forUri(DartSdk.DART_HTML); | 2252 Source htmlSource = _sourceFactory.forUri(DartSdk.DART_HTML); |
| (...skipping 9908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12161 if (element.id == _id) { | 12161 if (element.id == _id) { |
| 12162 result = element; | 12162 result = element; |
| 12163 throw new _ElementByIdFinderException(); | 12163 throw new _ElementByIdFinderException(); |
| 12164 } | 12164 } |
| 12165 super.visitElement(element); | 12165 super.visitElement(element); |
| 12166 } | 12166 } |
| 12167 } | 12167 } |
| 12168 | 12168 |
| 12169 class _ElementByIdFinderException { | 12169 class _ElementByIdFinderException { |
| 12170 } | 12170 } |
| OLD | NEW |