From 9f00d0c94e1c2b728a63b4e43055b91efc69ff5e Mon Sep 17 00:00:00 2001 From: Konstantin Shcheglov Date: Mon, 25 Oct 2021 18:33:51 +0000 Subject: [PATCH] Deprecate DriverOptions.mockSdk Change-Id: I7f28a8ac1fbbc45693b6fe038bf5490440703ccf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218020 Reviewed-by: Samuel Rawlins Reviewed-by: Brian Wilkerson Commit-Queue: Konstantin Shcheglov --- pkg/analyzer/lib/src/lint/analysis.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/analyzer/lib/src/lint/analysis.dart b/pkg/analyzer/lib/src/lint/analysis.dart index b43bd0c46c7..2e6974efe41 100644 --- a/pkg/analyzer/lib/src/lint/analysis.dart +++ b/pkg/analyzer/lib/src/lint/analysis.dart @@ -75,6 +75,7 @@ class DriverOptions { bool strongMode = true; /// The mock SDK (to speed up testing) or `null` to use the actual SDK. + @Deprecated('Use createMockSdk() and set dartSdkPath') DartSdk? mockSdk; /// Return `true` is the parser is able to parse asserts in the initializer