Home / File/ phi-reference-effects.ts — react Source File

phi-reference-effects.ts — react Source File

Architecture documentation for phi-reference-effects.ts, a typescript file in the react codebase. 1 imports, 0 dependents.

File typescript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  70ff3eb1_11b6_29f8_a86d_9c5537ddc1ab["phi-reference-effects.ts"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  70ff3eb1_11b6_29f8_a86d_9c5537ddc1ab --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 70ff3eb1_11b6_29f8_a86d_9c5537ddc1ab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {arrayPush} from 'shared-runtime';

function Foo(cond) {
  let x = null;
  if (cond) {
    x = [];
  } else {
  }
  // Here, x = phi(x$null, x$[]) should receive a ValueKind of Mutable
  arrayPush(x, 2);

  return x;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Foo,
  params: [{cond: true}],
  sequentialRenders: [{cond: true}, {cond: true}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does phi-reference-effects.ts do?
phi-reference-effects.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in phi-reference-effects.ts?
phi-reference-effects.ts defines 1 function(s): Foo.
What does phi-reference-effects.ts depend on?
phi-reference-effects.ts imports 1 module(s): shared-runtime.
Where is phi-reference-effects.ts in the architecture?
phi-reference-effects.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/phi-reference-effects.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).

Analyze Your Own Codebase

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

Try Supermodel Free