17#ifndef A11_FLOW_SERVICE_H_
18#define A11_FLOW_SERVICE_H_
22#include <absl/types/span.h>
23#include <nlohmann/json_fwd.hpp>
33nlohmann::json
Handle(
const nlohmann::json& request,
35 CompilationLimits
limits = {});
38absl::Span<const std::string_view>
Methods();
CompilationLimits limits
Definition main.cc:148
Definition catalogue.cc:29
nlohmann::json Handle(const nlohmann::json &request, ModuleResolver resolver, CompilationLimits limits)
Handles one language service request and returns its JSON envelope.
Definition service.cc:316
std::string_view MethodSummary(std::string_view method)
What a method takes and gives back, one line, for --help.
Definition service.cc:170
std::function< absl::StatusOr< ModuleSource >(std::string_view reference, std::string_view importer)> ModuleResolver
Definition module.h:39
absl::Span< const std::string_view > Methods()
Every method [Handle] knows, in the order --help lists them.
Definition service.cc:159