function body traversal for identifier

pull/5370/head
aniket-engg 4 years ago committed by Aniket
parent e842897b29
commit f924222b6d
  1. 3
      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)) { if (node.nodeType === "Identifier" && (node.name === sim.var1 || node.name === sim.var2)) {
warnings.push({ warnings.push({
warning: `${funcName} : Variables have very similar names "${sim.var1}" and "${sim.var2}". ${hasModifiersComments} ${multipleContractsWithSameNameComments}`, warning: `${funcName} : Variables have very similar names "${sim.var1}" and "${sim.var2}". ${hasModifiersComments} ${multipleContractsWithSameNameComments}`,
location: func.node['src'] location: node['src']
}) })
} }
return true
}) })
} }
}) })

Loading…
Cancel
Save