MCPcopy
hub / github.com/zxlie/FeHelper / generateMapFromStrings

Function generateMapFromStrings

apps/code-beautify/beautify.js:294–301  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

292 }
293
294 function generateMapFromStrings(list) {
295 var result = {};
296 for (var x = 0; x < list.length; x++) {
297 // make the mapped names underscored instead of dash
298 result[list[x].replace(/-/g, '_')] = list[x];
299 }
300 return result;
301 }
302
303 function reserved_word(token, word) {
304 return token && token.type === TOKEN.RESERVED && token.text === word;

Callers 1

beautify.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected