Skip to content

[F] isReadonlyProperty

function isReadonlyProperty(program, property): boolean

Determines if a property is read-only, which is defined as being decorated @visibility("read").

If there is more than 1 @visibility argument, then the property is not read-only. For example, @visibility("read", "update") does not designate a read-only property.

Parameters

ParameterType
programProgram
propertyModelProperty

Returns

boolean