MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / readRustFile

Function readRustFile

src/resolution/tauri-synthesizer.ts:518–524  ·  view source on GitHub ↗
(file: string, source: string, ctx: ResolutionContext)

Source from the content-addressed store, hash-verified

516}
517
518function 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
526function readEventStructs(rust: RustFile, out: RustSide): void {
527 if (!rust.source.includes('tauri_specta')) return;

Callers 1

readRustSideFunction · 0.85

Calls 5

stripCommentsForRegexFunction · 0.90
blankStringContentsFunction · 0.90
makeLineAtFunction · 0.90
makeOffsetOfLineFunction · 0.85
getNodesInFileMethod · 0.65

Tested by

no test coverage detected