mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Drop and mark unused symbols
This commit is contained in:
parent
f3cfd07ad8
commit
ac179b5fdc
3 changed files with 9 additions and 9 deletions
|
@ -21,9 +21,12 @@ use roc_region::all::{Loc, Region};
|
|||
use tower_lsp::lsp_types::SemanticTokenType;
|
||||
|
||||
macro_rules! tokens {
|
||||
($($token:ident => $lsp_token:literal),* $(,)?) => {
|
||||
($($(#[$meta:meta])* $token:ident => $lsp_token:literal),* $(,)?) => {
|
||||
pub enum Token {
|
||||
$($token),*
|
||||
$(
|
||||
$(#[$meta])*
|
||||
$token
|
||||
),*
|
||||
}
|
||||
|
||||
fn _non_redundant_lsp_tokens() {
|
||||
|
@ -47,7 +50,9 @@ tokens! {
|
|||
Module => "namespace",
|
||||
Type => "type",
|
||||
Ability => "interface",
|
||||
#[allow(unused)]
|
||||
TypeVariable => "typeParameter",
|
||||
#[allow(unused)]
|
||||
Parameter => "parameter",
|
||||
Variable => "variable",
|
||||
Field => "property",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue