Home / Function/ hasDeclared() — react Function Reference

hasDeclared() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  43b28878_9b1d_6aeb_0d77_25080004044d["hasDeclared()"]
  0fc11255_0435_9837_dff9_fb4e66f27eb6["Context"]
  43b28878_9b1d_6aeb_0d77_25080004044d -->|defined in| 0fc11255_0435_9837_dff9_fb4e66f27eb6
  94638464_4710_0693_528f_4848cf25e876["codegenReactiveScope()"]
  94638464_4710_0693_528f_4848cf25e876 -->|calls| 43b28878_9b1d_6aeb_0d77_25080004044d
  c65f3ebd_fe8f_602d_b885_bc79e6e81b1d["codegenInstructionNullable()"]
  c65f3ebd_fe8f_602d_b885_bc79e6e81b1d -->|calls| 43b28878_9b1d_6aeb_0d77_25080004044d
  e98029e7_d319_5eee_1233_4a0434b62d22["codegenInstruction()"]
  e98029e7_d319_5eee_1233_4a0434b62d22 -->|calls| 43b28878_9b1d_6aeb_0d77_25080004044d
  style 43b28878_9b1d_6aeb_0d77_25080004044d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts lines 471–473

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

Domain

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/ReactiveScopes/CodegenReactiveFunction.ts.
Where is hasDeclared() defined?
hasDeclared() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts at line 471.
What calls hasDeclared()?
hasDeclared() is called by 3 function(s): codegenInstruction, codegenInstructionNullable, codegenReactiveScope.

Analyze Your Own Codebase

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

Try Supermodel Free