11use indexmap::IndexMap;
12use react_compiler_ast::scope::ScopeInfo;
13▶use react_compiler_diagnostics::CompilerError;
14use react_compiler_hir::ReactFunctionType;
15use react_compiler_hir::environment::Environment;
· · ·
20
21use super::compile_result::CodegenFunction;
22▶use super::compile_result::CompilerErrorDetailInfo;
23use super::compile_result::CompilerErrorItemInfo;
24use super::compile_result::DebugLogEntry;
· · ·
23▶use super::compile_result::CompilerErrorItemInfo;
24use super::compile_result::DebugLogEntry;
25use super::compile_result::LoggerPosition;
· · ·
43 env_config: &EnvironmentConfig,
44 context: &mut ProgramContext,
45▶) -> Result<CodegenFunction, CompilerError> {
46 let mut env = Environment::with_config(env_config.clone());
47 env.fn_type = fn_type;
· · ·
69 }
70
71▶ // Check for Invariant errors after lowering, before logging HIR.
72 // In TS, Invariant errors throw from recordError(), aborting lower() before
73 // the HIR entry is logged. The thrown error contains ONLY the Invariant error,
+ 53 more matches in this file