sway_lsp/capabilities/code_actions/constant_decl/mod.rs
use crate::capabilities::code_actions::{CodeAction, CodeActionContext};
use lsp_types::CodeActionOrCommand;
use sway_core::language::ty;
use super::common::basic_doc_comment::BasicDocCommentCodeAction;
pub(crate) fn code_actions(
decl: &ty::TyConstantDecl,
ctx: &CodeActionContext,
) -> Vec<CodeActionOrCommand> {
vec![BasicDocCommentCodeAction::new(ctx, decl).code_action()]
}