mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
30 lines
719 B
C++
30 lines
719 B
C++
#pragma once
|
|
|
|
#include <liblangutil/SourceLocation.h>
|
|
|
|
#include <libsolidity/ast/ASTForward.h>
|
|
|
|
#include <libsolutil/JSON.h>
|
|
|
|
#include <optional>
|
|
#include <vector>
|
|
|
|
namespace solidity::langutil
|
|
{
|
|
class CharStreamProvider;
|
|
}
|
|
|
|
namespace solidity::lsp
|
|
{
|
|
|
|
class FileRepository;
|
|
|
|
std::optional<langutil::LineColumn> parseLineColumn(Json::Value const& _lineColumn);
|
|
Json::Value toJson(langutil::LineColumn _pos);
|
|
Json::Value toJsonRange(langutil::LineColumn const& _start, langutil::LineColumn const& _end);
|
|
|
|
std::vector<frontend::Declaration const*> allAnnotatedDeclarations(frontend::Expression const* _expression);
|
|
std::optional<langutil::SourceLocation> declarationPosition(frontend::Declaration const* _declaration);
|
|
|
|
}
|