mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add function that retrieves first FunctionDefinition up the scope path
This commit is contained in:
@@ -161,6 +161,9 @@ public:
|
||||
/// @returns the source unit this scopable is present in.
|
||||
SourceUnit const& sourceUnit() const;
|
||||
|
||||
/// @returns the function or modifier definition this scopable is present in or nullptr.
|
||||
CallableDeclaration const* functionOrModifierDefinition() const;
|
||||
|
||||
/// @returns the source name this scopable is present in.
|
||||
/// Can be combined with annotation().canonicalName (if present) to form a globally unique name.
|
||||
std::string sourceUnitName() const;
|
||||
|
||||
Reference in New Issue
Block a user