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

Function declareSymbolValue

src/compute-engine/engine-declarations.ts:37–60  ·  view source on GitHub ↗
(
  ce: IComputeEngine,
  name: MathJsonSymbol,
  def: Partial<ValueDefinition>,
  scope?: Scope
)

Source from the content-addressed store, hash-verified

35 hasFreeTypeVariables,
36 isReservedTypeName,
37 satisfiesTypeBound,
38 substituteTypeVariables,
39 TypeVariableError,
40 isPolymorphicType,
41} from '../common/type/instantiate.js';
42import { declarationOf, forwardArities } from '../common/type/reference.js';
43import { verifyVariance } from '../common/type/variance.js';
44import type { VarianceResult } from '../common/type/variance.js';
45import { BoxedType } from '../common/type/boxed-type.js';
46import {
47 assertSingleArmPolytype,
48 EffectContractError,
49 inferFunctionLiteralEffects,
50 matchesDeclaredTypeAxes,
51 refineDeclaredPlaceholders,
52 signatureEffects,
53 stripArrowEffects,
54 withArrowEffects,
55} from './boxed-expression/effects-inference.js';
56import {
57 constructorAssignmentError,
58 declaredTypeError,
59 TypeCompatibilityError,
60} from './boxed-expression/type-compatibility-error.js';
61import {
62 provenTypeNode,
63 refutingFact,

Callers

nothing calls this directly

Calls 3

updateDefFunction · 0.90
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected