MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeIdentifier

Method makeIdentifier

compiler/companion/src/JSXProcessor.ts:201–208  ·  view source on GitHub ↗
(prefix: string, type: string, output: JSXOutputState)

Source from the content-addressed store, hash-verified

199 dynamicAttributes.push(attribute);
200 } else if (attribute.name?.[0] === '$' && jsxNodeKind === JSXNodeKind.component) {
201 injectedAttributes.push(attribute);
202 } else if (attribute.value.kind === JSXAttributeValueKind.static && !foundSpread) {
203 staticAttributes.push(createStringLiteral(attribute.name!, transformContext));
204 staticAttributes.push(attribute.value.value);
205 } else {
206 dynamicAttributes.push(attribute);
207 }
208 }
209
210 let staticAttributesLiteral: ts.Expression | undefined;
211 if (staticAttributes.length) {

Callers 1

Calls 1

toPascalCaseMethod · 0.95

Tested by

no test coverage detected