aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/LValue.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-09-22 00:55:58 +0800
committerchriseth <c@ethdev.com>2015-09-22 02:03:10 +0800
commit39d1e2bc06a5c39180681c78e8f6618f25da2bce (patch)
tree307fae58b63e129a3eac0a26d612878e5797a896 /libsolidity/LValue.h
parent34a81fd60e0218ef93813ffce22fb6d0ed4955e2 (diff)
downloaddexon-solidity-39d1e2bc06a5c39180681c78e8f6618f25da2bce.tar
dexon-solidity-39d1e2bc06a5c39180681c78e8f6618f25da2bce.tar.gz
dexon-solidity-39d1e2bc06a5c39180681c78e8f6618f25da2bce.tar.bz2
dexon-solidity-39d1e2bc06a5c39180681c78e8f6618f25da2bce.tar.lz
dexon-solidity-39d1e2bc06a5c39180681c78e8f6618f25da2bce.tar.xz
dexon-solidity-39d1e2bc06a5c39180681c78e8f6618f25da2bce.tar.zst
dexon-solidity-39d1e2bc06a5c39180681c78e8f6618f25da2bce.zip
Refactored annotations.
Diffstat (limited to 'libsolidity/LValue.h')
-rw-r--r--libsolidity/LValue.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/LValue.h b/libsolidity/LValue.h
index f02d8ad1..cbbfb102 100644
--- a/libsolidity/LValue.h
+++ b/libsolidity/LValue.h
@@ -35,6 +35,7 @@ class Declaration;
class Type;
class ArrayType;
class CompilerContext;
+class VariableDeclaration;
/**
* Abstract class used to retrieve, delete and store data in lvalues/variables.
@@ -76,7 +77,7 @@ protected:
class StackVariable: public LValue
{
public:
- StackVariable(CompilerContext& _compilerContext, Declaration const& _declaration);
+ StackVariable(CompilerContext& _compilerContext, VariableDeclaration const& _declaration);
virtual unsigned sizeOnStack() const override { return 0; }
virtual void retrieveValue(SourceLocation const& _location, bool _remove = false) const override;
@@ -129,7 +130,7 @@ class StorageItem: public LValue
{
public:
/// Constructs the LValue and pushes the location of @a _declaration onto the stack.
- StorageItem(CompilerContext& _compilerContext, Declaration const& _declaration);
+ StorageItem(CompilerContext& _compilerContext, VariableDeclaration const& _declaration);
/// Constructs the LValue and assumes that the storage reference is already on the stack.
StorageItem(CompilerContext& _compilerContext, Type const& _type);
virtual unsigned sizeOnStack() const override { return 2; }