assertValidFireImportReference() — react Function Reference
Architecture documentation for the assertValidFireImportReference() function in ValidateNoUntransformedReferences.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD b787f702_4820_222e_b5ea_b5e4b91c803c["assertValidFireImportReference()"] 93f3a2c7_a7ce_3c94_87fe_ee7d66d9b64b["ValidateNoUntransformedReferences.ts"] b787f702_4820_222e_b5ea_b5e4b91c803c -->|defined in| 93f3a2c7_a7ce_3c94_87fe_ee7d66d9b64b 13979066_5844_9e9b_3dd1_d031ec964de0["matchCompilerDiagnostic()"] b787f702_4820_222e_b5ea_b5e4b91c803c -->|calls| 13979066_5844_9e9b_3dd1_d031ec964de0 fd74cbf5_70fe_dfe3_61f3_388ace207e52["throwInvalidReact()"] b787f702_4820_222e_b5ea_b5e4b91c803c -->|calls| fd74cbf5_70fe_dfe3_61f3_388ace207e52 style b787f702_4820_222e_b5ea_b5e4b91c803c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Entrypoint/ValidateNoUntransformedReferences.ts lines 116–143
function assertValidFireImportReference(
paths: Array<NodePath<t.Node>>,
context: TraversalState,
): void {
if (paths.length > 0) {
const maybeErrorDiagnostic = matchCompilerDiagnostic(
paths[0],
context.transformErrors,
);
throwInvalidReact(
{
category: ErrorCategory.Fire,
reason: '[Fire] Untransformed reference to compiler-required feature.',
description:
'Either remove this `fire` call or ensure it is successfully transformed by the compiler' +
(maybeErrorDiagnostic != null ? ` ${maybeErrorDiagnostic}` : ''),
details: [
{
kind: 'error',
message: 'Untransformed `fire` call',
loc: paths[0].node.loc ?? GeneratedSource,
},
],
},
context,
);
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does assertValidFireImportReference() do?
assertValidFireImportReference() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/ValidateNoUntransformedReferences.ts.
Where is assertValidFireImportReference() defined?
assertValidFireImportReference() is defined in compiler/packages/babel-plugin-react-compiler/src/Entrypoint/ValidateNoUntransformedReferences.ts at line 116.
What does assertValidFireImportReference() call?
assertValidFireImportReference() calls 2 function(s): matchCompilerDiagnostic, throwInvalidReact.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free