MCPcopy
hub / github.com/Effect-TS/effect / EffectPrimitive

Class EffectPrimitive

packages/effect/src/internal/core.ts:127–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127class EffectPrimitive {
128 public effect_instruction_i0 = undefined
129 public effect_instruction_i1 = undefined
130 public effect_instruction_i2 = undefined
131 public trace = undefined;
132 [EffectTypeId] = effectVariance
133 constructor(readonly _op: Primitive["_op"]) {}
134 [Equal.symbol](this: {}, that: unknown) {
135 return this === that
136 }
137 [Hash.symbol](this: {}) {
138 return Hash.cached(this, Hash.random(this))
139 }
140 pipe() {
141 return pipeArguments(this, arguments)
142 }
143 toJSON() {
144 return {
145 _id: "Effect",
146 _op: this._op,
147 effect_instruction_i0: toJSON(this.effect_instruction_i0),
148 effect_instruction_i1: toJSON(this.effect_instruction_i1),
149 effect_instruction_i2: toJSON(this.effect_instruction_i2)
150 }
151 }
152 toString() {
153 return format(this.toJSON())
154 }
155 [NodeInspectSymbol]() {
156 return this.toJSON()
157 }
158 [Symbol.iterator]() {
159 return new SingleShotGen(new YieldWrap(this))
160 }
161}
162
163/** @internal */
164class EffectPrimitiveFailure {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…