Comparing version 1.1.4 to 1.1.5
@@ -207,9 +207,20 @@ "use strict"; | ||
umlClass = addAssociations(node.variables, umlClass); | ||
umlClass = parseExpression(node.initialValue, umlClass); | ||
break; | ||
case 'ForStatement': | ||
// @ts-ignore type of body is a Block and not a Statement | ||
umlClass = addAssociations(node.body.statements, umlClass); | ||
umlClass = parseExpression(node.conditionExpression, umlClass); | ||
umlClass = parseExpression(node.loopExpression.expression, umlClass); | ||
break; | ||
case 'WhileStatement': | ||
// @ts-ignore type of body is a Block and not a Statement | ||
umlClass = addAssociations(node.body.statements, umlClass); | ||
break; | ||
case 'DoWhileStatement': | ||
// @ts-ignore type of body is a Block and not a Statement | ||
umlClass = addAssociations(node.body.statements, umlClass); | ||
umlClass = parseExpression(node.condition, umlClass); | ||
break; | ||
case 'ReturnStatement': | ||
case 'ExpressionStatement': | ||
@@ -229,2 +240,3 @@ umlClass = parseExpression(node.expression, umlClass); | ||
} | ||
umlClass = parseExpression(node.condition, umlClass); | ||
break; | ||
@@ -238,2 +250,5 @@ default: | ||
function parseExpression(expression, umlClass) { | ||
if (!expression || !expression.type) { | ||
return umlClass; | ||
} | ||
if (expression.type === 'BinaryOperation') { | ||
@@ -240,0 +255,0 @@ umlClass = parseExpression(expression.left, umlClass); |
{ | ||
"name": "sol2uml", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Unified Modeling Language (UML) class diagram generator for Solidity contracts", | ||
@@ -5,0 +5,0 @@ "main": "./lib/sol2uml.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57700
1200