diff options
author | chriseth <chris@ethereum.org> | 2017-06-01 21:47:11 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-16 17:56:21 +0800 |
commit | 78b49db779376b8ddedc0abb91a82a3384def4f1 (patch) | |
tree | 38aa28acbdf1e7c072a3fe301c8d7b06a105be50 /libsolidity/inlineasm/AsmScope.h | |
parent | 8e5c4bf21dfd9cfaa8de35aef034bb32be290a48 (diff) | |
download | dexon-solidity-78b49db779376b8ddedc0abb91a82a3384def4f1.tar dexon-solidity-78b49db779376b8ddedc0abb91a82a3384def4f1.tar.gz dexon-solidity-78b49db779376b8ddedc0abb91a82a3384def4f1.tar.bz2 dexon-solidity-78b49db779376b8ddedc0abb91a82a3384def4f1.tar.lz dexon-solidity-78b49db779376b8ddedc0abb91a82a3384def4f1.tar.xz dexon-solidity-78b49db779376b8ddedc0abb91a82a3384def4f1.tar.zst dexon-solidity-78b49db779376b8ddedc0abb91a82a3384def4f1.zip |
Helper to count the number of variables in a scope.
Diffstat (limited to 'libsolidity/inlineasm/AsmScope.h')
-rw-r--r-- | libsolidity/inlineasm/AsmScope.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/inlineasm/AsmScope.h b/libsolidity/inlineasm/AsmScope.h index de9119e0..cc240565 100644 --- a/libsolidity/inlineasm/AsmScope.h +++ b/libsolidity/inlineasm/AsmScope.h @@ -109,6 +109,8 @@ struct Scope /// across function and assembly boundaries). bool exists(std::string const& _name); + /// @returns the number of variables directly registered inside the scope. + size_t numberOfVariables() const; /// @returns true if this scope is inside a function. bool insideFunction() const; |