| 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:collection'; | 10 import 'dart:collection'; |
| (...skipping 5880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5891 */ | 5891 */ |
| 5892 HashMap<Source, AnalysisLevel> _analysisMap = new HashMap<Source, AnalysisLeve
l>(); | 5892 HashMap<Source, AnalysisLevel> _analysisMap = new HashMap<Source, AnalysisLeve
l>(); |
| 5893 | 5893 |
| 5894 /** | 5894 /** |
| 5895 * Return a collection of the sources that have been added. This is equivalent
to calling | 5895 * Return a collection of the sources that have been added. This is equivalent
to calling |
| 5896 * [getAnalysisLevels] and collecting all sources that do not have an analysis
level of | 5896 * [getAnalysisLevels] and collecting all sources that do not have an analysis
level of |
| 5897 * [AnalysisLevel.NONE]. | 5897 * [AnalysisLevel.NONE]. |
| 5898 * | 5898 * |
| 5899 * @return a collection of the sources | 5899 * @return a collection of the sources |
| 5900 */ | 5900 */ |
| 5901 Iterable<Source> get addedSources { | 5901 List<Source> get addedSources { |
| 5902 List<Source> result = new List<Source>(); | 5902 List<Source> result = new List<Source>(); |
| 5903 for (MapEntry<Source, AnalysisLevel> entry in getMapEntrySet(_analysisMap))
{ | 5903 _analysisMap.forEach((Source source, AnalysisLevel level) { |
| 5904 if (entry.getValue() != AnalysisLevel.NONE) { | 5904 if (level != AnalysisLevel.NONE) { |
| 5905 result.add(entry.getKey()); | 5905 result.add(source); |
| 5906 } | 5906 } |
| 5907 } | 5907 }); |
| 5908 return result; | 5908 return result; |
| 5909 } | 5909 } |
| 5910 | 5910 |
| 5911 /** | 5911 /** |
| 5912 * Return a mapping of sources to the level of analysis that should be perform
ed. | 5912 * Return a mapping of sources to the level of analysis that should be perform
ed. |
| 5913 * | 5913 * |
| 5914 * @return the analysis map | 5914 * @return the analysis map |
| 5915 */ | 5915 */ |
| 5916 Map<Source, AnalysisLevel> get analysisLevels => _analysisMap; | 5916 Map<Source, AnalysisLevel> get analysisLevels => _analysisMap; |
| 5917 | 5917 |
| (...skipping 9236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15154 _index++; | 15154 _index++; |
| 15155 if (_index >= _manager._workQueues[_queueIndex].length) { | 15155 if (_index >= _manager._workQueues[_queueIndex].length) { |
| 15156 _index = 0; | 15156 _index = 0; |
| 15157 _queueIndex++; | 15157 _queueIndex++; |
| 15158 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { | 15158 while (_queueIndex < _manager._workQueues.length && _manager._workQueues[_
queueIndex].isEmpty) { |
| 15159 _queueIndex++; | 15159 _queueIndex++; |
| 15160 } | 15160 } |
| 15161 } | 15161 } |
| 15162 } | 15162 } |
| 15163 } | 15163 } |
| OLD | NEW |