mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
libsolidity: Adding a comment to nameLocation().
This commit is contained in:
parent
d443fe415d
commit
86a7e19879
@ -246,7 +246,10 @@ public:
|
||||
|
||||
/// @returns the declared name.
|
||||
ASTString const& name() const { return *m_name; }
|
||||
|
||||
/// @returns the location of the declared name itself or empty location if not available or unknown.
|
||||
SourceLocation const& nameLocation() const noexcept { return m_nameLocation; }
|
||||
|
||||
bool noVisibilitySpecified() const { return m_visibility == Visibility::Default; }
|
||||
Visibility visibility() const { return m_visibility == Visibility::Default ? defaultVisibility() : m_visibility; }
|
||||
bool isPublic() const { return visibility() >= Visibility::Public; }
|
||||
|
Loading…
Reference in New Issue
Block a user