Home / Function/ eachInstructionValueLValue() — react Function Reference

eachInstructionValueLValue() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  21b1eb1e_eaf5_5238_3a24_f56eb8ef7278["eachInstructionValueLValue()"]
  2f3caf55_cc64_415c_55dd_9771ba7dc210["visitors.ts"]
  21b1eb1e_eaf5_5238_3a24_f56eb8ef7278 -->|defined in| 2f3caf55_cc64_415c_55dd_9771ba7dc210
  10043bf1_f7ee_9ed9_307a_fe3edfd02b09["eachInstructionLValue()"]
  10043bf1_f7ee_9ed9_307a_fe3edfd02b09 -->|calls| 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278
  8b5121a5_55ad_8904_6f4c_ab19201c32ee["findReferencedRangeOfTemporaries()"]
  8b5121a5_55ad_8904_6f4c_ab19201c32ee -->|calls| 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278
  c4483c48_7e67_41a0_1a7a_c6ca92a55123["reorderBlock()"]
  c4483c48_7e67_41a0_1a7a_c6ca92a55123 -->|calls| 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278
  3b1a75b6_5928_8dea_5f17_cf94a0c97374["visitInstruction()"]
  3b1a75b6_5928_8dea_5f17_cf94a0c97374 -->|calls| 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278
  847d1bde_9ac0_7c0d_3cfa_7f96cdffa0f2["validateContextVariableLValuesImpl()"]
  847d1bde_9ac0_7c0d_3cfa_7f96cdffa0f2 -->|calls| 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278
  75fd8677_19db_75c9_a011_6a3a774fa8f5["collectDependencies()"]
  75fd8677_19db_75c9_a011_6a3a774fa8f5 -->|calls| 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278
  2430e594_74e0_ca9a_14be_251ff6fa4bb8["recordDepsInValue()"]
  2430e594_74e0_ca9a_14be_251ff6fa4bb8 -->|calls| 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278
  f5637d03_fd91_50b8_9da7_b2a24c91bab7["eachPatternOperand()"]
  21b1eb1e_eaf5_5238_3a24_f56eb8ef7278 -->|calls| f5637d03_fd91_50b8_9da7_b2a24c91bab7
  style 21b1eb1e_eaf5_5238_3a24_f56eb8ef7278 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts lines 62–83

export function* eachInstructionValueLValue(
  value: ReactiveValue,
): Iterable<Place> {
  switch (value.kind) {
    case 'DeclareContext':
    case 'StoreContext':
    case 'DeclareLocal':
    case 'StoreLocal': {
      yield value.lvalue.place;
      break;
    }
    case 'Destructure': {
      yield* eachPatternOperand(value.lvalue.pattern);
      break;
    }
    case 'PostfixUpdate':
    case 'PrefixUpdate': {
      yield value.lvalue;
      break;
    }
  }
}

Subdomains

Frequently Asked Questions

What does eachInstructionValueLValue() do?
eachInstructionValueLValue() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts.
Where is eachInstructionValueLValue() defined?
eachInstructionValueLValue() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts at line 62.
What does eachInstructionValueLValue() call?
eachInstructionValueLValue() calls 1 function(s): eachPatternOperand.
What calls eachInstructionValueLValue()?
eachInstructionValueLValue() is called by 7 function(s): collectDependencies, eachInstructionLValue, findReferencedRangeOfTemporaries, recordDepsInValue, reorderBlock, validateContextVariableLValuesImpl, visitInstruction.

Analyze Your Own Codebase

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

Try Supermodel Free