Home / Function/ makeAttrsMap() — vue Function Reference

makeAttrsMap() — vue Function Reference

Architecture documentation for the makeAttrsMap() function in index.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  f30ee5c9_b95d_809f_eef3_2a595d216a2f["makeAttrsMap()"]
  320ee0f4_351d_a6b2_1c1c_f0f6f42fb987["index.ts"]
  f30ee5c9_b95d_809f_eef3_2a595d216a2f -->|defined in| 320ee0f4_351d_a6b2_1c1c_f0f6f42fb987
  fc56981f_9001_955c_5e6d_6ea55122787e["createASTElement()"]
  fc56981f_9001_955c_5e6d_6ea55122787e -->|calls| f30ee5c9_b95d_809f_eef3_2a595d216a2f
  style f30ee5c9_b95d_809f_eef3_2a595d216a2f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/compiler/parser/index.ts lines 944–953

function makeAttrsMap(attrs: Array<Record<string, any>>): Record<string, any> {
  const map = {}
  for (let i = 0, l = attrs.length; i < l; i++) {
    if (__DEV__ && map[attrs[i].name] && !isIE && !isEdge) {
      warn('duplicate attribute: ' + attrs[i].name, attrs[i])
    }
    map[attrs[i].name] = attrs[i].value
  }
  return map
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does makeAttrsMap() do?
makeAttrsMap() is a function in the vue codebase, defined in src/compiler/parser/index.ts.
Where is makeAttrsMap() defined?
makeAttrsMap() is defined in src/compiler/parser/index.ts at line 944.
What calls makeAttrsMap()?
makeAttrsMap() is called by 1 function(s): createASTElement.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free