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
This commit is contained in:
Lefteris Karapetsas
2015-01-28 21:46:16 +01:00
parent 282d4b8add
commit 97c31b3e7d
2 changed files with 29 additions and 0 deletions
+4
View File
@@ -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();