Skip to content

Commit af275ed

Browse files
ElonHtritao
authored andcommitted
generate comment for field
1 parent e2c81df commit af275ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Generator/Passes/FieldToPropertyPass.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public override bool VisitFieldDecl(Field field)
5151
QualifiedType = field.QualifiedType,
5252
Access = field.Access,
5353
Field = field,
54-
AssociatedDeclaration = field
54+
AssociatedDeclaration = field,
55+
Comment = field.Comment
5556
};
5657

5758
if (Options.GeneratorKind == GeneratorKind.C ||

0 commit comments

Comments
 (0)