solmd icon indicating copy to clipboard operation
solmd copied to clipboard

Prevent duplicated functions from inheritance tree.

Open PaulLaux opened this issue 6 years ago • 1 comments

Tnx for this useful tool!

I was wondering, is there a way to prevent it from going up and documenting the entire inheritance tree?

For example for StandardToken.sol, I am getting the output:

  • SafeMath
  • BasicToken
    • totalSupply
    • balanceOf
    • transfer
    • Transfer
  • ERC20
    • approve
    • totalSupply
    • transferFrom
    • balanceOf
    • transfer
    • allowance
    • Approval
    • Transfer
  • ERC20Basic
    • totalSupply
    • balanceOf
    • transfer
    • Transfer
  • StandardToken
    • approve
    • totalSupply
    • transferFrom
    • decreaseApproval
    • balanceOf
    • transfer
    • increaseApproval
    • allowance
    • Approval
    • Transfer

But i would expect

  • StandardToken
    • approve
    • totalSupply
    • transferFrom
    • decreaseApproval
    • balanceOf
    • transfer
    • increaseApproval
    • allowance
    • Approval
    • Transfer

(only StandardToken)

OR

  • SafeMath
  • BasicToken
    • totalSupply
    • balanceOf
    • transfer
    • Transfer
  • ERC20
    • approve
    • transferFrom
    • allowance
    • Approval
  • ERC20Basic
    • totalSupply
    • balanceOf
    • transfer
    • Transfer
  • StandardToken
    • transferFrom
    • decreaseApproval
    • increaseApproval

(No duplicated functions among members)

Is there any way to achieve this?

PaulLaux avatar May 21 '18 05:05 PaulLaux

Off the top of my head I can't think of a way, but I'll look into it further.

dpilch avatar May 21 '18 17:05 dpilch