diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-06 02:49:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-21 06:45:13 +0800 |
commit | 7b0fb5d06b735ec7b45120a67298caec70441379 (patch) | |
tree | 425e2087d4915888003375e579d0c6553d7ceb9d /libsolidity/ast | |
parent | 5875890576eb95dd73bc04b5e864975cd7a55f43 (diff) | |
download | dexon-solidity-7b0fb5d06b735ec7b45120a67298caec70441379.tar.gz dexon-solidity-7b0fb5d06b735ec7b45120a67298caec70441379.tar.zst dexon-solidity-7b0fb5d06b735ec7b45120a67298caec70441379.zip |
Support variable references within modifiers for inline assembly
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/AST.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 8fd1584d..7ed4ddce 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -623,7 +623,7 @@ public: virtual bool isLValue() const override; virtual bool isPartOfExternalInterface() const override { return isPublic(); } - bool isLocalVariable() const { return !!dynamic_cast<FunctionDefinition const*>(scope()); } + bool isLocalVariable() const { return !!dynamic_cast<CallableDeclaration const*>(scope()); } /// @returns true if this variable is a parameter or return parameter of a function. bool isCallableParameter() const; /// @returns true if this variable is a parameter (not return parameter) of an external function. |