Home / Function/ markScopeIdentifier() — vue Function Reference

markScopeIdentifier() — vue Function Reference

Architecture documentation for the markScopeIdentifier() function in babelUtils.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  7e8e68e9_ea35_71dc_11c1_49e8bba80b55["markScopeIdentifier()"]
  946e0fa6_6c05_b820_0bd7_980d6d869192["babelUtils.ts"]
  7e8e68e9_ea35_71dc_11c1_49e8bba80b55 -->|defined in| 946e0fa6_6c05_b820_0bd7_980d6d869192
  6821e51e_382f_8ff8_ca9d_3b77f896018a["walkIdentifiers()"]
  6821e51e_382f_8ff8_ca9d_3b77f896018a -->|calls| 7e8e68e9_ea35_71dc_11c1_49e8bba80b55
  style 7e8e68e9_ea35_71dc_11c1_49e8bba80b55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/compiler-sfc/src/babelUtils.ts lines 218–233

function markScopeIdentifier(
  node: Node & { scopeIds?: Set<string> },
  child: Identifier,
  knownIds: Record<string, number>
) {
  const { name } = child
  if (node.scopeIds && node.scopeIds.has(name)) {
    return
  }
  if (name in knownIds) {
    knownIds[name]++
  } else {
    knownIds[name] = 1
  }
  ;(node.scopeIds || (node.scopeIds = new Set())).add(name)
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does markScopeIdentifier() do?
markScopeIdentifier() is a function in the vue codebase, defined in packages/compiler-sfc/src/babelUtils.ts.
Where is markScopeIdentifier() defined?
markScopeIdentifier() is defined in packages/compiler-sfc/src/babelUtils.ts at line 218.
What calls markScopeIdentifier()?
markScopeIdentifier() is called by 1 function(s): walkIdentifiers.

Analyze Your Own Codebase

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

Try Supermodel Free