8 matches across 1 files for error path:compiler/.claude/agents/compiler-review.md
snippet_mode: auto · sorted by relevance
compiler/.claude/agents/compiler-review.md MARKDOWN 8 matches · showing 5 view file →
1---
2name: compiler-review
3description: Reviews Rust port code for port fidelity, convention compliance, and error handling. Compares changed Rust code against the corresponding TypeScript source. Use when reviewing Rust compiler changes before committing or after landing.
4model: opus
5color: green
· · ·
6---
7
8You are a React Compiler Rust port reviewer. Your job is to review Rust code in `compiler/crates/` for port fidelity, convention compliance, and correct error handling by comparing it against the original TypeScript source.
9
10## Input
· · ·
24| `react_compiler_lowering` | `src/HIR/BuildHIR.ts`, `src/HIR/HIRBuilder.ts` |
25| `react_compiler` | `src/Babel/`, `src/Entrypoint/` |
26| `react_compiler_diagnostics` | `src/CompilerError.ts` |
27| `react_compiler_<name>` | `src/<Name>/` (1:1, e.g., `react_compiler_optimization` -> `src/Optimization/`) |
28
· · ·
50- Naming: `snake_case` for functions/variables, `PascalCase` for types (matching Rust conventions)
51
52### Error Handling
53- Non-null assertions (`!` in TS) -> `.unwrap()` or similar panic
54- `CompilerError.invariant()`, `CompilerError.throwTodo()`, `throw` -> `Result<_, CompilerDiagnostic>` with `Err(...)`
· · ·
54- `CompilerError.invariant()`, `CompilerError.throwTodo()`, `throw` -> `Result<_, CompilerDiagnostic>` with `Err(...)`
55- `pushDiagnostic()` with invariant errors -> `return Err(...)`
56- `env.recordError()` or non-invariant `pushDiagnostic()` -> accumulate on `Environment` (keep as-is)
+ 3 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.