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

Method ConvertStringLiteral

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

Source from the content-addressed store, hash-verified

110 }
111
112 static ConvertStringLiteral (n, ctx) {
113 const found = findOne(ctx.plan, x => fuzzyMatch(n, x[1]), 'Finding String Literal')
114 return {
115 type: found[0].type,
116 fields: { TEXT: n.value },
117 }
118 }
119
120 static ConvertBooleanLiteral (n, ctx) {
121 const found = findOne(ctx.plan, x => fuzzyMatch(n, x[1]), 'Finding Boolean Literal')

Callers 1

ConvertLiteralMethod · 0.80

Calls 2

findOneFunction · 0.85
fuzzyMatchFunction · 0.85

Tested by

no test coverage detected