refactor: improving names of matched structs and documenting matchers (#1022)

This commit is contained in:
Myriad-Dreamin 2024-12-18 16:35:15 +08:00 committed by GitHub
parent 902bd17cba
commit ad0c1e8aca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 391 additions and 412 deletions

View file

@ -1,6 +1,6 @@
use std::ops::Range;
use crate::{prelude::*, syntax::DerefTarget, SemanticRequest};
use crate::{prelude::*, syntax::SyntaxClass, SemanticRequest};
/// The [`textDocument/declaration`] request asks the server for the declaration
/// location of a symbol at a given text document position.
@ -39,7 +39,7 @@ impl SemanticRequest for GotoDeclarationRequest {
fn find_declarations(
_ctx: &LocalContext,
_expr_info: Arc<crate::syntax::ExprInfo>,
_deref_target: DerefTarget<'_>,
_syntax: SyntaxClass<'_>,
) -> Option<Vec<Range<usize>>> {
todo!()
}