isCnCall() — ui Function Reference
Architecture documentation for the isCnCall() function in transform-style-map.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 1e57bbcb_bd35_08f0_4331_f460319d4a4a["isCnCall()"] cef4e429_7112_fef5_ae0b_a838a57ccf71["transform-style-map.ts"] 1e57bbcb_bd35_08f0_4331_f460319d4a4a -->|defined in| cef4e429_7112_fef5_ae0b_a838a57ccf71 7ae791a4_b3a5_57c7_68a9_d4375998b5e7["extractCnClassesFromAttribute()"] 7ae791a4_b3a5_57c7_68a9_d4375998b5e7 -->|calls| 1e57bbcb_bd35_08f0_4331_f460319d4a4a b485ec68_aafc_76e7_2137_6da415f1d2ec["cleanCnClassesFromAttribute()"] b485ec68_aafc_76e7_2137_6da415f1d2ec -->|calls| 1e57bbcb_bd35_08f0_4331_f460319d4a4a 450ad62f_60de_6074_bd15_6596ccfbec62["removeEmptyArgumentsFromCnCall()"] 450ad62f_60de_6074_bd15_6596ccfbec62 -->|calls| 1e57bbcb_bd35_08f0_4331_f460319d4a4a 470d33e5_1a8c_ef52_d881_58cf2d3d50a3["applyClassesToElement()"] 470d33e5_1a8c_ef52_d881_58cf2d3d50a3 -->|calls| 1e57bbcb_bd35_08f0_4331_f460319d4a4a 6204e861_6180_95ae_9802_dd441b354a37["applyToMergePropsCalls()"] 6204e861_6180_95ae_9802_dd441b354a37 -->|calls| 1e57bbcb_bd35_08f0_4331_f460319d4a4a style 1e57bbcb_bd35_08f0_4331_f460319d4a4a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/styles/transform-style-map.ts lines 422–425
function isCnCall(call: CallExpression) {
const expression = call.getExpression()
return Node.isIdentifier(expression) && expression.getText() === "cn"
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isCnCall() do?
isCnCall() is a function in the ui codebase, defined in packages/shadcn/src/styles/transform-style-map.ts.
Where is isCnCall() defined?
isCnCall() is defined in packages/shadcn/src/styles/transform-style-map.ts at line 422.
What calls isCnCall()?
isCnCall() is called by 5 function(s): applyClassesToElement, applyToMergePropsCalls, cleanCnClassesFromAttribute, extractCnClassesFromAttribute, removeEmptyArgumentsFromCnCall.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free