pub fn lookup_token<'a>(
map: &'a SourceMap,
line: u32,
col: u32,
) -> Option<Token<'a>>Expand description
if map_token is not exact match, we should use the token next to it to make sure the line mapping is correct. this is because lookup_token of SourceMap will return the last found token instead of the next if it can’t find exact match, which leads to wrong line mapping(mapping to previous line).