Home / File/ Pipeline.ts — react Source File

Pipeline.ts — react Source File

Architecture documentation for Pipeline.ts, a typescript file in the react codebase. 72 imports, 2 dependents.

File typescript BabelCompiler Entrypoint 72 imports 2 dependents 3 functions

Entity Profile

Dependency Diagram

graph LR
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b["Pipeline.ts"]
  0423f759_97e0_9101_4634_ed555abc5ca9["index.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 0423f759_97e0_9101_4634_ed555abc5ca9
  1b971013_8a90_0d8d_1fcc_f31581cd66aa["Environment.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 1b971013_8a90_0d8d_1fcc_f31581cd66aa
  cba0c8a2_0db5_48e2_0d19_b2c6a46799e8["Environment"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> cba0c8a2_0db5_48e2_0d19_b2c6a46799e8
  674e370e_9010_8396_1a12_b7aee0e7a30f["EnvironmentConfig"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 674e370e_9010_8396_1a12_b7aee0e7a30f
  3d4f48f2_0491_af90_7077_5573865bf9da["ReactFunctionType"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 3d4f48f2_0491_af90_7077_5573865bf9da
  a8683125_42ac_e9cd_3e85_739b8a5c0c4c["FindContextIdentifiers.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> a8683125_42ac_e9cd_3e85_739b8a5c0c4c
  a6cfd201_2bfc_7a25_c3dd_0460f1930354["findContextIdentifiers"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> a6cfd201_2bfc_7a25_c3dd_0460f1930354
  3f06dc9c_086a_1fa0_4d0f_f754ca26ee58["index.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 3f06dc9c_086a_1fa0_4d0f_f754ca26ee58
  7a9070da_3bae_1b79_d180_2d833344884a["index.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 7a9070da_3bae_1b79_d180_2d833344884a
  dc3f5251_a95c_3c77_5550_3882c13a37c9["InstructionReordering.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> dc3f5251_a95c_3c77_5550_3882c13a37c9
  06363a0e_405c_bfba_71c1_808efa86a089["instructionReordering"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 06363a0e_405c_bfba_71c1_808efa86a089
  0291e079_1c14_3cf3_45da_30767ab28e42["index.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 0291e079_1c14_3cf3_45da_30767ab28e42
  144792a6_40dd_95bb_1746_790346dbccd0["AlignMethodCallScopes.ts"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> 144792a6_40dd_95bb_1746_790346dbccd0
  bdad7522_9507_6e0a_8551_e304482ab97e["alignMethodCallScopes"]
  e3cfc07a_10c8_5dcd_e270_e8e14c29309b --> bdad7522_9507_6e0a_8551_e304482ab97e
  style e3cfc07a_10c8_5dcd_e270_e8e14c29309b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import {NodePath} from '@babel/traverse';
import * as t from '@babel/types';
import prettyFormat from 'pretty-format';
import {CompilerOutputMode, Logger, ProgramContext} from '.';
import {
  HIRFunction,
  ReactiveFunction,
  assertConsistentIdentifiers,
  assertTerminalPredsExist,
  assertTerminalSuccessorsExist,
  assertValidBlockNesting,
  assertValidMutableRanges,
  buildReactiveScopeTerminalsHIR,
  lower,
  mergeConsecutiveBlocks,
  mergeOverlappingReactiveScopesHIR,
  pruneUnusedLabelsHIR,
} from '../HIR';
import {
  Environment,
  EnvironmentConfig,
  ReactFunctionType,
} from '../HIR/Environment';
import {findContextIdentifiers} from '../HIR/FindContextIdentifiers';
import {
  analyseFunctions,
  dropManualMemoization,
  inferReactivePlaces,
  inlineImmediatelyInvokedFunctionExpressions,
  inferEffectDependencies,
} from '../Inference';
import {
  constantPropagation,
  deadCodeElimination,
  pruneMaybeThrows,
  inlineJsxTransform,
} from '../Optimization';
import {instructionReordering} from '../Optimization/InstructionReordering';
import {
  CodegenFunction,
  alignObjectMethodScopes,
  assertScopeInstructionsWithinScopes,
  assertWellFormedBreakTargets,
  buildReactiveFunction,
  codegenFunction,
  extractScopeDeclarationsFromDestructuring,
  inferReactiveScopeVariables,
  memoizeFbtAndMacroOperandsInSameScope,
  mergeReactiveScopesThatInvalidateTogether,
  promoteUsedTemporaries,
  propagateEarlyReturns,
  pruneHoistedContexts,
  pruneNonEscapingScopes,
// ... (563 more lines)

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does Pipeline.ts do?
Pipeline.ts is a source file in the react codebase, written in typescript. It belongs to the BabelCompiler domain, Entrypoint subdomain.
What functions are defined in Pipeline.ts?
Pipeline.ts defines 3 function(s): compileFn, run, runWithEnvironment.
What does Pipeline.ts depend on?
Pipeline.ts imports 72 module(s): ., AlignMethodCallScopes.ts, AlignReactiveScopesToBlockScopesHIR.ts, Environment, Environment.ts, EnvironmentConfig, FindContextIdentifiers.ts, FlattenReactiveLoopsHIR.ts, and 64 more.
What files import Pipeline.ts?
Pipeline.ts is imported by 2 file(s): Options.ts, Program.ts.
Where is Pipeline.ts in the architecture?
Pipeline.ts is located at compiler/packages/babel-plugin-react-compiler/src/Entrypoint/Pipeline.ts (domain: BabelCompiler, subdomain: Entrypoint, directory: compiler/packages/babel-plugin-react-compiler/src/Entrypoint).

Analyze Your Own Codebase

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

Try Supermodel Free