A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::syntax::TypeExpression Struct Reference

#include <cpp/a11/flow/syntax.h>

Public Member Functions

std::string ToString () const
 The type as it would be written, which is what a message quotes.
 
absl::StatusOr< std::string > ToSource () const
 Emit a bounded type expression, preserving quoted representations.
 

Public Attributes

Location location = {}
 
std::string name
 
std::vector< TypeExpression > parameters = {}
 
bool quoted = false
 
bool sugared = false
 Whether list[T] used the T[] spelling, retained by the formatter.
 

Member Function Documentation

◆ ToSource()

absl::StatusOr< std::string > a11::flow::syntax::TypeExpression::ToSource ( ) const

Emit a bounded type expression, preserving quoted representations.

◆ ToString()

std::string a11::flow::syntax::TypeExpression::ToString ( ) const

The type as it would be written, which is what a message quotes.

Member Data Documentation

◆ location

Location a11::flow::syntax::TypeExpression::location = {}

◆ name

std::string a11::flow::syntax::TypeExpression::name

◆ parameters

std::vector<TypeExpression> a11::flow::syntax::TypeExpression::parameters = {}

◆ quoted

bool a11::flow::syntax::TypeExpression::quoted = false

◆ sugared

bool a11::flow::syntax::TypeExpression::sugared = false

Whether list[T] used the T[] spelling, retained by the formatter.


The documentation for this struct was generated from the following files: