staruml / staruml-java

Java extension for StarUML
MIT License
220 stars 89 forks source link

No variables and methods are generated after the code is reversed in Windows10 #18

Closed LiuShuangFrost closed 5 years ago

crisrivlop commented 5 years ago

Also this happen in Windows 7

crisrivlop commented 5 years ago

Hello i have the solution (almost tested for linux) at method translateMembers (options, namespace, memberNodeArray) at file "code-analizer.js" at line 689 the if sentence if ((typeof memberNode === 'string') && memberNode.node) should be replace by: if ((typeof memberNode.node === 'string') && memberNode.node) obviouly memberNode is not a string typed variable. Also you need to try if the node value (it contains the token name) is a string and not his owner object. If you dont understand me, please contact me,

niklauslee commented 5 years ago

Thank you for informing. Now it is fixed.