addAttr() — vue Function Reference
Architecture documentation for the addAttr() function in helpers.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 51133883_ca33_6568_1819_239e506a3448["addAttr()"] 59b7cd33_3172_bd71_66da_0b9508449054["helpers.ts"] 51133883_ca33_6568_1819_239e506a3448 -->|defined in| 59b7cd33_3172_bd71_66da_0b9508449054 b1c7f848_3443_6284_06d1_dfc620ebd2c4["processSlotContent()"] b1c7f848_3443_6284_06d1_dfc620ebd2c4 -->|calls| 51133883_ca33_6568_1819_239e506a3448 94cd3ed6_4fec_eddb_c90a_1c38249e5b02["processAttrs()"] 94cd3ed6_4fec_eddb_c90a_1c38249e5b02 -->|calls| 51133883_ca33_6568_1819_239e506a3448 b8300ea8_d2a4_8ee3_27f2_4fb5b2125adb["rangeSetItem()"] 51133883_ca33_6568_1819_239e506a3448 -->|calls| b8300ea8_d2a4_8ee3_27f2_4fb5b2125adb style 51133883_ca33_6568_1819_239e506a3448 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/compiler/helpers.ts lines 33–45
export function addAttr(
el: ASTElement,
name: string,
value: any,
range?: Range,
dynamic?: boolean
) {
const attrs = dynamic
? el.dynamicAttrs || (el.dynamicAttrs = [])
: el.attrs || (el.attrs = [])
attrs.push(rangeSetItem({ name, value, dynamic }, range))
el.plain = false
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does addAttr() do?
addAttr() is a function in the vue codebase, defined in src/compiler/helpers.ts.
Where is addAttr() defined?
addAttr() is defined in src/compiler/helpers.ts at line 33.
What does addAttr() call?
addAttr() calls 1 function(s): rangeSetItem.
What calls addAttr()?
addAttr() is called by 2 function(s): processAttrs, processSlotContent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free