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

{ "key": expr, ...rest }. More...

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

Inheritance diagram for a11::flow::syntax::ObjectLiteral:
[legend]

Public Attributes

std::vector< std::pair< std::string, NodePtr > > pairs
 
- Public Attributes inherited from a11::flow::syntax::Node
NodeKind kind = NodeKind::kError
 
Location location
 

Additional Inherited Members

- Public Member Functions inherited from a11::flow::syntax::NodeOf< NodeKind::kObjectLiteral >
 NodeOf ()
 
- Public Member Functions inherited from a11::flow::syntax::Node
virtual ~Node ()=default
 
- Static Public Attributes inherited from a11::flow::syntax::NodeOf< NodeKind::kObjectLiteral >
static constexpr NodeKind kNodeKind
 

Detailed Description

{ "key": expr, ...rest }.

A pair whose value is a [Spread] is one: its key is empty and means nothing, and it contributes every pair of what it holds at the point it is written. Later pairs win, so {...it, "tags": [..]} overrides and {"tags": [..], ...it} does not.

Member Data Documentation

◆ pairs

std::vector<std::pair<std::string, NodePtr> > a11::flow::syntax::ObjectLiteral::pairs

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