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

Method ConvertNumericLiteral

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

Source from the content-addressed store, hash-verified

102 }
103
104 static ConvertNumericLiteral (n, ctx) {
105 const found = findOne(ctx.plan, x => fuzzyMatch(n, x[1]), 'Finding Numeric Literal')
106 return {
107 type: found[0].type,
108 fields: { NUM: n.value },
109 }
110 }
111
112 static ConvertStringLiteral (n, ctx) {
113 const found = findOne(ctx.plan, x => fuzzyMatch(n, x[1]), 'Finding String Literal')

Callers 1

ConvertLiteralMethod · 0.80

Calls 2

findOneFunction · 0.85
fuzzyMatchFunction · 0.85

Tested by

no test coverage detected