MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / _setSymbolValue

Method _setSymbolValue

src/compute-engine/index.ts:1326–1331  ·  view source on GitHub ↗

* For internal use. Use `ce.assign(name, value)` instead. * @internal

(
    id: MathJsonSymbol,
    value: Expression | boolean | number | undefined
  )

Source from the content-addressed store, hash-verified

1324 }
1325
1326 /** `_baseCacheGeneration()`, or inside the static view of a type
1327 * computation when `diverges`, a key of its own. */
1328 private _viewKeyedGeneration(diverges: boolean): number {
1329 const generation = this._baseCacheGeneration();
1330 if (!diverges) return generation;
1331 // Inside a type computation, the bindings are read in the static view
1332 // (`static-typing-view.ts`): a variable has no value. A sign, a value or
1333 // an evaluation computed in the view is not the one a read outside it
1334 // gets, so it is kept under a key of its own: one key for each

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected