hir: Visibility: Add is_public() method
This commit is contained in:
parent
e01a814061
commit
dfb5f548ce
|
@ -576,6 +576,9 @@ public:
|
|||
// Returns whether visibility is in an error state.
|
||||
bool is_error () const { return vis_type == ERROR; }
|
||||
|
||||
// Does the current visibility refer to a simple `pub <item>` entirely public
|
||||
bool is_public () const { return vis_type == PUBLIC; }
|
||||
|
||||
// Creates an error visibility.
|
||||
static Visibility create_error ()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue