MCPcopy Create free account
hub / github.com/microsoft/SandDance / codegen

Function codegen

docs/tests/v2/es6/js/sanddance.js:129598–129607  ·  view source on GitHub ↗
(ast)

Source from the content-addressed store, hash-verified

129596 };
129597
129598 function codegen(ast) {
129599 var result = {
129600 code: visit(ast),
129601 globals: Object.keys(globals),
129602 fields: Object.keys(fields)
129603 };
129604 globals = {};
129605 fields = {};
129606 return result;
129607 }
129608
129609 codegen.functions = functions;
129610 codegen.constants = constants;

Callers 2

fncallFunction · 0.70
_defaultFunction · 0.70

Calls 1

visitFunction · 0.70

Tested by

no test coverage detected