Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2615013003: Fix for summarizing triple slash documentation comments. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698