mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Remove intra-crate facade from completions
This commit is contained in:
parent
4d333ebb63
commit
8efe43245b
@ -16,7 +16,15 @@ pub(crate) mod mod_;
|
|||||||
|
|
||||||
use hir::{ModPath, ScopeDef, Type};
|
use hir::{ModPath, ScopeDef, Type};
|
||||||
|
|
||||||
use crate::{item::Builder, render::*, CompletionContext, CompletionItem};
|
use crate::{
|
||||||
|
item::Builder,
|
||||||
|
render::{
|
||||||
|
const_::render_const, enum_variant::render_enum_variant, function::render_fn,
|
||||||
|
macro_::render_macro, render_field, render_resolution, render_tuple_field,
|
||||||
|
type_alias::render_type_alias, RenderContext,
|
||||||
|
},
|
||||||
|
CompletionContext, CompletionItem,
|
||||||
|
};
|
||||||
|
|
||||||
/// Represents an in-progress set of completions being built.
|
/// Represents an in-progress set of completions being built.
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
//! `render` module provides utilities for rendering completion suggestions
|
//! `render` module provides utilities for rendering completion suggestions
|
||||||
//! into code pieces that will be presented to user.
|
//! into code pieces that will be presented to user.
|
||||||
|
|
||||||
mod macro_;
|
pub(crate) mod macro_;
|
||||||
mod function;
|
pub(crate) mod function;
|
||||||
|
pub(crate) mod enum_variant;
|
||||||
|
pub(crate) mod const_;
|
||||||
|
pub(crate) mod type_alias;
|
||||||
|
|
||||||
mod builder_ext;
|
mod builder_ext;
|
||||||
mod enum_variant;
|
|
||||||
mod const_;
|
|
||||||
mod type_alias;
|
|
||||||
|
|
||||||
use hir::{Documentation, HasAttrs, HirDisplay, Mutability, ScopeDef, Type};
|
use hir::{Documentation, HasAttrs, HirDisplay, Mutability, ScopeDef, Type};
|
||||||
use ide_db::RootDatabase;
|
use ide_db::RootDatabase;
|
||||||
@ -18,10 +19,7 @@ use crate::{
|
|||||||
CompletionScore,
|
CompletionScore,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub(crate) use crate::render::{
|
use crate::render::{enum_variant::render_enum_variant, function::render_fn, macro_::render_macro};
|
||||||
const_::render_const, enum_variant::render_enum_variant, function::render_fn,
|
|
||||||
macro_::render_macro, type_alias::render_type_alias,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub(crate) fn render_field<'a>(
|
pub(crate) fn render_field<'a>(
|
||||||
ctx: RenderContext<'a>,
|
ctx: RenderContext<'a>,
|
||||||
|
Loading…
Reference in New Issue
Block a user