Skip to content

Commit 3e233ab

Browse files
committed
Documented public instance variables (fields).
Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent 4f2e8af commit 3e233ab

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CppSharp Qt plan.odt

-62 Bytes
Binary file not shown.

QtSharp/Documentation.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ public void DocumentProperty(Property property)
330330
property.Comment = comment;
331331
}
332332
}
333+
else
334+
{
335+
property.LineNumberStart = property.Field.LineNumberStart;
336+
property.LineNumberEnd = property.Field.LineNumberEnd;
337+
this.DocumentVariable(property);
338+
}
333339
}
334340

335341
private void DocumentQtProperty(Declaration property)
@@ -465,7 +471,7 @@ from code in member.Descendants("code")
465471
}
466472
}
467473

468-
public void DocumentVariable(Variable variable)
474+
public void DocumentVariable(Declaration variable)
469475
{
470476
var lineStart = variable.LineNumberStart.ToString();
471477
var lineEnd = variable.LineNumberEnd.ToString();

0 commit comments

Comments
 (0)