Component
Foundation / Source
Task
Implement line/column lookup from byte offset.
Acceptance Criteria
Verify
let src = Source::new("test", "line1\nline2\nline3");
assert_eq!(src.line_col(6), (2, 1)); // start of line2
assert_eq!(src.line_content(2), "line2");
Security Testing (REQUIRED)
Ref: FOUNDATION.md
Component
Foundation / Source
Task
Implement line/column lookup from byte offset.
Acceptance Criteria
line_col(offset: u32) -> (u32, u32)returns 1-indexed line and columnline_start(line: u32) -> u32returns byte offset of line startline_content(line: u32) -> &strreturns the line contentVerify
Security Testing (REQUIRED)
Ref: FOUNDATION.md