| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 test.src.serialization.elements_test; | 5 library test.src.serialization.elements_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; | 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| 9 import 'package:analyzer/dart/constant/value.dart'; | 9 import 'package:analyzer/dart/constant/value.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 1464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 | 1475 |
| 1476 test_class_documented() { | 1476 test_class_documented() { |
| 1477 checkLibrary(''' | 1477 checkLibrary(''' |
| 1478 // Extra comment so doc comment offset != 0 | 1478 // Extra comment so doc comment offset != 0 |
| 1479 /** | 1479 /** |
| 1480 * Docs | 1480 * Docs |
| 1481 */ | 1481 */ |
| 1482 class C {}'''); | 1482 class C {}'''); |
| 1483 } | 1483 } |
| 1484 | 1484 |
| 1485 test_class_documented_tripleSlash() { |
| 1486 checkLibrary(''' |
| 1487 /// aaa |
| 1488 /// bbbb |
| 1489 /// cc |
| 1490 class C {}'''); |
| 1491 } |
| 1492 |
| 1485 test_class_documented_with_references() { | 1493 test_class_documented_with_references() { |
| 1486 checkLibrary(''' | 1494 checkLibrary(''' |
| 1487 /** | 1495 /** |
| 1488 * Docs referring to [D] and [E] | 1496 * Docs referring to [D] and [E] |
| 1489 */ | 1497 */ |
| 1490 class C {} | 1498 class C {} |
| 1491 | 1499 |
| 1492 class D {} | 1500 class D {} |
| 1493 class E {}'''); | 1501 class E {}'''); |
| 1494 } | 1502 } |
| (...skipping 3345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4840 fail('Unexpectedly tried to get unlinked summary for $uri'); | 4848 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 4841 } | 4849 } |
| 4842 return serializedUnit; | 4850 return serializedUnit; |
| 4843 } | 4851 } |
| 4844 | 4852 |
| 4845 @override | 4853 @override |
| 4846 bool hasLibrarySummary(String uri) { | 4854 bool hasLibrarySummary(String uri) { |
| 4847 return true; | 4855 return true; |
| 4848 } | 4856 } |
| 4849 } | 4857 } |
| OLD | NEW |