diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_dot.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_pattern.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_struct_literal.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/goto_definition.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/hover.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/line_index.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide_api/src/symbol_index.rs | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_dot.rs b/crates/ra_ide_api/src/completion/complete_dot.rs index 31d5374ba..f54a02d1d 100644 --- a/crates/ra_ide_api/src/completion/complete_dot.rs +++ b/crates/ra_ide_api/src/completion/complete_dot.rs | |||
@@ -30,7 +30,7 @@ fn complete_fields(acc: &mut Completions, ctx: &CompletionContext, receiver: Ty) | |||
30 | acc.add_field(ctx, field, &a_ty.parameters); | 30 | acc.add_field(ctx, field, &a_ty.parameters); |
31 | } | 31 | } |
32 | } | 32 | } |
33 | // TODO unions | 33 | // FIXME unions |
34 | TypeCtor::Tuple => { | 34 | TypeCtor::Tuple => { |
35 | for (i, ty) in a_ty.parameters.iter().enumerate() { | 35 | for (i, ty) in a_ty.parameters.iter().enumerate() { |
36 | acc.add_pos_field(ctx, i, ty); | 36 | acc.add_pos_field(ctx, i, ty); |
diff --git a/crates/ra_ide_api/src/completion/complete_pattern.rs b/crates/ra_ide_api/src/completion/complete_pattern.rs index 3cf79c080..7abcd019b 100644 --- a/crates/ra_ide_api/src/completion/complete_pattern.rs +++ b/crates/ra_ide_api/src/completion/complete_pattern.rs | |||
@@ -5,7 +5,7 @@ pub(super) fn complete_pattern(acc: &mut Completions, ctx: &CompletionContext) { | |||
5 | if !ctx.is_pat_binding { | 5 | if !ctx.is_pat_binding { |
6 | return; | 6 | return; |
7 | } | 7 | } |
8 | // TODO: ideally, we should look at the type we are matching against and | 8 | // FIXME: ideally, we should look at the type we are matching against and |
9 | // suggest variants + auto-imports | 9 | // suggest variants + auto-imports |
10 | let names = ctx.resolver.all_names(ctx.db); | 10 | let names = ctx.resolver.all_names(ctx.db); |
11 | for (name, res) in names.into_iter() { | 11 | for (name, res) in names.into_iter() { |
diff --git a/crates/ra_ide_api/src/completion/complete_struct_literal.rs b/crates/ra_ide_api/src/completion/complete_struct_literal.rs index b75526282..f58bcd03e 100644 --- a/crates/ra_ide_api/src/completion/complete_struct_literal.rs +++ b/crates/ra_ide_api/src/completion/complete_struct_literal.rs | |||
@@ -26,7 +26,7 @@ pub(super) fn complete_struct_literal(acc: &mut Completions, ctx: &CompletionCon | |||
26 | } | 26 | } |
27 | } | 27 | } |
28 | 28 | ||
29 | // TODO unions | 29 | // FIXME unions |
30 | AdtDef::Enum(_) => (), | 30 | AdtDef::Enum(_) => (), |
31 | }; | 31 | }; |
32 | } | 32 | } |
diff --git a/crates/ra_ide_api/src/goto_definition.rs b/crates/ra_ide_api/src/goto_definition.rs index f94487d94..660b43cfa 100644 --- a/crates/ra_ide_api/src/goto_definition.rs +++ b/crates/ra_ide_api/src/goto_definition.rs | |||
@@ -117,7 +117,7 @@ pub(crate) fn reference_definition( | |||
117 | return Exact(nav); | 117 | return Exact(nav); |
118 | } | 118 | } |
119 | Some(Resolution::GenericParam(..)) => { | 119 | Some(Resolution::GenericParam(..)) => { |
120 | // TODO: go to the generic param def | 120 | // FIXME: go to the generic param def |
121 | } | 121 | } |
122 | Some(Resolution::SelfType(impl_block)) => { | 122 | Some(Resolution::SelfType(impl_block)) => { |
123 | let ty = impl_block.target_ty(db); | 123 | let ty = impl_block.target_ty(db); |
diff --git a/crates/ra_ide_api/src/hover.rs b/crates/ra_ide_api/src/hover.rs index f6443580d..3206e68b9 100644 --- a/crates/ra_ide_api/src/hover.rs +++ b/crates/ra_ide_api/src/hover.rs | |||
@@ -204,7 +204,7 @@ impl NavigationTarget { | |||
204 | /// | 204 | /// |
205 | /// e.g. `struct Name`, `enum Name`, `fn Name` | 205 | /// e.g. `struct Name`, `enum Name`, `fn Name` |
206 | fn description(&self, db: &RootDatabase) -> Option<String> { | 206 | fn description(&self, db: &RootDatabase) -> Option<String> { |
207 | // TODO: After type inference is done, add type information to improve the output | 207 | // FIXME: After type inference is done, add type information to improve the output |
208 | let node = self.node(db)?; | 208 | let node = self.node(db)?; |
209 | 209 | ||
210 | fn visit_ascribed_node<T>(node: &T, prefix: &str) -> Option<String> | 210 | fn visit_ascribed_node<T>(node: &T, prefix: &str) -> Option<String> |
diff --git a/crates/ra_ide_api/src/line_index.rs b/crates/ra_ide_api/src/line_index.rs index bf004c33a..fd33d6767 100644 --- a/crates/ra_ide_api/src/line_index.rs +++ b/crates/ra_ide_api/src/line_index.rs | |||
@@ -77,7 +77,7 @@ impl LineIndex { | |||
77 | } | 77 | } |
78 | 78 | ||
79 | pub fn offset(&self, line_col: LineCol) -> TextUnit { | 79 | pub fn offset(&self, line_col: LineCol) -> TextUnit { |
80 | //TODO: return Result | 80 | //FIXME: return Result |
81 | let col = self.utf16_to_utf8_col(line_col.line, line_col.col_utf16); | 81 | let col = self.utf16_to_utf8_col(line_col.line, line_col.col_utf16); |
82 | self.newlines[line_col.line as usize] + col | 82 | self.newlines[line_col.line as usize] + col |
83 | } | 83 | } |
diff --git a/crates/ra_ide_api/src/symbol_index.rs b/crates/ra_ide_api/src/symbol_index.rs index 23c743bef..0978d164a 100644 --- a/crates/ra_ide_api/src/symbol_index.rs +++ b/crates/ra_ide_api/src/symbol_index.rs | |||
@@ -68,7 +68,7 @@ fn file_symbols(db: &impl SymbolsDatabase, file_id: FileId) -> Arc<SymbolIndex> | |||
68 | 68 | ||
69 | let symbols = source_file_to_file_symbols(&source_file, file_id); | 69 | let symbols = source_file_to_file_symbols(&source_file, file_id); |
70 | 70 | ||
71 | // TODO: add macros here | 71 | // FIXME: add macros here |
72 | 72 | ||
73 | Arc::new(SymbolIndex::new(symbols)) | 73 | Arc::new(SymbolIndex::new(symbols)) |
74 | } | 74 | } |