Skip to content

Commit 34d5d4f

Browse files
committed
When in strong mode, analyze with dart2js paths.
This would correspond to the code in build_sdk_summaries.dart, which creates strong mode summaries. R=brianwilkerson@google.com, paulberry@google.com BUG= #26466 Review URL: https://codereview.chromium.org/1988853002 .
1 parent 48c8ffa commit 34d5d4f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/analyzer_cli/lib/src/driver.dart

+3-5
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,7 @@ class Driver implements CommandLineStarter {
590590
//TODO: ideally share this traversal with SdkExtUriResolver
591591
for (Iterable<fileSystem.Folder> libDirs in folders) {
592592
if (libDirs.any((fileSystem.Folder libDir) =>
593-
libDir
594-
.getChild(SdkExtUriResolver.SDK_EXT_NAME)
595-
.exists)) {
593+
libDir.getChild(SdkExtUriResolver.SDK_EXT_NAME).exists)) {
596594
return true;
597595
}
598596
}
@@ -638,8 +636,8 @@ class Driver implements CommandLineStarter {
638636
options.dartSdkSummaryPath, options.strongMode);
639637
} else {
640638
String dartSdkPath = options.dartSdkPath;
641-
DirectoryBasedDartSdk directorySdk =
642-
new DirectoryBasedDartSdk(new JavaFile(dartSdkPath));
639+
DirectoryBasedDartSdk directorySdk = new DirectoryBasedDartSdk(
640+
new JavaFile(dartSdkPath), options.strongMode);
643641
directorySdk.useSummary = useSummaries &&
644642
options.sourceFiles.every((String sourcePath) {
645643
sourcePath = path.absolute(sourcePath);

0 commit comments

Comments
 (0)