Index: pkg/front_end/lib/src/fasta/source/outline_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/source/outline_builder.dart b/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
index 9458cde75336c55b51ce4e4c030f24de47884895..065020df65c346d373c200f00f13d83b74cbe884 100644 |
--- a/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/source/outline_builder.dart |
@@ -328,8 +328,10 @@ class OutlineBuilder extends UnhandledListener { |
int modifiers = |
Modifier.validate(pop(), isAbstract: kind == MethodBody.Abstract); |
List<MetadataBuilder> metadata = pop(); |
+ String documentationComment = _getDocumentationComment(beginToken); |
checkEmpty(beginToken.charOffset); |
library.addProcedure( |
+ documentationComment, |
metadata, |
modifiers, |
returnType, |
@@ -429,7 +431,9 @@ class OutlineBuilder extends UnhandledListener { |
modifiers &= ~abstractMask; |
} |
List<MetadataBuilder> metadata = pop(); |
+ String documentationComment = _getDocumentationComment(beginToken); |
library.addProcedure( |
+ documentationComment, |
metadata, |
modifiers, |
returnType, |
@@ -722,7 +726,9 @@ class OutlineBuilder extends UnhandledListener { |
TypeBuilder type = pop(); |
int modifiers = Modifier.validate(pop()); |
List<MetadataBuilder> metadata = pop(); |
- library.addFields(metadata, modifiers, type, fieldsInfo); |
+ String documentationComment = _getDocumentationComment(beginToken); |
+ library.addFields( |
+ documentationComment, metadata, modifiers, type, fieldsInfo); |
checkEmpty(beginToken.charOffset); |
} |
@@ -733,7 +739,9 @@ class OutlineBuilder extends UnhandledListener { |
TypeBuilder type = pop(); |
int modifiers = Modifier.validate(pop()); |
List<MetadataBuilder> metadata = pop(); |
- library.addFields(metadata, modifiers, type, fieldsInfo); |
+ String documentationComment = _getDocumentationComment(beginToken); |
+ library.addFields( |
+ documentationComment, metadata, modifiers, type, fieldsInfo); |
} |
@override |
@@ -793,7 +801,9 @@ class OutlineBuilder extends UnhandledListener { |
var name = pop(); |
int modifiers = Modifier.validate(pop()); |
List<MetadataBuilder> metadata = pop(); |
+ String documentationComment = _getDocumentationComment(beginToken); |
library.addFactoryMethod( |
+ documentationComment, |
metadata, |
modifiers, |
name, |