9use react_compiler_diagnostics::CompilerDiagnostic;
10use react_compiler_diagnostics::CompilerDiagnosticDetail;
11▶use react_compiler_diagnostics::CompilerError;
12use react_compiler_diagnostics::CompilerErrorDetail;
13use react_compiler_diagnostics::ErrorCategory;
· · ·
12▶use react_compiler_diagnostics::CompilerErrorDetail;
13use react_compiler_diagnostics::ErrorCategory;
14use react_compiler_hir::environment::Environment;
· · ·
13▶use react_compiler_diagnostics::ErrorCategory;
14use react_compiler_hir::environment::Environment;
15use react_compiler_hir::*;
· · ·
52/// Serialize an expression to a serde_json::Value for UnsupportedNode's original_node.
53/// Returns None if serialization fails (should not happen for valid AST nodes).
54▶/// This should ONLY be called on error/bail paths — never eagerly before deciding
55/// to create an UnsupportedNode.
56fn serialize_expression(
· · ·
146 scope_info: &ScopeInfo,
147 function_scope: ScopeId,
148▶) -> Result<(), CompilerError> {
149 let Some(scope) = scope_info.scopes.get(function_scope.0 as usize) else {
150 return Ok(());
+ 176 more matches in this file