| 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'; |
| 11 import 'package:analyzer/src/summary/format.dart'; | 11 import 'package:analyzer/src/summary/format.dart'; |
| 12 import 'package:analyzer/src/summary/idl.dart'; |
| 12 import 'package:analyzer/src/summary/public_namespace_computer.dart' | 13 import 'package:analyzer/src/summary/public_namespace_computer.dart' |
| 13 as public_namespace; | 14 as public_namespace; |
| 14 import 'package:analyzer/src/summary/summarize_elements.dart' | 15 import 'package:analyzer/src/summary/summarize_elements.dart' |
| 15 as summarize_elements; | 16 as summarize_elements; |
| 16 import 'package:unittest/unittest.dart'; | 17 import 'package:unittest/unittest.dart'; |
| 17 | 18 |
| 18 import '../../generated/resolver_test.dart'; | 19 import '../../generated/resolver_test.dart'; |
| 19 import '../../reflective_tests.dart'; | 20 import '../../reflective_tests.dart'; |
| 20 import 'summary_common.dart'; | 21 import 'summary_common.dart'; |
| 21 | 22 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } else { | 147 } else { |
| 147 UnlinkedPublicNamespace namespace = | 148 UnlinkedPublicNamespace namespace = |
| 148 computePublicNamespaceFromText(text, source); | 149 computePublicNamespaceFromText(text, source); |
| 149 expect(canonicalize(namespace), | 150 expect(canonicalize(namespace), |
| 150 canonicalize(unlinkedUnits[i].publicNamespace), | 151 canonicalize(unlinkedUnits[i].publicNamespace), |
| 151 reason: 'publicNamespace(${unitUris[i]})'); | 152 reason: 'publicNamespace(${unitUris[i]})'); |
| 152 } | 153 } |
| 153 } | 154 } |
| 154 } | 155 } |
| 155 } | 156 } |
| OLD | NEW |