mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
parent
2b69c84396
commit
fdbd6bb11a
171 changed files with 419 additions and 29 deletions
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_db::{FilePosition, FileRange};
|
||||
|
||||
use crate::{db::RootDatabase, SourceChange, SourceFileEdit};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{
|
||||
algo::find_node_at_offset,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use std::{fmt, sync::Arc, time};
|
||||
|
||||
use ra_db::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
mod completion_item;
|
||||
mod completion_context;
|
||||
mod presentation;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::{Adt, Ty, TypeCtor};
|
||||
|
||||
use crate::completion::completion_item::CompletionKind;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_syntax::{
|
||||
algo::visit::{visitor_ctx, VisitorCtx},
|
||||
ast, AstNode,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_syntax::{
|
||||
algo::visit::{visitor, Visitor},
|
||||
ast::{self, LoopBodyOwner},
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::completion::{CompletionContext, Completions};
|
||||
|
||||
pub(super) fn complete_macro_in_item_position(acc: &mut Completions, ctx: &CompletionContext) {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::{Adt, Either, PathResolution};
|
||||
use ra_syntax::AstNode;
|
||||
use test_utils::tested_by;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::completion::{CompletionContext, Completions};
|
||||
|
||||
/// Completes constats and paths in patterns.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::{
|
||||
completion::{
|
||||
completion_context::CompletionContext,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::Substs;
|
||||
|
||||
use crate::completion::{CompletionContext, Completions};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::Substs;
|
||||
|
||||
use crate::completion::{CompletionContext, Completions};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_assists::auto_import_text_edit;
|
||||
use ra_syntax::{ast, AstNode, SmolStr};
|
||||
use ra_text_edit::TextEditBuilder;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::completion::{
|
||||
completion_item::Builder, CompletionContext, CompletionItem, CompletionItemKind,
|
||||
CompletionKind, Completions,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_syntax::{
|
||||
algo::{find_covering_element, find_node_at_offset},
|
||||
ast, AstNode, Parse, SourceFile,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use std::fmt;
|
||||
|
||||
use hir::Documentation;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
//! This modules takes care of rendering various definitions as completion items.
|
||||
|
||||
use hir::{Docs, HasSource, HirDisplay, ScopeDef, Ty, TypeWalk};
|
||||
use join_to_string::join;
|
||||
use ra_syntax::ast::NameOwner;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use ra_db::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use std::cell::RefCell;
|
||||
|
||||
use hir::diagnostics::{AstDiagnostic, Diagnostic as _, DiagnosticSink};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use std::fmt::{self, Display};
|
||||
|
||||
use hir::{Docs, Documentation, HasSource};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::{AssocItem, FieldSource, HasSource, ModuleSource};
|
||||
use ra_db::{FileId, SourceDatabase};
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use format_buf::format;
|
||||
use ra_syntax::ast::{self, AstNode, NameOwner, TypeAscriptionOwner, VisibilityOwner};
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::TextRange;
|
||||
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{
|
||||
algo::find_covering_element,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use rustc_hash::FxHashMap;
|
||||
|
||||
/// Feature flags hold fine-grained toggles for all *user-visible* features of
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use rustc_hash::FxHashSet;
|
||||
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_db::{FileId, SourceDatabase};
|
||||
use ra_syntax::{
|
||||
algo::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{ast, AstNode};
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::{Adt, HasSource, HirDisplay};
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::{db::HirDatabase, ApplicationTy, FromSource, Ty, TypeCtor};
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{algo::find_node_at_offset, ast, AstNode};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::{db::RootDatabase, FileId};
|
||||
use hir::{HirDisplay, SourceAnalyzer, Ty};
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use itertools::Itertools;
|
||||
use ra_fmt::{compute_ws, extract_trivial_expression};
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::TextUnit;
|
||||
use rustc_hash::FxHashMap;
|
||||
use superslice::Ext;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::{line_index::Utf16Char, LineCol, LineIndex};
|
||||
use ra_syntax::{TextRange, TextUnit};
|
||||
use ra_text_edit::{AtomTextEdit, TextEdit};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! See test_utils/src/marks.rs
|
||||
|
||||
test_utils::marks!(
|
||||
inserts_parens_for_function_calls
|
||||
goto_definition_works_for_macros
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_syntax::{ast::AstNode, SourceFile, SyntaxKind, TextUnit, T};
|
||||
|
||||
pub fn matching_brace(file: &SourceFile, offset: TextUnit) -> Option<TextUnit> {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use relative_path::RelativePathBuf;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::Either;
|
||||
use ra_syntax::{ast, AstNode, AstPtr};
|
||||
use test_utils::tested_by;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_db::{CrateId, FileId, FilePosition};
|
||||
|
||||
use crate::{db::RootDatabase, NavigationTarget};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use hir::{Either, ModuleSource};
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{algo::find_node_at_offset, ast, AstNode, SourceFile, SyntaxNode};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use itertools::Itertools;
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use std::{fmt, iter::FromIterator, sync::Arc};
|
||||
|
||||
use hir::MacroFile;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use rustc_hash::{FxHashMap, FxHashSet};
|
||||
|
||||
use hir::{Mutability, Ty};
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use crate::db::RootDatabase;
|
||||
use ra_db::SourceDatabase;
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_syntax::{SourceFile, TextUnit};
|
||||
use ra_text_edit::TextEdit;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
use ra_db::{FilePosition, SourceDatabase};
|
||||
use ra_fmt::leading_indent;
|
||||
use ra_syntax::{
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
//! FIXME: write short doc here
|
||||
|
||||
#[cfg(not(feature = "wasm"))]
|
||||
pub use std::time::Instant;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue