[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
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
program | Program | the program in which the ModelProperty occurs |
property | ModelProperty | the property to remove visibility modifiers from |
modifiers | EnumMember[] | the visibility modifiers to remove |
context? | DecoratorContext | the optional decorator context to use for displaying diagnostics |
Returns
Section titled “Returns”void