From be714b7cfb307f0ed2165fdbe16eb8d797ec40f0 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 29 Jan 2021 00:57:12 +0530 Subject: [PATCH] function body traversal for identifier --- .../src/solidity-analyzer/modules/similarVariableNames.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/remix-analyzer/src/solidity-analyzer/modules/similarVariableNames.ts b/libs/remix-analyzer/src/solidity-analyzer/modules/similarVariableNames.ts index 061b5ab70b..fea0533ffd 100644 --- a/libs/remix-analyzer/src/solidity-analyzer/modules/similarVariableNames.ts +++ b/libs/remix-analyzer/src/solidity-analyzer/modules/similarVariableNames.ts @@ -53,9 +53,10 @@ export default class similarVariableNames implements AnalyzerModule { if (node.nodeType === "Identifier" && (node.name === sim.var1 || node.name === sim.var2)) { warnings.push({ warning: `${funcName} : Variables have very similar names "${sim.var1}" and "${sim.var2}". ${hasModifiersComments} ${multipleContractsWithSameNameComments}`, - location: func.node['src'] + location: node['src'] }) } + return true }) } })