move away froma deprecated method (#11215)
This commit is contained in:
@@ -45,10 +45,7 @@ class AnalysisDriver {
|
||||
|
||||
DriverOptions options;
|
||||
|
||||
String get sdkDir {
|
||||
// ignore: deprecated_member_use
|
||||
return options.dartSdkPath ?? fs.path.absolute(cli_util.getSdkDir().path);
|
||||
}
|
||||
String get sdkDir => options.dartSdkPath ?? cli_util.getSdkPath();
|
||||
|
||||
List<AnalysisErrorDescription> analyze(Iterable<File> files) {
|
||||
final List<AnalysisErrorInfo> infos = _analyze(files);
|
||||
|
||||
Reference in New Issue
Block a user