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

Method compile

test/compute-engine/compile-plugin.test.ts:104–114  ·  view source on GitHub ↗
(expr: Expression, options: any = {})

Source from the content-addressed store, hash-verified

102 }
103
104 compile(expr: Expression, options: any = {}): CompilationResult {
105 const { BaseCompiler } = require('../../src/compute-engine/compilation/base-compiler');
106 const target = this.createTarget();
107 const rpnCode = BaseCompiler.compile(expr, target);
108
109 return {
110 target: 'rpn',
111 success: true,
112 code: rpnCode,
113 };
114 }
115}
116
117describe('COMPILATION PLUGIN ARCHITECTURE', () => {

Callers

nothing calls this directly

Calls 2

createTargetMethod · 0.95
compileMethod · 0.65

Tested by

no test coverage detected