mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Don't expose SyntaxKind from IDE API
SyntaxKind is somewhat of an internal type, but IDE is using it to basically specify an icon. Let's have a dedicated entity for this instead.
This commit is contained in:
parent
2465fa02b7
commit
55ba353b39
13 changed files with 337 additions and 239 deletions
|
@ -9,7 +9,7 @@ use syntax::{ast, match_ast, AstNode, SyntaxKind::*, SyntaxToken, TokenAtOffset,
|
|||
|
||||
use crate::{
|
||||
display::{ToNav, TryToNav},
|
||||
FilePosition, NavigationTarget, RangeInfo,
|
||||
FilePosition, NavigationTarget, RangeInfo, SymbolKind,
|
||||
};
|
||||
|
||||
// Feature: Go to Definition
|
||||
|
@ -86,7 +86,7 @@ fn self_to_nav_target(self_param: ast::SelfParam, file_id: FileId) -> Option<Nav
|
|||
full_range: self_param.syntax().text_range(),
|
||||
focus_range: Some(self_token.text_range()),
|
||||
name: self_token.text().clone(),
|
||||
kind: self_token.kind(),
|
||||
kind: SymbolKind::SelfParam,
|
||||
container_name: None,
|
||||
description: None,
|
||||
docs: None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue