Chromium Code Reviews| 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 5004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5015 PoorMansIncrementalResolver resolver = new PoorMansIncrementalResolver( | 5015 PoorMansIncrementalResolver resolver = new PoorMansIncrementalResolver( |
| 5016 typeProvider, | 5016 typeProvider, |
| 5017 unitSource, | 5017 unitSource, |
| 5018 dartEntry, | 5018 dartEntry, |
| 5019 analysisOptions.incrementalApi); | 5019 analysisOptions.incrementalApi); |
| 5020 bool success = resolver.resolve(oldUnit, newCode); | 5020 bool success = resolver.resolve(oldUnit, newCode); |
| 5021 AnalysisEngine.instance.instrumentationService.logPerformance( | 5021 AnalysisEngine.instance.instrumentationService.logPerformance( |
| 5022 AnalysisPerformanceKind.INCREMENTAL, | 5022 AnalysisPerformanceKind.INCREMENTAL, |
| 5023 perfCounter, | 5023 perfCounter, |
| 5024 'success=$success,context_id=$_id,code_length=${newCode.length}'); | 5024 'success=$success,context_id=$_id,code_length=${newCode.length}'); |
| 5025 // if failed, reset compilation unit in notification, it is damaged now | |
| 5025 if (!success) { | 5026 if (!success) { |
| 5027 ChangeNoticeImpl notice = _getNotice(unitSource); | |
| 5028 notice.compilationUnit = null; | |
|
Brian Wilkerson
2015/01/12 22:37:02
Is the compilation unit in the cache marked as inv
| |
| 5026 return false; | 5029 return false; |
| 5027 } | 5030 } |
| 5028 // if validation, remember the result, but throw it away | 5031 // if validation, remember the result, but throw it away |
| 5029 if (analysisOptions.incrementalValidation) { | 5032 if (analysisOptions.incrementalValidation) { |
| 5030 incrementalResolutionValidation_lastUnitSource = oldUnit.element.source; | 5033 incrementalResolutionValidation_lastUnitSource = oldUnit.element.source; |
| 5031 incrementalResolutionValidation_lastLibrarySource = | 5034 incrementalResolutionValidation_lastLibrarySource = |
| 5032 oldUnit.element.library.source; | 5035 oldUnit.element.library.source; |
| 5033 incrementalResolutionValidation_lastUnit = oldUnit; | 5036 incrementalResolutionValidation_lastUnit = oldUnit; |
| 5034 return false; | 5037 return false; |
| 5035 } | 5038 } |
| (...skipping 7160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 12196 if (element.id == _id) { | 12199 if (element.id == _id) { |
| 12197 result = element; | 12200 result = element; |
| 12198 throw new _ElementByIdFinderException(); | 12201 throw new _ElementByIdFinderException(); |
| 12199 } | 12202 } |
| 12200 super.visitElement(element); | 12203 super.visitElement(element); |
| 12201 } | 12204 } |
| 12202 } | 12205 } |
| 12203 | 12206 |
| 12204 class _ElementByIdFinderException { | 12207 class _ElementByIdFinderException { |
| 12205 } | 12208 } |
| OLD | NEW |