(detached = false)
| 253 | class EffectScope { |
| 254 | // TODO isolatedDeclarations "__v_skip" |
| 255 | constructor(detached = false) { |
| 256 | this.detached = detached; |
| 257 | this._active = true; |
| 258 | this._on = 0; |
| 259 | this.effects = []; |
| 260 | this.cleanups = []; |
| 261 | this._isPaused = false; |
| 262 | this._warnOnRun = true; |
| 263 | this.__v_skip = true; |
| 264 | if (!detached && activeEffectScope) { |
| 265 | if (activeEffectScope.active) { |
| 266 | this.parent = activeEffectScope; |
| 267 | this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push( |
| 268 | this |
| 269 | ) - 1; |
| 270 | } else { |
| 271 | this._active = false; |
| 272 | this._warnOnRun = false; |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | get active() { |
| 277 | return this._active; |
| 278 | } |
nothing calls this directly
no outgoing calls
no test coverage detected