Home / Type/ NonLocalBinding Type — react Architecture

NonLocalBinding Type — react Architecture

Architecture documentation for the NonLocalBinding type/interface in HIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  9eee9ec0_cbee_960c_be31_a00093109eb3["NonLocalBinding"]
  18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"]
  9eee9ec0_cbee_960c_be31_a00093109eb3 -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec
  style 9eee9ec0_cbee_960c_be31_a00093109eb3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1239–1249

export type NonLocalBinding =
  // `import Foo from 'foo'`: name=Foo, module=foo
  | {kind: 'ImportDefault'; name: string; module: string}
  // `import * as Foo from 'foo'`: name=Foo, module=foo
  | {kind: 'ImportNamespace'; name: string; module: string}
  // `import {bar as baz} from 'foo'`
  | NonLocalImportSpecifier
  // let, const, function, etc declared in the module but outside the current component/hook
  | {kind: 'ModuleLocal'; name: string}
  // an unresolved binding
  | {kind: 'Global'; name: string};

Frequently Asked Questions

What is the NonLocalBinding type?
NonLocalBinding is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is NonLocalBinding defined?
NonLocalBinding is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1239.

Analyze Your Own Codebase

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

Try Supermodel Free