Home / Function/ pushDiagnostic() — react Function Reference

pushDiagnostic() — react Function Reference

Architecture documentation for the pushDiagnostic() function in CompilerError.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  02303def_636f_c5b3_a751_1cf138fcea69["pushDiagnostic()"]
  e51fd0d2_bb38_cc97_7763_efe37f300a47["CompilerError"]
  02303def_636f_c5b3_a751_1cf138fcea69 -->|defined in| e51fd0d2_bb38_cc97_7763_efe37f300a47
  041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"]
  041ca752_10c1_3cda_1f5c_02f44a01310e -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  eaa25847_803a_a160_25ce_fa2699f69d1c["throwDiagnostic()"]
  eaa25847_803a_a160_25ce_fa2699f69d1c -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  d31deb45_fb36_194b_4bb5_e81a98b6c9bd["suppressionsToCompilerError()"]
  d31deb45_fb36_194b_4bb5_e81a98b6c9bd -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  f214c28b_2f6d_b5a3_71e1_9a69d9b50455["lower()"]
  f214c28b_2f6d_b5a3_71e1_9a69d9b50455 -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  9e5aefd1_7874_4324_24ab_a9f3d944decf["validateIdentifierName()"]
  9e5aefd1_7874_4324_24ab_a9f3d944decf -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  39c5a476_7a02_eb77_deeb_828d88fc0da0["extractManualMemoizationArgs()"]
  39c5a476_7a02_eb77_deeb_828d88fc0da0 -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  dad92af5_71c7_94b3_8cce_ac3af87f3e61["dropManualMemoization()"]
  dad92af5_71c7_94b3_8cce_ac3af87f3e61 -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  fc22e84f_49a6_8d04_faba_43cbf926c0aa["computeEffectsForLegacySignature()"]
  fc22e84f_49a6_8d04_faba_43cbf926c0aa -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  46f23ae0_a9cb_8a6e_401f_cd99f2f91c00["validateExhaustiveDependencies()"]
  46f23ae0_a9cb_8a6e_401f_cd99f2f91c00 -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  42a1b6ad_eddb_6bd3_4831_1d199766f971["validateLocalsNotReassignedAfterRender()"]
  42a1b6ad_eddb_6bd3_4831_1d199766f971 -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  176abc6d_b49b_3a9c_1432_7b5b6d45f2ac["getContextReassignment()"]
  176abc6d_b49b_3a9c_1432_7b5b6d45f2ac -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  8014ef2c_7e1b_b1da_b888_615d609f3c01["validateEffect()"]
  8014ef2c_7e1b_b1da_b888_615d609f3c01 -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  58861cab_871f_3d90_099d_42afe0e9f6b3["validateNoFreezingKnownMutableFunctions()"]
  58861cab_871f_3d90_099d_42afe0e9f6b3 -->|calls| 02303def_636f_c5b3_a751_1cf138fcea69
  style 02303def_636f_c5b3_a751_1cf138fcea69 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts lines 438–444

  pushDiagnostic(diagnostic: CompilerDiagnostic): void {
    if (diagnostic.severity === ErrorSeverity.Off) {
      this.disabledDetails.push(diagnostic);
    } else {
      this.details.push(diagnostic);
    }
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does pushDiagnostic() do?
pushDiagnostic() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts.
Where is pushDiagnostic() defined?
pushDiagnostic() is defined in compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts at line 438.
What does pushDiagnostic() call?
pushDiagnostic() calls 1 function(s): push.
What calls pushDiagnostic()?
pushDiagnostic() is called by 28 function(s): computeEffectsForLegacySignature, dropManualMemoization, extractManualMemoizationArgs, getContextReassignment, guardCheck, invariant, lower, suppressionsToCompilerError, and 20 more.

Analyze Your Own Codebase

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

Try Supermodel Free