Home / Function/ hasDeclared() — react Function Reference

hasDeclared() — react Function Reference

Architecture documentation for the hasDeclared() function in PropagateScopeDependenciesHIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  a9451a62_0379_c394_befb_99acd7445bd9["hasDeclared()"]
  1be3b542_2ecf_364c_adef_6e5675b7385e["DependencyCollectionContext"]
  a9451a62_0379_c394_befb_99acd7445bd9 -->|defined in| 1be3b542_2ecf_364c_adef_6e5675b7385e
  fe7b2dbb_34c7_f07a_c558_c479a9c5eb1e["handleInstruction()"]
  fe7b2dbb_34c7_f07a_c558_c479a9c5eb1e -->|calls| a9451a62_0379_c394_befb_99acd7445bd9
  style a9451a62_0379_c394_befb_99acd7445bd9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts lines 484–486

  hasDeclared(identifier: Identifier): boolean {
    return this.#declarations.has(identifier.declarationId);
  }

Subdomains

Frequently Asked Questions

What does hasDeclared() do?
hasDeclared() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts.
Where is hasDeclared() defined?
hasDeclared() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/PropagateScopeDependenciesHIR.ts at line 484.
What calls hasDeclared()?
hasDeclared() is called by 1 function(s): handleInstruction.

Analyze Your Own Codebase

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

Try Supermodel Free