MCPcopy Index your code
hub / github.com/processing/p5.js / normalizeIdentifier

Function normalizeIdentifier

utils/typescript.mjs:485–490  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

483const processed = processData(rawData, typescriptStrategy);
484
485function normalizeIdentifier(name) {
486 return (
487 '0123456789'.includes(name[0]) ||
488 name === 'class'
489 ) ? '$' + name : name;
490}
491
492function formatJSDocComment(text, indentLevel = 0) {
493 if (!text) return '';

Callers 1

generateParamDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected