mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user