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 3197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3208 } else { | 3208 } else { |
| 3209 SourceEntry sourceEntry = _cache.get(source); | 3209 SourceEntry sourceEntry = _cache.get(source); |
| 3210 if (sourceEntry != null) { | 3210 if (sourceEntry != null) { |
| 3211 sourceEntry.modificationTime = | 3211 sourceEntry.modificationTime = |
| 3212 _contentCache.getModificationStamp(source); | 3212 _contentCache.getModificationStamp(source); |
| 3213 } | 3213 } |
| 3214 } | 3214 } |
| 3215 } else if (originalContents != null) { | 3215 } else if (originalContents != null) { |
| 3216 _incrementalAnalysisCache = | 3216 _incrementalAnalysisCache = |
| 3217 IncrementalAnalysisCache.clear(_incrementalAnalysisCache, source); | 3217 IncrementalAnalysisCache.clear(_incrementalAnalysisCache, source); |
| 3218 _sourceChanged(source); | 3218 String newContents; |
| 3219 changed = true; | 3219 try { |
| 3220 newContents = getContents(source).data; | |
| 3221 if (newContents == originalContents) { | |
| 3222 SourceEntry sourceEntry = _cache.get(source); | |
| 3223 if (sourceEntry != null) { | |
|
Brian Wilkerson
2015/01/13 19:45:37
We should get the source entry before reading, bec
scheglov
2015/01/13 20:01:57
Done.
| |
| 3224 sourceEntry.modificationTime = getModificationStamp(source); | |
|
Brian Wilkerson
2015/01/13 19:45:37
We should cache the content in the entry, and we s
scheglov
2015/01/13 20:01:57
Done.
| |
| 3225 } | |
| 3226 } else { | |
| 3227 changed = true; | |
| 3228 } | |
| 3229 } catch (e) { | |
| 3230 changed = true; | |
| 3231 } | |
| 3232 if (changed) { | |
| 3233 _sourceChanged(source); | |
| 3234 } | |
| 3220 } | 3235 } |
| 3221 return changed; | 3236 return changed; |
| 3222 } | 3237 } |
| 3223 | 3238 |
| 3224 /** | 3239 /** |
| 3225 * Create a [GenerateDartErrorsTask] for the given source, marking the verific ation errors | 3240 * Create a [GenerateDartErrorsTask] for the given source, marking the verific ation errors |
| 3226 * as being in-process. The compilation unit and the library can be the same i f the compilation | 3241 * as being in-process. The compilation unit and the library can be the same i f the compilation |
| 3227 * unit is the defining compilation unit of the library. | 3242 * unit is the defining compilation unit of the library. |
| 3228 * | 3243 * |
| 3229 * @param unitSource the source for the compilation unit to be verified | 3244 * @param unitSource the source for the compilation unit to be verified |
| (...skipping 8972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 12202 if (element.id == _id) { | 12217 if (element.id == _id) { |
| 12203 result = element; | 12218 result = element; |
| 12204 throw new _ElementByIdFinderException(); | 12219 throw new _ElementByIdFinderException(); |
| 12205 } | 12220 } |
| 12206 super.visitElement(element); | 12221 super.visitElement(element); |
| 12207 } | 12222 } |
| 12208 } | 12223 } |
| 12209 | 12224 |
| 12210 class _ElementByIdFinderException { | 12225 class _ElementByIdFinderException { |
| 12211 } | 12226 } |
| OLD | NEW |