MCPcopy
hub / github.com/google/earthengine-api / decodeFunctionDefinition

Function decodeFunctionDefinition

javascript/src/deserializer.js:295–301  ·  view source on GitHub ↗
(defined)

Source from the content-addressed store, hash-verified

293 };
294
295 const decodeFunctionDefinition = (defined) => {
296 const body = lookup(defined.body, 'function body');
297 const args = defined.argumentNames.map(
298 name => ({name, type: 'Object', optional: false}));
299 const signature = {args, name: '', returns: 'Object'};
300 return new ee.CustomFunction(signature, () => body);
301 };
302
303 const decodeFunctionInvocation = (invoked) => {
304 const func = invoked.functionReference ?

Callers 1

decodeFunction · 0.85

Calls 2

lookupFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected