| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library analyzer.src.context.context; | 5 library analyzer.src.context.context; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 478 |
| 479 @override | 479 @override |
| 480 TypeSystem get typeSystem { | 480 TypeSystem get typeSystem { |
| 481 if (_typeSystem == null) { | 481 if (_typeSystem == null) { |
| 482 _typeSystem = TypeSystem.create(this); | 482 _typeSystem = TypeSystem.create(this); |
| 483 } | 483 } |
| 484 return _typeSystem; | 484 return _typeSystem; |
| 485 } | 485 } |
| 486 | 486 |
| 487 @override | 487 @override |
| 488 bool aboutToComputeResult(CacheEntry entry, ResultDescriptor result) { |
| 489 return false; |
| 490 } |
| 491 |
| 492 @override |
| 488 void addListener(AnalysisListener listener) { | 493 void addListener(AnalysisListener listener) { |
| 489 if (!_listeners.contains(listener)) { | 494 if (!_listeners.contains(listener)) { |
| 490 _listeners.add(listener); | 495 _listeners.add(listener); |
| 491 } | 496 } |
| 492 } | 497 } |
| 493 | 498 |
| 494 @override | 499 @override |
| 495 void applyAnalysisDelta(AnalysisDelta delta) { | 500 void applyAnalysisDelta(AnalysisDelta delta) { |
| 496 ChangeSet changeSet = new ChangeSet(); | 501 ChangeSet changeSet = new ChangeSet(); |
| 497 delta.analysisLevels.forEach((Source source, AnalysisLevel level) { | 502 delta.analysisLevels.forEach((Source source, AnalysisLevel level) { |
| (...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 } | 2009 } |
| 2005 DartSdk sdk = factory.dartSdk; | 2010 DartSdk sdk = factory.dartSdk; |
| 2006 if (sdk == null) { | 2011 if (sdk == null) { |
| 2007 throw new IllegalArgumentException( | 2012 throw new IllegalArgumentException( |
| 2008 "The source factory for an SDK analysis context must have a DartUriRes
olver"); | 2013 "The source factory for an SDK analysis context must have a DartUriRes
olver"); |
| 2009 } | 2014 } |
| 2010 return new AnalysisCache( | 2015 return new AnalysisCache( |
| 2011 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); | 2016 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); |
| 2012 } | 2017 } |
| 2013 } | 2018 } |
| OLD | NEW |