Skip to content

[F] addVisibilityModifiers

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

Add visibility modifiers to a property.

This function will add all the modifiers to the active set of visibility modifiers for the given property.

If no set of active modifiers exists for the given property, an empty set will be created for the property.

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 add the rest of the modifiers whose classes have not been sealed.

Parameters

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

Returns

void