|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Editable source, separate from immutable linked and executable snapshots. More...
#include <cpp/a11/flow/document.h>
Public Member Functions | |
| ModuleDocument (std::string identity="<memory>", std::string source={}) | |
| const std::string & | identity () const |
| const std::string & | source () const |
| uint64_t | revision () const |
| std::vector< DocumentSymbolHandle > | Symbols () const |
| absl::StatusOr< DocumentChange > | Apply (uint64_t revision, std::vector< Edit > edits) |
| absl::StatusOr< DocumentChange > | Insert (const FlowBuilder &flow) |
| absl::StatusOr< DocumentChange > | InsertStruct (DtoPlan shape) |
| absl::StatusOr< DocumentChange > | UpsertDeclaration (FlowPlan interface, const std::vector< DtoPlan > &types={}, std::optional< DocumentSymbolHandle > symbol={}) |
| absl::StatusOr< DocumentChange > | Update (const DocumentSymbolHandle &symbol, const FlowBuilder &flow) |
| absl::StatusOr< DocumentChange > | UpdateStruct (const DocumentSymbolHandle &symbol, const DtoPlan &shape) |
| absl::StatusOr< DocumentChange > | Remove (const DocumentSymbolHandle &symbol) |
| absl::StatusOr< DocumentChange > | SetExported (const DocumentSymbolHandle &symbol, bool value) |
| absl::StatusOr< DocumentChange > | UpsertImport (std::string reference, std::string alias, std::optional< DocumentSymbolHandle > scope={}, std::string symbol={}) |
| absl::StatusOr< DocumentChange > | RemoveImport (std::string alias, std::optional< DocumentSymbolHandle > scope={}) |
| absl::StatusOr< DocumentChange > | Rename (const DocumentSymbolHandle &symbol, std::string name) |
| absl::StatusOr< ModuleGraphChange > | RenameInGraph (const DocumentSymbolHandle &symbol, std::string name, const ModuleSources &sources={}) const |
| absl::StatusOr< DocumentChange > | RenameImport (std::string alias, std::string name, std::optional< DocumentSymbolHandle > scope={}) |
| absl::StatusOr< FlowPlan > | EffectiveSchema (std::string_view name, const ModuleSources &sources={}, ModuleResolver resolver={}, CompilationLimits limits={}) const |
| LinkedModule | Link (const ModuleSources &sources={}, ModuleResolver resolver={}, CompilationLimits limits={}, CompilationBudget *absl_nullable budget=nullptr) const |
| std::vector< Diagnostic > | Check (const ModuleSources &sources={}, ModuleResolver resolver={}, CompilationLimits limits={}) const |
Editable source, separate from immutable linked and executable snapshots.
|
explicit |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Apply | ( | uint64_t | revision, |
| std::vector< Edit > | edits | ||
| ) |
| std::vector< Diagnostic > a11::flow::ModuleDocument::Check | ( | const ModuleSources & | sources = {}, |
| ModuleResolver | resolver = {}, |
||
| CompilationLimits | limits = {} |
||
| ) | const |
| absl::StatusOr< FlowPlan > a11::flow::ModuleDocument::EffectiveSchema | ( | std::string_view | name, |
| const ModuleSources & | sources = {}, |
||
| ModuleResolver | resolver = {}, |
||
| CompilationLimits | limits = {} |
||
| ) | const |
|
inline |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Insert | ( | const FlowBuilder & | flow | ) |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::InsertStruct | ( | DtoPlan | shape | ) |
| LinkedModule a11::flow::ModuleDocument::Link | ( | const ModuleSources & | sources = {}, |
| ModuleResolver | resolver = {}, |
||
| CompilationLimits | limits = {}, |
||
| CompilationBudget *absl_nullable | budget = nullptr |
||
| ) | const |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Remove | ( | const DocumentSymbolHandle & | symbol | ) |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::RemoveImport | ( | std::string | alias, |
| std::optional< DocumentSymbolHandle > | scope = {} |
||
| ) |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Rename | ( | const DocumentSymbolHandle & | symbol, |
| std::string | name | ||
| ) |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::RenameImport | ( | std::string | alias, |
| std::string | name, | ||
| std::optional< DocumentSymbolHandle > | scope = {} |
||
| ) |
| absl::StatusOr< ModuleGraphChange > a11::flow::ModuleDocument::RenameInGraph | ( | const DocumentSymbolHandle & | symbol, |
| std::string | name, | ||
| const ModuleSources & | sources = {} |
||
| ) | const |
|
inline |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::SetExported | ( | const DocumentSymbolHandle & | symbol, |
| bool | value | ||
| ) |
|
inline |
| std::vector< DocumentSymbolHandle > a11::flow::ModuleDocument::Symbols | ( | ) | const |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Update | ( | const DocumentSymbolHandle & | symbol, |
| const FlowBuilder & | flow | ||
| ) |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::UpdateStruct | ( | const DocumentSymbolHandle & | symbol, |
| const DtoPlan & | shape | ||
| ) |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::UpsertDeclaration | ( | FlowPlan | interface, |
| const std::vector< DtoPlan > & | types = {}, |
||
| std::optional< DocumentSymbolHandle > | symbol = {} |
||
| ) |
| absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::UpsertImport | ( | std::string | reference, |
| std::string | alias, | ||
| std::optional< DocumentSymbolHandle > | scope = {}, |
||
| std::string | symbol = {} |
||
| ) |