Consensys / vscode-solidity-auditor

Solidity language support and visual security auditor for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor
GNU General Public License v3.0
569 stars 60 forks source link

Highlight arguments in constructed contracts #112

Closed cleanunicorn closed 1 year ago

cleanunicorn commented 1 year ago

Having a contract that inherits another contract and expects some constructor arguments, when the parent's arguments are passed, the arguments are not highlighted.

contract Parent {
    constructor (uint256 arg1_) {}
}

contract Child is Parent {
    constructor (
        uint256 arg1_, 
        uint256 arg2_
    ) 
    // does not highlight `arg1_`
    Parent(arg1_) {
        // highlights `arg2_`
        arg2_;
    }
}

image

I would expect to see arg1_ highlighted, similar to how arg2_ is.