aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-01-22 00:19:57 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-01-29 04:46:16 +0800
commit97c31b3e7d6a0bc4b024b15bc13d19b851b68ead (patch)
treebb87bbd36711ff31dbda53613f15d5cfdad9de5e /Parser.h
parent282d4b8add13fd81a0320fa0d3db331e09b3d487 (diff)
downloaddexon-solidity-97c31b3e7d6a0bc4b024b15bc13d19b851b68ead.tar.gz
dexon-solidity-97c31b3e7d6a0bc4b024b15bc13d19b851b68ead.tar.zst
dexon-solidity-97c31b3e7d6a0bc4b024b15bc13d19b851b68ead.zip
Parsing accessor functions for public contract state variables
- During the contract parsing depending on whether or not a state variable is public an extra acessor FunctionDefinition is parsed for it
Diffstat (limited to 'Parser.h')
-rw-r--r--Parser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Parser.h b/Parser.h
index 211e952d..d911598b 100644
--- a/Parser.h
+++ b/Parser.h
@@ -78,6 +78,10 @@ private:
///@{
///@name Helper functions
+ /// Depending on whether a state Variable is Public, appends an accessor to the contract's functions
+ void addStateVariableAccessor(ASTPointer<VariableDeclaration> const& _varDecl,
+ std::vector<ASTPointer<FunctionDefinition>> & _functions);
+
/// Peeks ahead in the scanner to determine if a variable definition is going to follow
bool peekVariableDefinition();