A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
complete.h File Reference
#include <cstddef>
#include <string>
#include <string_view>
#include <vector>
#include "a11/flow/catalogue.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::flow::Proposal
 One thing that may be written at an offset. More...
 
struct  a11::flow::CompleteResult
 What may be written at an offset, and the word already typed there. More...
 

Namespaces

namespace  a11
 
namespace  a11::flow
 

Enumerations

enum class  a11::flow::ProposalKind {
  a11::flow::kStatement , a11::flow::kDeclaration , a11::flow::kModifier , a11::flow::kStage ,
  a11::flow::kFunction , a11::flow::kType , a11::flow::kStatusCode , a11::flow::kLogLevel ,
  a11::flow::kConstant , a11::flow::kPortModifier , a11::flow::kFlow , a11::flow::kPort ,
  a11::flow::kNode , a11::flow::kNodeMap , a11::flow::kCall , a11::flow::kBarrier ,
  a11::flow::kVariable , a11::flow::kHeader , a11::flow::kField
}
 What a proposal is, which is what an editor turns into an icon. More...
 

Functions

CompleteResult a11::flow::CompleteAt (std::string_view source, size_t offset, const catalogue::Catalogue &known=catalogue::Catalogue::Builtin())
 What may be written at offset in source.
 
std::string_view a11::flow::ProposalKindName (ProposalKind kind)
 The name of a proposal kind in the output format, in kebab case.
 

Variables

constexpr std::string_view a11::flow::kCompletionsFormat = "flow.completions/v1"
 The format field of the completions envelope.