@internal
| 211 | |
| 212 | /** @internal */ |
| 213 | class EffectPrimitiveSuccess { |
| 214 | public effect_instruction_i0 = undefined |
| 215 | public effect_instruction_i1 = undefined |
| 216 | public effect_instruction_i2 = undefined |
| 217 | public trace = undefined; |
| 218 | [EffectTypeId] = effectVariance |
| 219 | constructor(readonly _op: Primitive["_op"]) { |
| 220 | // @ts-expect-error |
| 221 | this._tag = _op |
| 222 | } |
| 223 | [Equal.symbol](this: {}, that: unknown) { |
| 224 | return exitIsExit(that) && that._op === "Success" && |
| 225 | // @ts-expect-error |
| 226 | Equal.equals(this.effect_instruction_i0, that.effect_instruction_i0) |
| 227 | } |
| 228 | [Hash.symbol](this: {}) { |
| 229 | return pipe( |
| 230 | // @ts-expect-error |
| 231 | Hash.string(this._tag), |
| 232 | // @ts-expect-error |
| 233 | Hash.combine(Hash.hash(this.effect_instruction_i0)), |
| 234 | Hash.cached(this) |
| 235 | ) |
| 236 | } |
| 237 | get value() { |
| 238 | return this.effect_instruction_i0 |
| 239 | } |
| 240 | pipe() { |
| 241 | return pipeArguments(this, arguments) |
| 242 | } |
| 243 | toJSON() { |
| 244 | return { |
| 245 | _id: "Exit", |
| 246 | _tag: this._op, |
| 247 | value: toJSON(this.value) |
| 248 | } |
| 249 | } |
| 250 | toString() { |
| 251 | return format(this.toJSON()) |
| 252 | } |
| 253 | [NodeInspectSymbol]() { |
| 254 | return this.toJSON() |
| 255 | } |
| 256 | [Symbol.iterator]() { |
| 257 | return new SingleShotGen(new YieldWrap(this)) |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | /** @internal */ |
| 262 | export type Op<Tag extends string, Body = {}> = Effect.Effect<never> & Body & { |
nothing calls this directly
no outgoing calls
no test coverage detected