canNeverBeRef() — vue Function Reference
Architecture documentation for the canNeverBeRef() function in compileScript.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 88e9f5e4_bd74_6987_a9a2_2217c1e15c8d["canNeverBeRef()"] 4816b617_49b6_86ec_ba60_1b6ac824a31a["walkDeclaration()"] 4816b617_49b6_86ec_ba60_1b6ac824a31a -->|calls| 88e9f5e4_bd74_6987_a9a2_2217c1e15c8d 65dd2fc2_3f14_bf7a_311d_99f9d039a8a7["isCallOf()"] 88e9f5e4_bd74_6987_a9a2_2217c1e15c8d -->|calls| 65dd2fc2_3f14_bf7a_311d_99f9d039a8a7 style 88e9f5e4_bd74_6987_a9a2_2217c1e15c8d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/compiler-sfc/src/compileScript.ts lines 1630–1656
function canNeverBeRef(node: Node, userReactiveImport: string): boolean {
if (isCallOf(node, userReactiveImport)) {
return true
}
switch (node.type) {
case 'UnaryExpression':
case 'BinaryExpression':
case 'ArrayExpression':
case 'ObjectExpression':
case 'FunctionExpression':
case 'ArrowFunctionExpression':
case 'UpdateExpression':
case 'ClassExpression':
case 'TaggedTemplateExpression':
return true
case 'SequenceExpression':
return canNeverBeRef(
node.expressions[node.expressions.length - 1],
userReactiveImport
)
default:
if (node.type.endsWith('Literal')) {
return true
}
return false
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does canNeverBeRef() do?
canNeverBeRef() is a function in the vue codebase.
What does canNeverBeRef() call?
canNeverBeRef() calls 1 function(s): isCallOf.
What calls canNeverBeRef()?
canNeverBeRef() is called by 1 function(s): walkDeclaration.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free