3 ms·
My understanding of rust-analyzer's internals are limited, but I believe https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/parser/src/parser.rs#
by steveklabnik 6y ago
My understanding of rust-analyzer's internals are limited, but I believe https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/parser/src/parser.rs#L163 https://github.com/rust-analyzer/rust-analyzer/blob/master/c... is what it does here; that is, it keeps track of the start and ending positions as it goes https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/parser/src/parser.rs#L297 https://github.com/rust-analyzer/rust-analyzer/blob/master/c...