Skip to content

[F] getVisibilityForClass

function getVisibilityForClass(
program,
property,
visibilityClass): Set<EnumMember>

Returns the active visibility modifiers for a property in a given visibility class.

This function is infallible. If the visibility modifiers for the given class have not been set explicitly, it will return the default visibility modifiers for the class.

Parameters

ParameterTypeDescription
programProgramthe program in which the property occurs
propertyModelPropertythe property to get visibility modifiers for
visibilityClassEnumthe visibility class to get visibility modifiers for

Returns

Set<EnumMember>

the set of active modifiers (enum members) for the property and visibility class