Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: pkg/analyzer/lib/src/context/context.dart

Issue 1555073003: Replace ResultProvider with 'aboutToComputeResult'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698