Add 'sdkPath' to AnalysisContextCollection constructor..

Bug: https://github.com/pq/surveyor/issues/29
Change-Id: Ic6cc28e8e33be50b0cab35ad0f2e236bae04de0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194324
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Phil Quitslund <pquitslund@google.com>
This commit is contained in:
Konstantin Shcheglov
2021-04-08 02:07:04 +00:00
committed by commit-bot@chromium.org
parent b0a358c10b
commit 79c321eed4
2 changed files with 10 additions and 4 deletions
+1
View File
@@ -1,6 +1,7 @@
## 1.4.0-dev
* Deprecated `TypeProvider.nonSubtypableClasses`.
Use `TypeProvider.isNonSubtypableClass` instead.
* Added `sdkPath` to `AnalysisContextCollection` constructor.
## 1.3.0
* Added `Expression.inConstantContext` to API.
@@ -17,10 +17,15 @@ abstract class AnalysisContextCollection {
///
/// If a [resourceProvider] is given, then it will be used to access the file
/// system, otherwise the default resource provider will be used.
factory AnalysisContextCollection(
{required List<String> includedPaths,
List<String>? excludedPaths,
ResourceProvider? resourceProvider}) = AnalysisContextCollectionImpl;
///
/// If [sdkPath] is given, then Dart SDK at this path will be used, otherwise
/// the default Dart SDK will be used.
factory AnalysisContextCollection({
required List<String> includedPaths,
List<String>? excludedPaths,
ResourceProvider? resourceProvider,
String? sdkPath,
}) = AnalysisContextCollectionImpl;
/// Return all of the analysis contexts in this collection.
List<AnalysisContext> get contexts;