Files
SnowLuma/.pnpm-store/v11/files/d2/bd2c8622a92dbe693c09a0e2aa5fff91ca65fc83e82647617d0ffd173d6766809c93d23d45eea64f9b82c7b70a9fb92a0f8de72a6f49b247dbbfdedc5068e2
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +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;
}