MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / first_line

Method first_line

src/extraction/fsharp_extractor.rs:504–507  ·  view source on GitHub ↗
(state: &ExtractionState, node: TsNode<'_>)

Source from the content-addressed store, hash-verified

502 }
503
504 fn first_line(state: &ExtractionState, node: TsNode<'_>) -> Option<String> {
505 let text = state.node_text(node);
506 text.lines().next().map(|l| l.trim().to_string())
507 }
508
509 fn build_result(state: ExtractionState, start: Instant) -> ExtractionResult {
510 ExtractionResult {

Callers

nothing calls this directly

Calls 1

node_textMethod · 0.45

Tested by

no test coverage detected