processStringLiteral() — ui Function Reference
Architecture documentation for the processStringLiteral() function in transform-cleanup.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 6bf4b1e9_4fda_58d0_5982_4738b771600c["processStringLiteral()"] e5d28271_9de7_c6c9_1240_13894663e9ec["transform-cleanup.ts"] 6bf4b1e9_4fda_58d0_5982_4738b771600c -->|defined in| e5d28271_9de7_c6c9_1240_13894663e9ec 92337c41_d4af_7a39_2d78_06f4ca9b2100["processStringLiterals()"] 92337c41_d4af_7a39_2d78_06f4ca9b2100 -->|calls| 6bf4b1e9_4fda_58d0_5982_4738b771600c 182b5198_cbf0_43bf_ab80_22341899f430["applyCleanup()"] 182b5198_cbf0_43bf_ab80_22341899f430 -->|calls| 6bf4b1e9_4fda_58d0_5982_4738b771600c c780c4ec_87b3_96f7_852b_71aa98849451["stripCnMarkers()"] 6bf4b1e9_4fda_58d0_5982_4738b771600c -->|calls| c780c4ec_87b3_96f7_852b_71aa98849451 style 6bf4b1e9_4fda_58d0_5982_4738b771600c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/utils/transformers/transform-cleanup.ts lines 27–37
function processStringLiteral(node: StringLikeLiteral) {
const currentValue = node.getLiteralValue()
if (!CN_MARKER_REGEX.test(currentValue)) {
return
}
const newValue = stripCnMarkers(currentValue)
if (newValue !== currentValue) {
node.setLiteralValue(newValue)
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does processStringLiteral() do?
processStringLiteral() is a function in the ui codebase, defined in packages/shadcn/src/utils/transformers/transform-cleanup.ts.
Where is processStringLiteral() defined?
processStringLiteral() is defined in packages/shadcn/src/utils/transformers/transform-cleanup.ts at line 27.
What does processStringLiteral() call?
processStringLiteral() calls 1 function(s): stripCnMarkers.
What calls processStringLiteral()?
processStringLiteral() is called by 2 function(s): applyCleanup, processStringLiterals.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free