diff options
Diffstat (limited to 'crates/ra_ide_api_light')
-rw-r--r-- | crates/ra_ide_api_light/src/lib.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/crates/ra_ide_api_light/src/lib.rs b/crates/ra_ide_api_light/src/lib.rs index 0d928745f..1c5fa0837 100644 --- a/crates/ra_ide_api_light/src/lib.rs +++ b/crates/ra_ide_api_light/src/lib.rs | |||
@@ -18,13 +18,6 @@ pub use crate::{ | |||
18 | }; | 18 | }; |
19 | 19 | ||
20 | #[derive(Debug)] | 20 | #[derive(Debug)] |
21 | pub struct LocalEdit { | ||
22 | pub label: String, | ||
23 | pub edit: ra_text_edit::TextEdit, | ||
24 | pub cursor_position: Option<TextUnit>, | ||
25 | } | ||
26 | |||
27 | #[derive(Debug)] | ||
28 | pub struct HighlightedRange { | 21 | pub struct HighlightedRange { |
29 | pub range: TextRange, | 22 | pub range: TextRange, |
30 | pub tag: &'static str, | 23 | pub tag: &'static str, |
@@ -36,14 +29,6 @@ pub enum Severity { | |||
36 | WeakWarning, | 29 | WeakWarning, |
37 | } | 30 | } |
38 | 31 | ||
39 | #[derive(Debug)] | ||
40 | pub struct Diagnostic { | ||
41 | pub range: TextRange, | ||
42 | pub msg: String, | ||
43 | pub severity: Severity, | ||
44 | pub fix: Option<LocalEdit>, | ||
45 | } | ||
46 | |||
47 | pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> { | 32 | pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> { |
48 | const BRACES: &[SyntaxKind] = | 33 | const BRACES: &[SyntaxKind] = |
49 | &[L_CURLY, R_CURLY, L_BRACK, R_BRACK, L_PAREN, R_PAREN, L_ANGLE, R_ANGLE]; | 34 | &[L_CURLY, R_CURLY, L_BRACK, R_BRACK, L_PAREN, R_PAREN, L_ANGLE, R_ANGLE]; |