sun::driver::Driver::AnalyzedProgram
struct · Source (opens in a new tab)
struct sun::driver::Driver::AnalyzedProgramA program that was parsed and semantically analyzed but not compiled.
ast is null only when parsing failed. error holds the first error raised; the tree keeps every type resolved before it, which is what editor tooling needs while a file is mid-edit.
Public Fields
ast
public · variable · Source (opens in a new tab)
std::unique_ptr<BlockExprAST> sun::driver::Driver::AnalyzedProgram::astNo documentation comment.
Related: BlockExprAST
error
public · variable · Source (opens in a new tab)
std::optional<sun::support::SunError> sun::driver::Driver::AnalyzedProgram::errorNo documentation comment.
Related: sun::support::SunError
results
public · variable · Source (opens in a new tab)
std::shared_ptr<AnalysisResults> sun::driver::Driver::AnalyzedProgram::resultsWhat analysis concluded about the program.
Also keeps declaration identities alive with the annotated syntax tree.
Related: AnalysisResults