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

The flows a file declares, and everything wrong with it. More...

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

Public Member Functions

bool HasErrors () const
 
const Diagnostic *absl_nullable FirstError () const
 The first error in source order, or nullptr.
 

Public Attributes

std::vector< syntax::ModuleDeclaration > modules
 
std::vector< syntax::ExportDeclaration > exports
 
std::vector< syntax::Import > imports
 
std::vector< syntax::FlowDeclarationPtr > flows
 
std::vector< syntax::DtoDeclarationPtr > dtos
 Top-level shapes in declaration order.
 
std::vector< Diagnostic > diagnostics
 
std::vector< size_t > value_braces
 Sorted offsets of braces that open values, for formatter spacing.
 
std::vector< size_t > tagged_braces
 Sorted subset of value braces that follow a type tag.
 

Detailed Description

The flows a file declares, and everything wrong with it.

Member Function Documentation

◆ FirstError()

const Diagnostic *absl_nullable a11::flow::ParseResult::FirstError ( ) const

The first error in source order, or nullptr.

This is what a strict caller turns into a refusal: flow.loads raises the Python FlowSyntaxError built from exactly this.

◆ HasErrors()

bool a11::flow::ParseResult::HasErrors ( ) const

Member Data Documentation

◆ diagnostics

std::vector<Diagnostic> a11::flow::ParseResult::diagnostics

◆ dtos

std::vector<syntax::DtoDeclarationPtr> a11::flow::ParseResult::dtos

Top-level shapes in declaration order.

◆ exports

std::vector<syntax::ExportDeclaration> a11::flow::ParseResult::exports

◆ flows

std::vector<syntax::FlowDeclarationPtr> a11::flow::ParseResult::flows

◆ imports

std::vector<syntax::Import> a11::flow::ParseResult::imports

◆ modules

std::vector<syntax::ModuleDeclaration> a11::flow::ParseResult::modules

◆ tagged_braces

std::vector<size_t> a11::flow::ParseResult::tagged_braces

Sorted subset of value braces that follow a type tag.

◆ value_braces

std::vector<size_t> a11::flow::ParseResult::value_braces

Sorted offsets of braces that open values, for formatter spacing.


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