mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-06 18:30:35 +00:00
remove comments
This commit is contained in:
parent
cacad220fa
commit
095f885665
1 changed files with 0 additions and 3 deletions
|
@ -22,7 +22,6 @@ impl Parser {
|
|||
let mut ast = Ast::default();
|
||||
let mut line_offsets = LineOffsets::new();
|
||||
|
||||
// First pass: collect line offsets
|
||||
for token in self.tokens.tokens() {
|
||||
if let TokenType::Newline = token.token_type() {
|
||||
if let Some(start) = token.start() {
|
||||
|
@ -32,10 +31,8 @@ impl Parser {
|
|||
}
|
||||
}
|
||||
|
||||
// Reset current position
|
||||
self.current = 0;
|
||||
|
||||
// Second pass: parse nodes
|
||||
while !self.is_at_end() {
|
||||
match self.next_node() {
|
||||
Ok(node) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue