Fixes compilation errors with some clangs

resolves https://github.com/ethereum/solidity/issues/13854
This commit is contained in:
Jacob Heider 2023-02-03 21:37:50 -05:00
parent 77640a57c9
commit 43431eb427
No known key found for this signature in database
GPG Key ID: A98011B5713535BF

View File

@ -63,7 +63,7 @@ void DocumentHoverHandler::operator()(MessageID _id, Json::Value const& _args)
auto const [sourceUnitName, lineColumn] = HandlerBase(*this).extractSourceUnitNameAndLineColumn(_args);
auto const [sourceNode, sourceOffset] = m_server.astNodeAndOffsetAtSourceLocation(sourceUnitName, lineColumn);
MarkdownBuilder markdown{};
MarkdownBuilder markdown;
auto rangeToHighlight = toRange(sourceNode->location());
// Try getting the type definition of the underlying AST node, if available.