Skip to content

[F] removeVisibilityModifiers

function removeVisibilityModifiers(
program,
property,
modifiers,
context?): void

Remove visibility modifiers from a property.

This function will remove all the modifiers from the active set of visibility modifiers for the given property.

If no set of active modifiers exists for the given property, the default set for the modifier’s visibility class will be used.

If the visibility modifiers for property in the given modifier’s visibility class have been sealed, this function will issue a diagnostic and ignore that modifier, but it will still remove the rest of the modifiers whose classes have not been sealed.

Parameters

ParameterTypeDescription
programProgramthe program in which the ModelProperty occurs
propertyModelPropertythe property to remove visibility modifiers from
modifiersEnumMember[]the visibility modifiers to remove
context?DecoratorContextthe optional decorator context to use for displaying diagnostics

Returns

void