Index: pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
index cecbe48ba31c440e44e6b55ed4401ad363aba541..d4d7a8712d04ac2a9889168a794ee2dc63453501 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
@@ -37,6 +37,7 @@ class KernelFieldBuilder extends FieldBuilder<Expression> { |
final bool hasInitializer; |
KernelFieldBuilder( |
+ String documentationComment, |
this.metadata, |
this.type, |
String name, |
@@ -47,7 +48,8 @@ class KernelFieldBuilder extends FieldBuilder<Expression> { |
this.hasInitializer) |
: field = new KernelField(null, fileUri: compilationUnit?.relativeFileUri) |
..fileOffset = charOffset, |
- super(name, modifiers, compilationUnit, charOffset); |
+ super( |
+ documentationComment, name, modifiers, compilationUnit, charOffset); |
void set initializer(Expression value) { |
if (!hasInitializer && value is! NullLiteral && !isConst && !isFinal) { |
@@ -61,6 +63,7 @@ class KernelFieldBuilder extends FieldBuilder<Expression> { |
type == null && (hasInitializer || isInstanceMember); |
Field build(SourceLibraryBuilder library) { |
+ field.documentationComment = documentationComment; |
field.name ??= new Name(name, library.target); |
if (type != null) { |
field.type = type.build(library); |