Function
insert_row
(stmt: &mut Statement<'_>, row: &ImportRow)
Source from the content-addressed store, hash-verified
| 116 | } |
| 117 | |
| 118 | fn insert_row(stmt: &mut Statement<'_>, row: &ImportRow) -> Result<()> { |
| 119 | stmt.execute(params![ |
| 120 | row.file_path, |
| 121 | row.line_number, |
| 122 | row.module, |
| 123 | row.name.as_deref(), |
| 124 | row.alias.as_deref(), |
| 125 | row.kind, |
| 126 | if row.is_default { 1 } else { 0 }, |
| 127 | if row.is_wildcard { 1 } else { 0 }, |
| 128 | ])?; |
| 129 | Ok(()) |
| 130 | } |
| 131 | |
| 132 | fn extract_imports_from_tree( |
| 133 | language: TsLanguageKind, |
Tested by
no test coverage detected