Closed silkPK closed 4 years ago
Describe the bug Uml function generate a wrong uml class diagram. For example, following Solidity contract:
pragma solidity ^0.5.0; import "openzeppelin-solidity/contracts/math/SafeMath.sol"; import "./Stoppable.sol"; contract StoppableElement is Stoppable { using SafeMath for uint256; constructor () Stoppable(false) public { } }
where StoppableElement derive from Stoppable class, generate following plantuml script and diagram:
@startuml ' -- for auto-render install: https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml ' -- options -- ' -- classes -- class StoppableElement { ' -- inheritance -- {abstract}Stoppable ' -- usingFor -- {abstract}📚SafeMath for [[uint256]] ' -- vars -- ' -- methods -- +**__constructor__**() } ' -- inheritance / usingFor -- StoppableElement <|--[#DarkGoldenRod] Stoppable StoppableElement <|..[#DarkOliveGreen] SafeMath : //for uint256// @enduml
where inheritance arrow is in wrong direction.
Expected behavior Inheritance tags should be:
' -- inheritance / usingFor -- Stoppable <|--[#DarkGoldenRod] StoppableElement SafeMath <|..[#DarkOliveGreen] StoppableElement : //for uint256//
Screenshots should be:
Good catch, thanks @DeepitPK!
I've opted to change the arrow direction and avoid that plantuml re-arranges the graph. should be merged and released with #37 soon.
Describe the bug Uml function generate a wrong uml class diagram. For example, following Solidity contract:
where StoppableElement derive from Stoppable class, generate following plantuml script and diagram:
where inheritance arrow is in wrong direction.
Expected behavior Inheritance tags should be:
Screenshots should be: