Remove parser dependency from ruff-python-ast (#6096)

This commit is contained in:
Micha Reiser
2023-07-26 17:47:22 +02:00
committed by GitHub
parent 99127243f4
commit 2cf00fee96
658 changed files with 1714 additions and 1546 deletions

View File

@@ -1,14 +1,15 @@
use std::iter::Peekable;
use ruff_text_size::{TextRange, TextSize};
use rustpython_parser::ast::{
use rustpython_ast::{
Alias, Arg, ArgWithDefault, Arguments, Comprehension, Decorator, ElifElseClause, ExceptHandler,
Expr, Keyword, MatchCase, Mod, Pattern, Ranged, Stmt, TypeParam, WithItem,
};
use ruff_formatter::{SourceCode, SourceCodeSlice};
use ruff_python_ast::node::AnyNodeRef;
use ruff_python_ast::source_code::{CommentRanges, Locator};
use ruff_python_index::CommentRanges;
use ruff_source_file::Locator;
// The interface is designed to only export the members relevant for iterating nodes in
// pre-order.
#[allow(clippy::wildcard_imports)]