MCPcopy Create free account
hub / github.com/codecombat/codecombat / ConvertReturnStatement

Method ConvertReturnStatement

app/lib/code-to-blocks.js:360–370  ·  view source on GitHub ↗
(n, ctx)

Source from the content-addressed store, hash-verified

358 }
359
360 static ConvertReturnStatement (n, ctx) {
361 const o = {
362 type: 'procedures_return',
363 }
364
365 if (n.argument) {
366 o.inputs = { VALUE: { block: convert(n.argument, { ...ctx, context: 'value' }) } }
367 }
368
369 return o
370 }
371
372 static ConvertCallExpression (n, ctx) {
373 if (n.callee.type === 'Identifier') {

Callers

nothing calls this directly

Calls 1

convertFunction · 0.85

Tested by

no test coverage detected