* Internal implementation of the `setValidators` method. Needs to be separated out into a * different method, because it is called in the constructor and it can break cases where * a control is extended.
(validators: ValidatorFn | ValidatorFn[] | null)
| 1811 | * a control is extended. |
| 1812 | */ |
| 1813 | private _assignValidators(validators: ValidatorFn | ValidatorFn[] | null): void { |
| 1814 | this._rawValidators = Array.isArray(validators) ? validators.slice() : validators; |
| 1815 | this._composedValidatorFn = coerceToValidator(this._rawValidators); |
| 1816 | this._updateHasRequiredValidator(); |
| 1817 | } |
| 1818 | |
| 1819 | /** |
| 1820 | * Internal implementation of the `setAsyncValidators` method. Needs to be separated out into a |
nothing calls this directly
no test coverage detected