MCPcopy Index your code
hub / github.com/microsoft/SandDance / parseEncode

Function parseEncode

docs/app/js/sanddance-app.js:147008–147017  ·  view source on GitHub ↗
(encode, type, role, style, scope, params)

Source from the content-addressed store, hash-verified

147006 return code;
147007}
147008function parseEncode(encode, type, role, style, scope, params) {
147009 const enc = {};
147010 params = params || {};
147011 params.encoders = {
147012 $encode: enc
147013 };
147014 encode = applyDefaults(encode, type, role, style, scope.config);
147015 for(const key in encode)enc[key] = parseBlock(encode[key], type, params, scope);
147016 return params;
147017}
147018function parseBlock(block, marktype, params, scope) {
147019 const channels = {}, fields = {};
147020 for(const name in block)if (block[name] != null) // skip any null entries

Callers 2

parseMarkFunction · 0.70
parseViewFunction · 0.70

Calls 2

applyDefaultsFunction · 0.70
parseBlockFunction · 0.70

Tested by

no test coverage detected