Skip to content

[F] clearVisibilityModifiersForClass

function clearVisibilityModifiersForClass(
program,
property,
visibilityClass,
context?): void

Clears the visibility modifiers for a property in a given visibility class.

If the visibility modifiers for the given class are sealed, this function will issue a diagnostic and leave the visibility modifiers unchanged.

Parameters

ParameterTypeDescription
programProgramthe program in which the ModelProperty occurs
propertyModelPropertythe property to clear visibility modifiers for
visibilityClassEnumthe visibility class to clear visibility modifiers for
context?DecoratorContextthe optional decorator context to use for displaying diagnostics

Returns

void