Add API for detecting server→client component boundaries in Turbopack
Implemented JSX location extraction infrastructure to enable TypeScript
props type analysis for server→client boundaries.
**Rust/Turbopack Layer:**
- Added SWC-based JSX element parser to find client component usage in server files
- Extract location information (file, line, column, span) for JSX call sites
- Added JsxElementLocation struct to boundary data
**NAPI Layer:**
- Extended NapiBoundary with jsxLocation field
- Added NapiJsxLocation struct with span information
- Pass JSX location through Rust→TypeScript bridge
**TypeScript Layer:**
- Updated hot reloader to log JSX location when available
- Generated TypeScript types include jsxLocation field
**How it works:**
1. Turbopack detects server→client boundaries (existing functionality)
2. For each boundary, parse server component source with SWC
3. Find JSX element matching client component name
4. Extract location where client component is used
5. Pass location to TypeScript for future props type analysis
**Next steps:**
- Use TypeScript compiler API to resolve props type at JSX location
- Analyze prop types for sensitive data patterns
- Generate warnings or recommendations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>