| 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 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3271 /** | 3271 /** |
| 3272 * Return a list containing all of the change notices that are waiting to be | 3272 * Return a list containing all of the change notices that are waiting to be |
| 3273 * returned. If there are no notices, then return either `null` or an empty | 3273 * returned. If there are no notices, then return either `null` or an empty |
| 3274 * list, depending on the value of [nullIfEmpty]. | 3274 * list, depending on the value of [nullIfEmpty]. |
| 3275 */ | 3275 */ |
| 3276 List<ChangeNotice> _getChangeNotices(bool nullIfEmpty) { | 3276 List<ChangeNotice> _getChangeNotices(bool nullIfEmpty) { |
| 3277 if (_pendingNotices.isEmpty) { | 3277 if (_pendingNotices.isEmpty) { |
| 3278 if (nullIfEmpty) { | 3278 if (nullIfEmpty) { |
| 3279 return null; | 3279 return null; |
| 3280 } | 3280 } |
| 3281 return ChangeNoticeImpl.EMPTY_ARRAY; | 3281 return ChangeNoticeImpl.EMPTY_LIST; |
| 3282 } | 3282 } |
| 3283 List<ChangeNotice> notices = new List.from(_pendingNotices.values); | 3283 List<ChangeNotice> notices = new List.from(_pendingNotices.values); |
| 3284 _pendingNotices.clear(); | 3284 _pendingNotices.clear(); |
| 3285 return notices; | 3285 return notices; |
| 3286 } | 3286 } |
| 3287 | 3287 |
| 3288 /** | 3288 /** |
| 3289 * Given a source for a Dart file and the library that contains it, return the | 3289 * Given a source for a Dart file and the library that contains it, return the |
| 3290 * data represented by the given descriptor that is associated with that | 3290 * data represented by the given descriptor that is associated with that |
| 3291 * source. This method assumes that the data can be produced by generating | 3291 * source. This method assumes that the data can be produced by generating |
| (...skipping 3562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6854 Source get source; | 6854 Source get source; |
| 6855 } | 6855 } |
| 6856 | 6856 |
| 6857 /** | 6857 /** |
| 6858 * An implementation of a [ChangeNotice]. | 6858 * An implementation of a [ChangeNotice]. |
| 6859 */ | 6859 */ |
| 6860 class ChangeNoticeImpl implements ChangeNotice { | 6860 class ChangeNoticeImpl implements ChangeNotice { |
| 6861 /** | 6861 /** |
| 6862 * An empty list of change notices. | 6862 * An empty list of change notices. |
| 6863 */ | 6863 */ |
| 6864 static const List<ChangeNoticeImpl> EMPTY_ARRAY = const <ChangeNoticeImpl>[]; | 6864 static const List<ChangeNoticeImpl> EMPTY_LIST = const <ChangeNoticeImpl>[]; |
| 6865 | 6865 |
| 6866 /** | 6866 /** |
| 6867 * The source for which the result is being reported. | 6867 * The source for which the result is being reported. |
| 6868 */ | 6868 */ |
| 6869 final Source source; | 6869 final Source source; |
| 6870 | 6870 |
| 6871 /** | 6871 /** |
| 6872 * The parsed, but maybe not resolved Dart AST that changed as a result of | 6872 * The parsed, but maybe not resolved Dart AST that changed as a result of |
| 6873 * the analysis, or `null` if the AST was not changed. | 6873 * the analysis, or `null` if the AST was not changed. |
| 6874 */ | 6874 */ |
| (...skipping 4825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11700 visitElement(Element element) { | 11700 visitElement(Element element) { |
| 11701 if (element.id == _id) { | 11701 if (element.id == _id) { |
| 11702 result = element; | 11702 result = element; |
| 11703 throw new _ElementByIdFinderException(); | 11703 throw new _ElementByIdFinderException(); |
| 11704 } | 11704 } |
| 11705 super.visitElement(element); | 11705 super.visitElement(element); |
| 11706 } | 11706 } |
| 11707 } | 11707 } |
| 11708 | 11708 |
| 11709 class _ElementByIdFinderException {} | 11709 class _ElementByIdFinderException {} |
| OLD | NEW |