mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Remove LocalEdit usage
This commit is contained in:
parent
0c15deac76
commit
a656b891fb
3 changed files with 55 additions and 70 deletions
|
@ -17,13 +17,6 @@ pub use crate::{
|
|||
structure::{file_structure, StructureNode},
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct LocalEdit {
|
||||
pub label: String,
|
||||
pub edit: ra_text_edit::TextEdit,
|
||||
pub cursor_position: Option<TextUnit>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct HighlightedRange {
|
||||
pub range: TextRange,
|
||||
|
@ -36,14 +29,6 @@ pub enum Severity {
|
|||
WeakWarning,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Diagnostic {
|
||||
pub range: TextRange,
|
||||
pub msg: String,
|
||||
pub severity: Severity,
|
||||
pub fix: Option<LocalEdit>,
|
||||
}
|
||||
|
||||
pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> {
|
||||
const BRACES: &[SyntaxKind] =
|
||||
&[L_CURLY, R_CURLY, L_BRACK, R_BRACK, L_PAREN, R_PAREN, L_ANGLE, R_ANGLE];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue