Closed tmheath closed 7 months ago
This is used internally:
and
This could be hidden and made internal/private only. I don't think it doesn't make much sense outside of internal usage.
Alright thanks, that answered this question.
Would you like me to change the scope of the method to internal in next pr or leave as is?
Can be PR
I also should update the signature for AddParagraphBeforeSelf then?
Making the change locally, will open a PR in the future.
I've made the commit locally, let me know if AddParagraphBeforeSelf shouldn't be made private.
If it has section then yes. But otherwise no
BeforeSelf does not have a section argument, but an overload for AfterSelf does. I only need to make the definition with section as an argument private and leave both other method's defined public?
Private: AddParagraphAfterSelf(WordSection section, WordParagraph paragraph = null); Public: AddParagraphAfterSelf(); public AddParagraphBeforeSelf();
Asking for clarification, right now I moved all three to the private methods file.
AddParagraphAfterSelf is pretty useful AddParagraphBeforeSelf as well. Basically you can insert new paragraph before the one you're currently operating with. The ones with section isn't really useful i guess. But i could be wrong.
I'm going through some stuff looking for things, if I end up changing anything then I'll add tests. I've been adding a lot of documentation that is either missing or otherwise badly worded. What is this method supposed to do when both section and paragraph is given? How I read it was basically whichever came last but that isn't what the code is doing.
If this needs updated then I can go ahead and do so this PR.