| 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 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |