Home / Function/ traverseInstruction() — react Function Reference

traverseInstruction() — react Function Reference

Architecture documentation for the traverseInstruction() function in visitors.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  940018a6_e890_d3b5_6044_cb8053953421["traverseInstruction()"]
  171a5d22_bb6b_1c99_05a4_6ad897438a35["ReactiveFunctionVisitor"]
  940018a6_e890_d3b5_6044_cb8053953421 -->|defined in| 171a5d22_bb6b_1c99_05a4_6ad897438a35
  af4d3127_0abf_3e44_50a8_d7a9dd0b9b58["visitInstruction()"]
  af4d3127_0abf_3e44_50a8_d7a9dd0b9b58 -->|calls| 940018a6_e890_d3b5_6044_cb8053953421
  31c2e15e_64cc_996c_4233_ced53a2d09ed["traverseInstruction()"]
  31c2e15e_64cc_996c_4233_ced53a2d09ed -->|calls| 940018a6_e890_d3b5_6044_cb8053953421
  f6a9b2b0_32d7_a868_9762_f6fe2182d587["visitInstruction()"]
  f6a9b2b0_32d7_a868_9762_f6fe2182d587 -->|calls| 940018a6_e890_d3b5_6044_cb8053953421
  2211ab1f_a4ba_c853_54e3_d906ac4af6fe["transformInstruction()"]
  2211ab1f_a4ba_c853_54e3_d906ac4af6fe -->|calls| 940018a6_e890_d3b5_6044_cb8053953421
  98f294c7_67b7_0dd7_2e06_f6cd2c5c5526["visitInstruction()"]
  98f294c7_67b7_0dd7_2e06_f6cd2c5c5526 -->|calls| 940018a6_e890_d3b5_6044_cb8053953421
  de24fdaf_4501_a945_7e26_bfe72dbe5b85["visitInstruction()"]
  de24fdaf_4501_a945_7e26_bfe72dbe5b85 -->|calls| 940018a6_e890_d3b5_6044_cb8053953421
  b0098168_1428_1a79_dc10_829e8e1a5595["visitInstruction()"]
  b0098168_1428_1a79_dc10_829e8e1a5595 -->|calls| 940018a6_e890_d3b5_6044_cb8053953421
  39ff6a63_fc67_04cf_7655_c9066bab21b8["visitID()"]
  940018a6_e890_d3b5_6044_cb8053953421 -->|calls| 39ff6a63_fc67_04cf_7655_c9066bab21b8
  4c94103a_a617_5904_2070_e3b436762ea5["visitLValue()"]
  940018a6_e890_d3b5_6044_cb8053953421 -->|calls| 4c94103a_a617_5904_2070_e3b436762ea5
  efd512bc_cd12_5af4_cd24_a098be1037ec["visitValue()"]
  940018a6_e890_d3b5_6044_cb8053953421 -->|calls| efd512bc_cd12_5af4_cd24_a098be1037ec
  31c2e15e_64cc_996c_4233_ced53a2d09ed["traverseInstruction()"]
  940018a6_e890_d3b5_6044_cb8053953421 -->|calls| 31c2e15e_64cc_996c_4233_ced53a2d09ed
  10043bf1_f7ee_9ed9_307a_fe3edfd02b09["eachInstructionLValue()"]
  940018a6_e890_d3b5_6044_cb8053953421 -->|calls| 10043bf1_f7ee_9ed9_307a_fe3edfd02b09
  style 940018a6_e890_d3b5_6044_cb8053953421 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts lines 87–93

  traverseInstruction(instruction: ReactiveInstruction, state: TState): void {
    this.visitID(instruction.id, state);
    for (const operand of eachInstructionLValue(instruction)) {
      this.visitLValue(instruction.id, operand, state);
    }
    this.visitValue(instruction.id, instruction.value, state);
  }

Domain

Subdomains

Frequently Asked Questions

What does traverseInstruction() do?
traverseInstruction() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts.
Where is traverseInstruction() defined?
traverseInstruction() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/visitors.ts at line 87.
What does traverseInstruction() call?
traverseInstruction() calls 5 function(s): eachInstructionLValue, traverseInstruction, visitID, visitLValue, visitValue.
What calls traverseInstruction()?
traverseInstruction() is called by 7 function(s): transformInstruction, traverseInstruction, visitInstruction, visitInstruction, visitInstruction, visitInstruction, visitInstruction.

Analyze Your Own Codebase

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

Try Supermodel Free