Files
NapCatQQ/.pnpm-store/v3/files/d2/bd2c8622a92dbe693c09a0e2aa5fff91ca65fc83e82647617d0ffd173d6766809c93d23d45eea64f9b82c7b70a9fb92a0f8de72a6f49b247dbbfdedc5068e2
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
407 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDeclaration = getDeclaration;
/**
* Gets the declaration for the given variable
*/
function getDeclaration(services, node) {
const symbol = services.getSymbolAtLocation(node);
if (!symbol) {
return null;
}
const declarations = symbol.getDeclarations();
return declarations?.[0] ?? null;
}