Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_ast_test.dart

Issue 2648213007: Revert "Use single InputPackagesResultProvider, without SdkSummaryResultProvider." (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 library analyzer.test.src.summary.resynthesize_ast_test; 5 library analyzer.test.src.summary.resynthesize_ast_test;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/error/error.dart'; 9 import 'package:analyzer/error/error.dart';
10 import 'package:analyzer/src/dart/element/element.dart'; 10 import 'package:analyzer/src/dart/element/element.dart';
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 .toSet(); 812 .toSet();
813 813
814 Map<String, LinkedLibrary> linkedSummaries = link( 814 Map<String, LinkedLibrary> linkedSummaries = link(
815 nonSdkLibraryUris, 815 nonSdkLibraryUris,
816 getDependency, 816 getDependency,
817 getUnit, 817 getUnit,
818 context.declaredVariables.get, 818 context.declaredVariables.get,
819 context.analysisOptions.strongMode); 819 context.analysisOptions.strongMode);
820 820
821 return new TestSummaryResynthesizer( 821 return new TestSummaryResynthesizer(
822 null,
822 context, 823 context,
823 new Map<String, UnlinkedUnit>() 824 new Map<String, UnlinkedUnit>()
824 ..addAll(SerializedMockSdk.instance.uriToUnlinkedUnit) 825 ..addAll(SerializedMockSdk.instance.uriToUnlinkedUnit)
825 ..addAll(unlinkedSummaries), 826 ..addAll(unlinkedSummaries),
826 new Map<String, LinkedLibrary>() 827 new Map<String, LinkedLibrary>()
827 ..addAll(SerializedMockSdk.instance.uriToLinkedLibrary) 828 ..addAll(SerializedMockSdk.instance.uriToLinkedLibrary)
828 ..addAll(linkedSummaries), 829 ..addAll(linkedSummaries),
829 allowMissingFiles); 830 allowMissingFiles);
830 } 831 }
831 832
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 } 942 }
942 943
943 @override 944 @override
944 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK; 945 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK;
945 946
946 @override 947 @override
947 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { 948 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) {
948 return _encodeLibrary(source); 949 return _encodeLibrary(source);
949 } 950 }
950 } 951 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summary_sdk.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698