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

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

Issue 2647323006: Reland c9e1b88 and 56726fc with a DDC fix. (Closed)
Patch Set: Created 3 years, 10 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,
823 context, 822 context,
824 new Map<String, UnlinkedUnit>() 823 new Map<String, UnlinkedUnit>()
825 ..addAll(SerializedMockSdk.instance.uriToUnlinkedUnit) 824 ..addAll(SerializedMockSdk.instance.uriToUnlinkedUnit)
826 ..addAll(unlinkedSummaries), 825 ..addAll(unlinkedSummaries),
827 new Map<String, LinkedLibrary>() 826 new Map<String, LinkedLibrary>()
828 ..addAll(SerializedMockSdk.instance.uriToLinkedLibrary) 827 ..addAll(SerializedMockSdk.instance.uriToLinkedLibrary)
829 ..addAll(linkedSummaries), 828 ..addAll(linkedSummaries),
830 allowMissingFiles); 829 allowMissingFiles);
831 } 830 }
832 831
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 } 941 }
943 942
944 @override 943 @override
945 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK; 944 DartSdk createDartSdk() => AbstractContextTest.SHARED_MOCK_SDK;
946 945
947 @override 946 @override
948 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) { 947 TestSummaryResynthesizer encodeDecodeLibrarySource(Source source) {
949 return _encodeLibrary(source); 948 return _encodeLibrary(source);
950 } 949 }
951 } 950 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698