Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getHover(info) {
var result = locate_symbol_1.locateSymbol(info);
if (result) {
return { text: hoverTextOf(result.symbol), span: result.span };
}
}
exports.getHover = getHover;
function getDefinition(info) {
var result = locate_symbol_1.locateSymbol(info);
return result && result.symbol.definition;
}
exports.getDefinition = getDefinition;