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

Function createStringLiteral

compiler/companion/src/JSXProcessor.ts:72–76  ·  view source on GitHub ↗
(value: string, transformContext: ts.TransformationContext)

Source from the content-addressed store, hash-verified

70const rendererModulePath = 'valdi_core/src/JSX';
71
72function createStringLiteral(value: string, transformContext: ts.TransformationContext): ts.StringLiteral {
73 const literal = transformContext.factory.createStringLiteral(value);
74 (literal as any).singleQuote = true;
75 return literal;
76}
77
78export class JSXProcessor {
79 constructor(readonly logger?: ILogger) {}

Callers 6

outputElementInnerMethod · 0.85
outputJSXElementMethod · 0.85
outputJSXComponentMethod · 0.85
injectDeclarationsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected