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

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
 

Detailed Description

Editable source, separate from immutable linked and executable snapshots.

Constructor & Destructor Documentation

◆ ModuleDocument()

a11::flow::ModuleDocument::ModuleDocument ( std::string  identity = "<memory>",
std::string  source = {} 
)
explicit

Member Function Documentation

◆ Apply()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Apply ( uint64_t  revision,
std::vector< Edit >  edits 
)

◆ Check()

std::vector< Diagnostic > a11::flow::ModuleDocument::Check ( const ModuleSources &  sources = {},
ModuleResolver  resolver = {},
CompilationLimits  limits = {} 
) const

◆ EffectiveSchema()

absl::StatusOr< FlowPlan > a11::flow::ModuleDocument::EffectiveSchema ( std::string_view  name,
const ModuleSources &  sources = {},
ModuleResolver  resolver = {},
CompilationLimits  limits = {} 
) const

◆ identity()

const std::string & a11::flow::ModuleDocument::identity ( ) const
inline

◆ Insert()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Insert ( const FlowBuilder &  flow)

◆ InsertStruct()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::InsertStruct ( DtoPlan  shape)

◆ Link()

LinkedModule a11::flow::ModuleDocument::Link ( const ModuleSources &  sources = {},
ModuleResolver  resolver = {},
CompilationLimits  limits = {},
CompilationBudget *absl_nullable  budget = nullptr 
) const

◆ Remove()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Remove ( const DocumentSymbolHandle &  symbol)

◆ RemoveImport()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::RemoveImport ( std::string  alias,
std::optional< DocumentSymbolHandle >  scope = {} 
)

◆ Rename()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Rename ( const DocumentSymbolHandle &  symbol,
std::string  name 
)

◆ RenameImport()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::RenameImport ( std::string  alias,
std::string  name,
std::optional< DocumentSymbolHandle >  scope = {} 
)

◆ RenameInGraph()

absl::StatusOr< ModuleGraphChange > a11::flow::ModuleDocument::RenameInGraph ( const DocumentSymbolHandle &  symbol,
std::string  name,
const ModuleSources &  sources = {} 
) const

◆ revision()

uint64_t a11::flow::ModuleDocument::revision ( ) const
inline

◆ SetExported()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::SetExported ( const DocumentSymbolHandle &  symbol,
bool  value 
)

◆ source()

const std::string & a11::flow::ModuleDocument::source ( ) const
inline

◆ Symbols()

std::vector< DocumentSymbolHandle > a11::flow::ModuleDocument::Symbols ( ) const

◆ Update()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::Update ( const DocumentSymbolHandle &  symbol,
const FlowBuilder &  flow 
)

◆ UpdateStruct()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::UpdateStruct ( const DocumentSymbolHandle &  symbol,
const DtoPlan &  shape 
)

◆ UpsertDeclaration()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::UpsertDeclaration ( FlowPlan  interface,
const std::vector< DtoPlan > &  types = {},
std::optional< DocumentSymbolHandle >  symbol = {} 
)

◆ UpsertImport()

absl::StatusOr< DocumentChange > a11::flow::ModuleDocument::UpsertImport ( std::string  reference,
std::string  alias,
std::optional< DocumentSymbolHandle >  scope = {},
std::string  symbol = {} 
)

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