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

Method declare

src/compute-engine/index.ts:1355–1365  ·  view source on GitHub ↗
(
    arg1:
      | string
      | {
          [id: string]: Type | TypeString | Partial<SymbolDefinition>;
        },
    arg2?: Type | TypeString | Partial<SymbolDefinition>,
    scope?: Scope
  )

Source from the content-addressed store, hash-verified

1353
1354 startup.bootstrapLibraries(options?.libraries);
1355
1356 const commonSymbols = startup.initializeCommonSymbolBindings(
1357 this._commonSymbols
1358 );
1359 this.True = commonSymbols.True;
1360 this.False = commonSymbols.False;
1361 this.Pi = commonSymbols.Pi;
1362 this.E = commonSymbols.E;
1363 this.Nothing = commonSymbols.Nothing;
1364 this.Missing = commonSymbols.Missing;
1365
1366 // Push a fresh scope to protect system definitions:
1367 // this will be the "global" scope
1368 this.pushScope(undefined, 'global');

Callers 10

freshMatrixEngineFunction · 0.95
dictEngineFunction · 0.95
fnEngineFunction · 0.95
assumeIntegerFunction · 0.95
forTypeFunction · 0.95
firesFunction · 0.95
makeEngineFunction · 0.95
createScratchEngineFunction · 0.95
createEngineFunction · 0.95
buildSolveRulesFunction · 0.95

Calls

no outgoing calls

Tested by 7

freshMatrixEngineFunction · 0.76
dictEngineFunction · 0.76
fnEngineFunction · 0.76
assumeIntegerFunction · 0.76
forTypeFunction · 0.76
firesFunction · 0.76
makeEngineFunction · 0.76