Selects a value.
(value: T)
| 208 | |
| 209 | /** Selects a value. */ |
| 210 | private _markSelected(value: T) { |
| 211 | value = this._getConcreteValue(value); |
| 212 | if (!this.isSelected(value)) { |
| 213 | if (!this._multiple) { |
| 214 | this._unmarkAll(); |
| 215 | } |
| 216 | |
| 217 | if (!this.isSelected(value)) { |
| 218 | this._selection.add(value); |
| 219 | } |
| 220 | |
| 221 | if (this._emitChanges) { |
| 222 | this._selectedToEmit.push(value); |
| 223 | } |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | /** Deselects a value. */ |
| 228 | private _unmarkSelected(value: T) { |
no test coverage detected