| Index: pkg/analyzer/lib/src/task/dart.dart
|
| diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
|
| index f552a87e8e050522b3b5dcd68d14f99da37ee82f..ce9ac979935c7c8b99ecfd36bee768a337d5d152 100644
|
| --- a/pkg/analyzer/lib/src/task/dart.dart
|
| +++ b/pkg/analyzer/lib/src/task/dart.dart
|
| @@ -39,6 +39,7 @@ import 'package:analyzer/src/task/strong_mode.dart';
|
| import 'package:analyzer/task/dart.dart';
|
| import 'package:analyzer/task/general.dart';
|
| import 'package:analyzer/task/model.dart';
|
| +import 'package:analyzer/src/generated/utilities_dart.dart';
|
|
|
| /**
|
| * The [ResultCachingPolicy] for ASTs.
|
| @@ -1365,7 +1366,8 @@ class BuildLibraryElementTask extends SourceBasedAnalysisTask {
|
| // set the library documentation to the docs associated with the first
|
| // directive in the compilation unit.
|
| if (definingCompilationUnit.directives.isNotEmpty) {
|
| - _setDoc(libraryElement, definingCompilationUnit.directives.first);
|
| + setElementDocumentationComment(
|
| + libraryElement, definingCompilationUnit.directives.first);
|
| }
|
|
|
| //
|
| @@ -1408,19 +1410,6 @@ class BuildLibraryElementTask extends SourceBasedAnalysisTask {
|
| }
|
|
|
| /**
|
| - * If the given [node] has a documentation comment, remember its content
|
| - * and range into the given [element].
|
| - */
|
| - void _setDoc(ElementImpl element, AnnotatedNode node) {
|
| - Comment comment = node.documentationComment;
|
| - if (comment != null && comment.isDocumentation) {
|
| - element.documentationComment =
|
| - comment.tokens.map((Token t) => t.lexeme).join('\n');
|
| - element.setDocRange(comment.offset, comment.length);
|
| - }
|
| - }
|
| -
|
| - /**
|
| * Return a map from the names of the inputs of this kind of task to the task
|
| * input descriptors describing those inputs for a task with the given
|
| * [libSource].
|
|
|