Skip to content

Commit

Permalink
use token.name in cabi
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Oct 11, 2022
1 parent f1412ef commit 5b9bedd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions symbolic-cabi/src/sourcemapcache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ ffi_fn! {
fn make_token_match(token: SourceLocation, context_lines: u32) -> *mut SymbolicSmTokenMatch {
let function_name = match token.scope() {
ScopeLookupResult::NamedScope(name) => name,
ScopeLookupResult::AnonymousScope => "<anonymous>",
ScopeLookupResult::Unknown => "<unknown>",
ScopeLookupResult::AnonymousScope => token.name().unwrap_or("<anonymous>"),
ScopeLookupResult::Unknown => token.name().unwrap_or("<unknown>"),
};

let context_line = token.line_contents().unwrap_or_default();
Expand Down

0 comments on commit 5b9bedd

Please sign in to comment.