| Index: pkg/analyzer/lib/src/generated/incremental_resolver.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/incremental_resolver.dart b/pkg/analyzer/lib/src/generated/incremental_resolver.dart
|
| index 274b7a1cb36d8d18572dec63aeea0b9eb6fd2abd..bb004544cf8c70a0d1a338fbaff2134693f11399 100644
|
| --- a/pkg/analyzer/lib/src/generated/incremental_resolver.dart
|
| +++ b/pkg/analyzer/lib/src/generated/incremental_resolver.dart
|
| @@ -800,16 +800,21 @@ class PoorMansIncrementalResolver {
|
| {
|
| AstNode parent = newComment.parent;
|
| if (parent is AnnotatedNode) {
|
| + setElementDocumentationForVariables(VariableDeclarationList list) {
|
| + for (VariableDeclaration variable in list.variables) {
|
| + Element variableElement = variable.element;
|
| + if (variableElement is ElementImpl) {
|
| + setElementDocumentationComment(variableElement, parent);
|
| + }
|
| + }
|
| + }
|
| Element parentElement = ElementLocator.locate(newComment.parent);
|
| if (parentElement is ElementImpl) {
|
| setElementDocumentationComment(parentElement, parent);
|
| - } else if (parentElement == null && parent is FieldDeclaration) {
|
| - for (VariableDeclaration field in parent.fields.variables) {
|
| - Element fieldElement = field.element;
|
| - if (fieldElement is ElementImpl) {
|
| - setElementDocumentationComment(fieldElement, parent);
|
| - }
|
| - }
|
| + } else if (parent is FieldDeclaration) {
|
| + setElementDocumentationForVariables(parent.fields);
|
| + } else if (parent is TopLevelVariableDeclaration) {
|
| + setElementDocumentationForVariables(parent.variables);
|
| }
|
| }
|
| }
|
|
|