mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
doc parsing events
This commit is contained in:
parent
b01e707dba
commit
df591a1e48
4 changed files with 71 additions and 43 deletions
|
@ -70,7 +70,7 @@ impl<'t> ParserInput<'t> {
|
|||
self.start_offsets[idx]
|
||||
}
|
||||
|
||||
/// Get the raw text of a toen at given input position.
|
||||
/// Get the raw text of a token at given input position.
|
||||
pub fn token_text(&self, pos: InputPosition) -> &'t str {
|
||||
let idx = pos.0 as usize;
|
||||
if !(idx < self.tokens.len()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue