Index: lib/src/analysis_context.dart |
diff --git a/lib/src/analysis_context.dart b/lib/src/analysis_context.dart |
index 35c7164abf551fd7d781527637bb76f2987dbe67..8a7c064273f25e6e5c30b85da4ffdbfd7cbfe337 100644 |
--- a/lib/src/analysis_context.dart |
+++ b/lib/src/analysis_context.dart |
@@ -40,7 +40,7 @@ AnalysisContext createAnalysisContext() { |
/// `package:` URI resolvers. |
SourceFactory createSourceFactory(SourceResolverOptions options, |
{DartUriResolver sdkResolver, List<UriResolver> fileResolvers}) { |
- var sdkResolver = options.useMockSdk |
vsm
2016/03/29 22:10:54
doh!
|
+ sdkResolver ??= options.useMockSdk |
? createMockSdkResolver(mockSdkSources) |
: createSdkPathResolver(options.dartSdkPath); |