| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:collection' show HashSet, Queue; | 5 import 'dart:collection' show HashSet, Queue; |
| 6 import 'dart:convert' show JSON; | 6 import 'dart:convert' show JSON; |
| 7 import 'dart:io' show File; | 7 import 'dart:io' show File; |
| 8 | 8 |
| 9 import 'package:analyzer/analyzer.dart' | 9 import 'package:analyzer/analyzer.dart' |
| 10 show AnalysisError, CompilationUnit, ErrorSeverity; | 10 show AnalysisError, CompilationUnit, ErrorSeverity; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 var analysisOptions = contextBuilder.getAnalysisOptions(analysisRoot); | 84 var analysisOptions = contextBuilder.getAnalysisOptions(analysisRoot); |
| 85 var sdk = contextBuilder.findSdk(null, analysisOptions); | 85 var sdk = contextBuilder.findSdk(null, analysisOptions); |
| 86 | 86 |
| 87 var sdkResolver = new DartUriResolver(sdk); | 87 var sdkResolver = new DartUriResolver(sdk); |
| 88 | 88 |
| 89 // Read the summaries. | 89 // Read the summaries. |
| 90 summaryData ??= new SummaryDataStore(options.summaryPaths, | 90 summaryData ??= new SummaryDataStore(options.summaryPaths, |
| 91 resourceProvider: resourceProvider, | 91 resourceProvider: resourceProvider, |
| 92 recordDependencyInfo: true, | 92 recordDependencyInfo: true, |
| 93 disallowOverlappingSummaries: true); | 93 // TODO(vsm): Reset this to true once we cleanup internal build rules. |
| 94 disallowOverlappingSummaries: false); |
| 94 | 95 |
| 95 var sdkSummaryBundle = sdk.getLinkedBundle(); | 96 var sdkSummaryBundle = sdk.getLinkedBundle(); |
| 96 if (sdkSummaryBundle != null) { | 97 if (sdkSummaryBundle != null) { |
| 97 summaryData.addBundle(null, sdkSummaryBundle); | 98 summaryData.addBundle(null, sdkSummaryBundle); |
| 98 } | 99 } |
| 99 | 100 |
| 100 var srcFactory = createSourceFactory(options, | 101 var srcFactory = createSourceFactory(options, |
| 101 sdkResolver: sdkResolver, | 102 sdkResolver: sdkResolver, |
| 102 fileResolvers: fileResolvers, | 103 fileResolvers: fileResolvers, |
| 103 summaryData: summaryData, | 104 summaryData: summaryData, |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 case "dart": | 625 case "dart": |
| 625 case "package": | 626 case "package": |
| 626 case "file": | 627 case "file": |
| 627 // A valid URI. | 628 // A valid URI. |
| 628 return uri; | 629 return uri; |
| 629 default: | 630 default: |
| 630 // Assume a file path. | 631 // Assume a file path. |
| 631 return new Uri.file(path.absolute(source)); | 632 return new Uri.file(path.absolute(source)); |
| 632 } | 633 } |
| 633 } | 634 } |
| OLD | NEW |