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

Function declareSymbolOperator

src/compute-engine/engine-declarations.ts:62–81  ·  view source on GitHub ↗
(
  ce: IComputeEngine,
  name: string,
  def: OperatorDefinition,
  scope?: Scope
)

Source from the content-addressed store, hash-verified

60} from './boxed-expression/type-compatibility-error.js';
61import {
62 provenTypeNode,
63 refutingFact,
64} from './boxed-expression/constraint-subject.js';
65import { osaDistance } from '../common/fuzzy-string-match.js';
66
67import { isValidSymbol, validateSymbol } from '../math-json/symbols.js';
68import type { MathJsonExpression, MathJsonSymbol } from '../math-json/types.js';
69
70import type {
71 ValueDefinition,
72 OperatorDefinition,
73 AssignValue,
74 Expression,
75 BoxedDefinition,
76 BoxedValueDefinition,
77 DefinitionSearchResult,
78 SymbolDefinitionInput,
79 IComputeEngine,
80 Scope,
81} from './global-types.js';
82
83import {
84 _BoxedValueDefinition,

Callers

nothing calls this directly

Calls 3

updateDefFunction · 0.90
setMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected