function body traversal for identifier

pull/825/head
aniket-engg 4 years ago committed by Aniket
parent a6a173d39f
commit be714b7cfb
  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)) {
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
})
}
})

Loading…
Cancel
Save