MCPcopy Index your code
hub / github.com/braziljs/eloquente-javascript / handleIf

Function handleIf

src/transform.mjs:55–60  ·  view source on GitHub ↗
(tokens, i, options)

Source from the content-addressed store, hash-verified

53}
54
55function handleIf(tokens, i, options) {
56 let tag = tokens[i].args[0]
57 if (options.defined.indexOf(tag) > -1) return i
58 for (let j = i + 1; j < tokens.length; j++) if (tokens[j].type == "meta_if_close" && tokens[j].args[0] == tag)
59 return j
60}
61
62const titleCaseSmallWords = "a an the at by for in of on to up and as but with or nor if console.log".split(" ");
63

Callers 2

transformInlineFunction · 0.85
transformTokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected