move away froma deprecated method (#11215)

This commit is contained in:
Devon Carew
2017-07-13 16:18:40 -07:00
committed by GitHub
parent 14648e9bae
commit bde8a5f5a6

View File

@@ -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);