(file: string, source: string, ctx: ResolutionContext)
| 516 | } |
| 517 | |
| 518 | function readRustFile(file: string, source: string, ctx: ResolutionContext): RustFile { |
| 519 | const text = stripCommentsForRegex(source, 'rust'); |
| 520 | return { |
| 521 | file, source, text, code: blankStringContents(text), nodes: ctx.getNodesInFile(file), |
| 522 | lineAt: makeLineAt(source, 1), offsetOfLine: makeOffsetOfLine(source), |
| 523 | }; |
| 524 | } |
| 525 | |
| 526 | function readEventStructs(rust: RustFile, out: RustSide): void { |
| 527 | if (!rust.source.includes('tauri_specta')) return; |
no test coverage detected