Home / File/ error.todo-functiondecl-hoisting.tsx — react Source File

error.todo-functiondecl-hoisting.tsx — react Source File

Architecture documentation for error.todo-functiondecl-hoisting.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.

File tsx TestingUtilities Fixtures 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5a406295_b765_055f_f533_870ea68c6456["error.todo-functiondecl-hoisting.tsx"]
  006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"]
  5a406295_b765_055f_f533_870ea68c6456 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05
  style 5a406295_b765_055f_f533_870ea68c6456 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import {Stringify} from 'shared-runtime';

/**
 * Fixture currently fails with
 * Found differences in evaluator results
 *   Non-forget (expected):
 *   (kind: ok) <div>{"result":{"value":2},"fn":{"kind":"Function","result":{"value":2}},"shouldInvokeFns":true}</div>
 *   Forget:
 *   (kind: exception) bar is not a function
 */
function Foo({value}) {
  const result = bar();
  function bar() {
    return {value};
  }
  return <Stringify result={result} fn={bar} shouldInvokeFns={true} />;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Foo,
  params: [{value: 2}],
};

Subdomains

Functions

Dependencies

  • shared-runtime

Frequently Asked Questions

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