Home / File/ constant-propagation-template-literal.js — react Source File

constant-propagation-template-literal.js — react Source File

Architecture documentation for constant-propagation-template-literal.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  0eabb14a_3166_713b_2267_06b3b1a26562["constant-propagation-template-literal.js"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  0eabb14a_3166_713b_2267_06b3b1a26562 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 0eabb14a_3166_713b_2267_06b3b1a26562 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// @enablePreserveExistingMemoizationGuarantees:false
import {Stringify, identity} from 'shared-runtime';

function foo() {
  try {
    identity(`${Symbol('0')}`); // Uncaught TypeError: Cannot convert a Symbol value to a string (leave as is)
  } catch {}

  return (
    <Stringify
      value={[
        `` === '',
        `\n` === '\n',
        `a\nb`,
        `\n`,
        `a${1}b`,
        ` abc \u0041\n\u000a\ŧ`,
        `abc${1}def`,
        `abc${1}def${2}`,
        `abc${1}def${2}ghi`,
        `a${1 + 3}b${``}c${'d' + `e${2 + 4}f`}`,
        `1${2}${Math.sin(0)}`,
        `${NaN}`,
        `${Infinity}`,
        `${-Infinity}`,
        `${Number.MAX_SAFE_INTEGER}`,
        `${Number.MIN_SAFE_INTEGER}`,
        `${Number.MAX_VALUE}`,
        `${Number.MIN_VALUE}`,
        `${-0}`,
        `
        `,
        `${{}}`,
        `${[1, 2, 3]}`,
        `${true}`,
        `${false}`,
        `${null}`,
        `${undefined}`,
        `123456789${0}`,
        `${0}123456789`,
        `${0}123456789${0}`,
        `${0}1234${5}6789${0}`,
        `${0}1234${`${0}123456789${`${0}123456789${0}`}`}6789${0}`,
        `${0}1234${`${0}123456789${`${identity(0)}`}`}6789${0}`,
        `${`${`${`${0}`}`}`}`,
        `${`${`${`${''}`}`}`}`,
        `${`${`${`${identity('')}`}`}`}`,
      ]}
    />
  );
}

export const FIXTURE_ENTRYPOINT = {
  fn: foo,
  params: [],
  isComponent: false,
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

What does constant-propagation-template-literal.js do?
constant-propagation-template-literal.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in constant-propagation-template-literal.js?
constant-propagation-template-literal.js defines 1 function(s): foo.
What does constant-propagation-template-literal.js depend on?
constant-propagation-template-literal.js imports 1 module(s): shared-runtime.
Where is constant-propagation-template-literal.js in the architecture?
constant-propagation-template-literal.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/constant-propagation-template-literal.js (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