| 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.summarize_elements_test; | 5 library analyzer.test.src.summary.summarize_elements_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 8 import 'package:analyzer/src/generated/engine.dart'; | 8 import 'package:analyzer/src/generated/engine.dart'; |
| 9 import 'package:analyzer/src/generated/sdk.dart'; | 9 import 'package:analyzer/src/generated/sdk.dart'; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 */ | 44 */ |
| 45 final Map<Source, String> _fileContents = <Source, String>{}; | 45 final Map<Source, String> _fileContents = <Source, String>{}; |
| 46 | 46 |
| 47 @override | 47 @override |
| 48 LinkedLibrary linked; | 48 LinkedLibrary linked; |
| 49 | 49 |
| 50 @override | 50 @override |
| 51 List<UnlinkedUnit> unlinkedUnits; | 51 List<UnlinkedUnit> unlinkedUnits; |
| 52 | 52 |
| 53 @override | 53 @override |
| 54 bool get elementMode => true; |
| 55 |
| 56 @override |
| 54 bool get checkAstDerivedData => false; | 57 bool get checkAstDerivedData => false; |
| 55 | 58 |
| 56 @override | 59 @override |
| 57 bool get expectAbsoluteUrisInDependencies => true; | 60 bool get expectAbsoluteUrisInDependencies => true; |
| 58 | 61 |
| 59 /** | 62 /** |
| 60 * Determine the analysis options that should be used for this test. | 63 * Determine the analysis options that should be used for this test. |
| 61 */ | 64 */ |
| 62 AnalysisOptionsImpl get options => | 65 AnalysisOptionsImpl get options => |
| 63 new AnalysisOptionsImpl()..enableGenericMethods = true; | 66 new AnalysisOptionsImpl()..enableGenericMethods = true; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } else { | 161 } else { |
| 159 UnlinkedPublicNamespace namespace = | 162 UnlinkedPublicNamespace namespace = |
| 160 computePublicNamespaceFromText(text, source); | 163 computePublicNamespaceFromText(text, source); |
| 161 expect(canonicalize(namespace), | 164 expect(canonicalize(namespace), |
| 162 canonicalize(unlinkedUnits[i].publicNamespace), | 165 canonicalize(unlinkedUnits[i].publicNamespace), |
| 163 reason: 'publicNamespace(${unitUris[i]})'); | 166 reason: 'publicNamespace(${unitUris[i]})'); |
| 164 } | 167 } |
| 165 } | 168 } |
| 166 } | 169 } |
| 167 } | 170 } |
| OLD | NEW |