| 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/source.dart'; | 9 import 'package:analyzer/src/generated/source.dart'; |
| 10 import 'package:analyzer/src/generated/source_io.dart'; | 10 import 'package:analyzer/src/generated/source_io.dart'; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 /** | 57 /** |
| 58 * Determine the analysis options that should be used for this test. | 58 * Determine the analysis options that should be used for this test. |
| 59 */ | 59 */ |
| 60 AnalysisOptionsImpl get options => | 60 AnalysisOptionsImpl get options => |
| 61 new AnalysisOptionsImpl()..enableGenericMethods = true; | 61 new AnalysisOptionsImpl()..enableGenericMethods = true; |
| 62 | 62 |
| 63 @override | 63 @override |
| 64 bool get skipFullyLinkedData => false; | 64 bool get skipFullyLinkedData => false; |
| 65 | 65 |
| 66 @override | 66 @override |
| 67 bool get skipNonConstInitializers => true; |
| 68 |
| 69 @override |
| 67 bool get strongMode => false; | 70 bool get strongMode => false; |
| 68 | 71 |
| 69 @override | 72 @override |
| 70 Source addNamedSource(String filePath, String contents) { | 73 Source addNamedSource(String filePath, String contents) { |
| 71 Source source = super.addNamedSource(filePath, contents); | 74 Source source = super.addNamedSource(filePath, contents); |
| 72 _fileContents[source] = contents; | 75 _fileContents[source] = contents; |
| 73 return source; | 76 return source; |
| 74 } | 77 } |
| 75 | 78 |
| 76 /** | 79 /** |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } else { | 151 } else { |
| 149 UnlinkedPublicNamespace namespace = | 152 UnlinkedPublicNamespace namespace = |
| 150 computePublicNamespaceFromText(text, source); | 153 computePublicNamespaceFromText(text, source); |
| 151 expect(canonicalize(namespace), | 154 expect(canonicalize(namespace), |
| 152 canonicalize(unlinkedUnits[i].publicNamespace), | 155 canonicalize(unlinkedUnits[i].publicNamespace), |
| 153 reason: 'publicNamespace(${unitUris[i]})'); | 156 reason: 'publicNamespace(${unitUris[i]})'); |
| 154 } | 157 } |
| 155 } | 158 } |
| 156 } | 159 } |
| 157 } | 160 } |
| OLD | NEW |