Skip to content

Commit

Permalink
Keep <fn>
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy committed Nov 4, 2024
1 parent 1df5190 commit cfc14af
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/src/timeline/timeline.dart
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,5 @@ Frame? mostRelevantCaller({Trace? trace, Frame? fallback}) {
final preferredFrame =
testFileCaller ?? nonPackageFrames.lastOrNull ?? fallback;

if (preferredFrame != null) {
// remove any '<fn>' parts
final memberName = preferredFrame.member?.split('.').first ?? '';
return Frame(
preferredFrame.uri,
preferredFrame.line,
preferredFrame.column,
memberName,
);
}

return null;
return preferredFrame;
}

0 comments on commit cfc14af

Please sign in to comment.