hasii2011 / pyut

A UML Diagrammer implemented in Python
GNU Affero General Public License v3.0
11 stars 4 forks source link

Fix TODO in PyutPythonVisitor #300

Closed hasii2011 closed 2 years ago

hasii2011 commented 2 years ago
    def __getMethodCode(self, methodName: MethodName, ctx: Python3Parser.FuncdefContext):

        methodText:     str       = ctx.getText()
        splitText:      List[str] = methodText.split('\n')
        justMethodCode: List[str] = splitText[1:len(splitText)]
        # TODO; Put in an option to use justMethodCode
        self.logger.debug(f'justMethodCode: {justMethodCode}')

        self.methodCode[methodName] = methodText
hasii2011 commented 2 years ago

Not going to put in an option. Given how PyutMethod.sourceCode is defined we should use the list of justMethodCode

hasii2011 commented 2 years ago

Done on the 🤡 master 🤡 branch