sun::driver::Driver::AnalyzedProgram

sun::driver::Driver::AnalyzedProgram

struct · Source (opens in a new tab)

struct sun::driver::Driver::AnalyzedProgram

A 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::ast

No documentation comment.

Related: BlockExprAST

error

public · variable · Source (opens in a new tab)

std::optional<sun::support::SunError> sun::driver::Driver::AnalyzedProgram::error

No documentation comment.

Related: sun::support::SunError

results

public · variable · Source (opens in a new tab)

std::shared_ptr<AnalysisResults> sun::driver::Driver::AnalyzedProgram::results

What analysis concluded about the program.

Also keeps declaration identities alive with the annotated syntax tree.

Related: AnalysisResults