libsolidity: Adding a comment to nameLocation().

This commit is contained in:
Christian Parpart 2021-03-24 12:49:55 +01:00 committed by chriseth
parent d443fe415d
commit 86a7e19879

View File

@ -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; }