mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add function selector to FunctionDefinition AST JSON
This commit is contained in:
@@ -368,6 +368,11 @@ string FunctionDefinition::externalSignature() const
|
||||
return TypeProvider::function(*this)->externalSignature();
|
||||
}
|
||||
|
||||
string FunctionDefinition::externalIdentifierHex() const
|
||||
{
|
||||
return TypeProvider::function(*this)->externalIdentifierHex();
|
||||
}
|
||||
|
||||
FunctionDefinitionAnnotation& FunctionDefinition::annotation() const
|
||||
{
|
||||
if (!m_annotation)
|
||||
@@ -596,6 +601,12 @@ set<VariableDeclaration::Location> VariableDeclaration::allowedDataLocations() c
|
||||
return set<Location>{ Location::Unspecified };
|
||||
}
|
||||
|
||||
string VariableDeclaration::externalIdentifierHex() const
|
||||
{
|
||||
solAssert(isStateVariable() && isPublic(), "Can only be called for public state variables");
|
||||
return TypeProvider::function(*this)->externalIdentifierHex();
|
||||
}
|
||||
|
||||
TypePointer VariableDeclaration::type() const
|
||||
{
|
||||
return annotation().type;
|
||||
|
||||
Reference in New Issue
Block a user