aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api_light/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api_light/src/lib.rs')
-rw-r--r--crates/ra_ide_api_light/src/lib.rs15
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)]
21pub struct LocalEdit {
22 pub label: String,
23 pub edit: ra_text_edit::TextEdit,
24 pub cursor_position: Option<TextUnit>,
25}
26
27#[derive(Debug)]
28pub struct HighlightedRange { 21pub 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)]
40pub struct Diagnostic {
41 pub range: TextRange,
42 pub msg: String,
43 pub severity: Severity,
44 pub fix: Option<LocalEdit>,
45}
46
47pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> { 32pub 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];