| 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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 * The set of [AngularApplication] in this context. | 982 * The set of [AngularApplication] in this context. |
| 983 */ | 983 */ |
| 984 Set<AngularApplication> _angularApplications = new Set(); | 984 Set<AngularApplication> _angularApplications = new Set(); |
| 985 | 985 |
| 986 /** | 986 /** |
| 987 * The controller for sending [SourcesChangedEvent]s. | 987 * The controller for sending [SourcesChangedEvent]s. |
| 988 */ | 988 */ |
| 989 StreamController<SourcesChangedEvent> _onSourcesChangedController; | 989 StreamController<SourcesChangedEvent> _onSourcesChangedController; |
| 990 | 990 |
| 991 /** | 991 /** |
| 992 * The stream that is notified when sources have been added or removed, | |
| 993 * or the source's content has changed. | |
| 994 */ | |
| 995 Stream<SourcesChangedEvent> _onSourcesChanged; | |
| 996 | |
| 997 /** | |
| 998 * The listeners that are to be notified when various analysis results are pro
duced in this | 992 * The listeners that are to be notified when various analysis results are pro
duced in this |
| 999 * context. | 993 * context. |
| 1000 */ | 994 */ |
| 1001 List<AnalysisListener> _listeners = new List<AnalysisListener>(); | 995 List<AnalysisListener> _listeners = new List<AnalysisListener>(); |
| 1002 | 996 |
| 1003 /** | 997 /** |
| 1004 * Initialize a newly created analysis context. | 998 * Initialize a newly created analysis context. |
| 1005 */ | 999 */ |
| 1006 AnalysisContextImpl() { | 1000 AnalysisContextImpl() { |
| 1007 _resultRecorder = new AnalysisContextImpl_AnalysisTaskResultRecorder(this); | 1001 _resultRecorder = new AnalysisContextImpl_AnalysisTaskResultRecorder(this); |
| 1008 _privatePartition = new UniversalCachePartition( | 1002 _privatePartition = new UniversalCachePartition( |
| 1009 this, | 1003 this, |
| 1010 AnalysisOptionsImpl.DEFAULT_CACHE_SIZE, | 1004 AnalysisOptionsImpl.DEFAULT_CACHE_SIZE, |
| 1011 new AnalysisContextImpl_ContextRetentionPolicy(this)); | 1005 new AnalysisContextImpl_ContextRetentionPolicy(this)); |
| 1012 _cache = createCacheFromSourceFactory(null); | 1006 _cache = createCacheFromSourceFactory(null); |
| 1013 _onSourcesChangedController = new StreamController<SourcesChangedEvent>(); | 1007 _onSourcesChangedController = |
| 1014 _onSourcesChanged = _onSourcesChangedController.stream.asBroadcastStream(); | 1008 new StreamController<SourcesChangedEvent>.broadcast(); |
| 1015 } | 1009 } |
| 1016 | 1010 |
| 1017 @override | 1011 @override |
| 1018 AnalysisOptions get analysisOptions => _options; | 1012 AnalysisOptions get analysisOptions => _options; |
| 1019 | 1013 |
| 1020 @override | 1014 @override |
| 1021 void set analysisOptions(AnalysisOptions options) { | 1015 void set analysisOptions(AnalysisOptions options) { |
| 1022 bool needsRecompute = | 1016 bool needsRecompute = |
| 1023 this._options.analyzeAngular != options.analyzeAngular || | 1017 this._options.analyzeAngular != options.analyzeAngular || |
| 1024 this._options.analyzeFunctionBodies != options.analyzeFunctionBodies || | 1018 this._options.analyzeFunctionBodies != options.analyzeFunctionBodies || |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 } | 1226 } |
| 1233 if (hasBlockedTask) { | 1227 if (hasBlockedTask) { |
| 1234 // All of the analysis work is blocked waiting for an asynchronous task | 1228 // All of the analysis work is blocked waiting for an asynchronous task |
| 1235 // to complete. | 1229 // to complete. |
| 1236 return WaitForAsyncTask.instance; | 1230 return WaitForAsyncTask.instance; |
| 1237 } | 1231 } |
| 1238 return null; | 1232 return null; |
| 1239 } | 1233 } |
| 1240 | 1234 |
| 1241 @override | 1235 @override |
| 1242 Stream<SourcesChangedEvent> get onSourcesChanged => _onSourcesChanged; | 1236 Stream<SourcesChangedEvent> get onSourcesChanged => |
| 1237 _onSourcesChangedController.stream; |
| 1243 | 1238 |
| 1244 @override | 1239 @override |
| 1245 List<Source> get prioritySources => _priorityOrder; | 1240 List<Source> get prioritySources => _priorityOrder; |
| 1246 | 1241 |
| 1247 @override | 1242 @override |
| 1248 List<Source> get refactoringUnsafeSources { | 1243 List<Source> get refactoringUnsafeSources { |
| 1249 List<Source> sources = new List<Source>(); | 1244 List<Source> sources = new List<Source>(); |
| 1250 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); | 1245 MapIterator<Source, SourceEntry> iterator = _cache.iterator(); |
| 1251 while (iterator.moveNext()) { | 1246 while (iterator.moveNext()) { |
| 1252 SourceEntry sourceEntry = iterator.value; | 1247 SourceEntry sourceEntry = iterator.value; |
| (...skipping 13580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14833 | 14828 |
| 14834 @override | 14829 @override |
| 14835 Object visitPolymerTagDartElement(PolymerTagDartElement element) { | 14830 Object visitPolymerTagDartElement(PolymerTagDartElement element) { |
| 14836 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { | 14831 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { |
| 14837 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( | 14832 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( |
| 14838 element as PolymerTagDartElementImpl); | 14833 element as PolymerTagDartElementImpl); |
| 14839 } | 14834 } |
| 14840 return null; | 14835 return null; |
| 14841 } | 14836 } |
| 14842 } | 14837 } |
| OLD | NEW |