rust-analyzer/crates/completion/src
Nick Spain 14d0db0759 HasSource::source_old -> HasSource::source for places where proc-macros were special cased
In #6901 some special case handling for proc-macros was introduced to
prevent panicing as they have no AST. Now the new HasSource::source
method is used that returns an option.

Generally this was a pretty trivial change, the only thing of much
interest is that `hir::MacroDef` now implements `TryToNav` not `ToNav`
as this allows us to handle `HasSource::source` now returning an option.
2021-01-02 21:53:52 +11:00
..
completions Mark HasSource::source_old as deprecated but allow at all call sites 2021-01-02 21:53:51 +11:00
render HasSource::source_old -> HasSource::source for places where proc-macros were special cased 2021-01-02 21:53:52 +11:00
completions.rs Add completions for patterns 2020-12-20 18:19:23 +01:00
config.rs Normalize spelling to American English 2020-12-10 17:51:56 +03:00
context.rs Add completions for patterns 2020-12-20 18:19:23 +01:00
generated_lint_completions.rs Reorganize completions structure 2020-10-25 10:59:15 +03:00
item.rs Minor, more orthogonal code 2020-12-10 18:01:02 +03:00
lib.rs Avoid a couple of allocations 2020-12-29 14:35:49 +02:00
patterns.rs Extract call_info and completion into separate crates 2020-10-18 13:09:00 +03:00
render.rs Reduce some more code duplication 2020-12-22 19:00:38 +01:00
test_utils.rs Keep the original completion order in tests 2020-12-19 13:18:40 +02:00