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

Side by Side Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2648213007: Revert "Use single InputPackagesResultProvider, without SdkSummaryResultProvider." (Closed)
Patch Set: Created 3 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 | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/dart/sdk/sdk.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:typed_data'; 7 import 'dart:typed_data';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/element/element.dart' show CompilationUnitElement; 10 import 'package:analyzer/dart/element/element.dart' show CompilationUnitElement;
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 new LibrarySpecificUnit(libraryFile.source, file.source), 750 new LibrarySpecificUnit(libraryFile.source, file.source),
751 COMPILATION_UNIT_ELEMENT); 751 COMPILATION_UNIT_ELEMENT);
752 } finally { 752 } finally {
753 analysisContext.dispose(); 753 analysisContext.dispose();
754 } 754 }
755 } 755 }
756 756
757 AnalysisContext _createAnalysisContext(_LibraryContext libraryContext) { 757 AnalysisContext _createAnalysisContext(_LibraryContext libraryContext) {
758 AnalysisContextImpl analysisContext = 758 AnalysisContextImpl analysisContext =
759 AnalysisEngine.instance.createAnalysisContext(); 759 AnalysisEngine.instance.createAnalysisContext();
760 analysisContext.useSdkCachePartition = false;
761 analysisContext.analysisOptions = _analysisOptions; 760 analysisContext.analysisOptions = _analysisOptions;
762 analysisContext.sourceFactory = _sourceFactory.clone(); 761 analysisContext.sourceFactory = _sourceFactory.clone();
763 analysisContext.contentCache = new _ContentCacheWrapper(_fsState); 762 analysisContext.contentCache = new _ContentCacheWrapper(_fsState);
764 analysisContext.resultProvider = 763 analysisContext.resultProvider =
765 new InputPackagesResultProvider(analysisContext, libraryContext.store); 764 new InputPackagesResultProvider(analysisContext, libraryContext.store);
766 return analysisContext; 765 return analysisContext;
767 } 766 }
768 767
769 /** 768 /**
770 * Return the context in which the [library] should be analyzed it. 769 * Return the context in which the [library] should be analyzed it.
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 libraryDeclarations.add(new TopLevelDeclarationInSource( 1689 libraryDeclarations.add(new TopLevelDeclarationInSource(
1691 file.source, declaration, isExported)); 1690 file.source, declaration, isExported));
1692 } 1691 }
1693 } 1692 }
1694 } 1693 }
1695 1694
1696 // We're not done yet. 1695 // We're not done yet.
1697 return false; 1696 return false;
1698 } 1697 }
1699 } 1698 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/dart/sdk/sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698