Commit eec3fc60 authored by Phil Quitslund's avatar Phil Quitslund

Merge pull request #3838 from pq/sdk_summaries

Turn on SDK summaries in flutter analyze.
parents 52d0434b a8f96de4
...@@ -14,7 +14,6 @@ import 'package:analyzer/source/error_processor.dart'; ...@@ -14,7 +14,6 @@ import 'package:analyzer/source/error_processor.dart';
import 'package:analyzer/src/generated/engine.dart'; import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/error.dart'; import 'package:analyzer/src/generated/error.dart';
import 'package:analyzer/src/generated/java_io.dart'; import 'package:analyzer/src/generated/java_io.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer/src/generated/sdk_io.dart'; import 'package:analyzer/src/generated/sdk_io.dart';
import 'package:analyzer/src/generated/source.dart'; import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/generated/source_io.dart'; import 'package:analyzer/src/generated/source_io.dart';
...@@ -91,7 +90,9 @@ class AnalysisDriver { ...@@ -91,7 +90,9 @@ class AnalysisDriver {
List<UriResolver> _getResolvers(InternalAnalysisContext context, List<UriResolver> _getResolvers(InternalAnalysisContext context,
Map<String, List<file_system.Folder>> packageMap) { Map<String, List<file_system.Folder>> packageMap) {
DartSdk sdk = new DirectoryBasedDartSdk(new JavaFile(sdkDir)); DirectoryBasedDartSdk sdk = new DirectoryBasedDartSdk(new JavaFile(sdkDir));
sdk.analysisOptions = context.analysisOptions;
sdk.useSummary = true;
List<UriResolver> resolvers = <UriResolver>[]; List<UriResolver> resolvers = <UriResolver>[];
EmbedderYamlLocator yamlLocator = context.embedderYamlLocator; EmbedderYamlLocator yamlLocator = context.embedderYamlLocator;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment