Home / Function/ throwTodo() — react Function Reference

throwTodo() — react Function Reference

Architecture documentation for the throwTodo() function in CompilerError.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64["throwTodo()"]
  e51fd0d2_bb38_cc97_7763_efe37f300a47["CompilerError"]
  cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64 -->|defined in| e51fd0d2_bb38_cc97_7763_efe37f300a47
  a6cfd201_2bfc_7a25_c3dd_0460f1930354["findContextIdentifiers()"]
  a6cfd201_2bfc_7a25_c3dd_0460f1930354 -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  fa714f50_9834_58a4_a05d_7f849864a528["handleAssignment()"]
  fa714f50_9834_58a4_a05d_7f849864a528 -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  5dec5bb8_e0f9_d79d_1c1d_65a05ff57391["build()"]
  5dec5bb8_e0f9_d79d_1c1d_65a05ff57391 -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  e3b73b76_4b2f_e1c7_6ea9_544f184a98e7["parseAliasingSignatureConfig()"]
  e3b73b76_4b2f_e1c7_6ea9_544f184a98e7 -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  f5d001aa_7d8a_3660_1e73_93f3fa2883da["computeEffectsForSignature()"]
  f5d001aa_7d8a_3660_1e73_93f3fa2883da -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  e1fecb5e_21c7_c2f3_65f9_02c98934dd77["getArgumentEffect()"]
  e1fecb5e_21c7_c2f3_65f9_02c98934dd77 -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  bae7b350_498b_eec1_68c2_7ca15568b2bb["visitTestBlock()"]
  bae7b350_498b_eec1_68c2_7ca15568b2bb -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  69119c39_6bb5_7c2b_0712_73f7e045a58d["visitValueBlockTerminal()"]
  69119c39_6bb5_7c2b_0712_73f7e045a58d -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  4f146c25_f9b5_fd01_865f_04b2fc3071a8["codegenTerminal()"]
  4f146c25_f9b5_fd01_865f_04b2fc3071a8 -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  1bda4538_293e_48ce_ea89_3160033e51b6["definePlace()"]
  1bda4538_293e_48ce_ea89_3160033e51b6 -->|calls| cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64
  825ba705_282a_7031_34fa_49b26f1c9bed["pushErrorDetail()"]
  cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64 -->|calls| 825ba705_282a_7031_34fa_49b26f1c9bed
  style cf8d627e_c2f0_6cd4_e5fc_35f3c7005b64 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 339–350

  static throwTodo(
    options: Omit<CompilerErrorDetailOptions, 'category'>,
  ): never {
    const errors = new CompilerError();
    errors.pushErrorDetail(
      new CompilerErrorDetail({
        ...options,
        category: ErrorCategory.Todo,
      }),
    );
    throw errors;
  }

Domain

Subdomains

Frequently Asked Questions

What does throwTodo() do?
throwTodo() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is throwTodo() defined?
throwTodo() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 339.
What does throwTodo() call?
throwTodo() calls 1 function(s): pushErrorDetail.
What calls throwTodo()?
throwTodo() is called by 10 function(s): build, codegenTerminal, computeEffectsForSignature, definePlace, findContextIdentifiers, getArgumentEffect, handleAssignment, parseAliasingSignatureConfig, and 2 more.

Analyze Your Own Codebase

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

Try Supermodel Free