sun::semantic_analysis::constants::GlobalInitRecord
struct · Source (opens in a new tab)
struct sun::semantic_analysis::constants::GlobalInitRecordWhat analysis decided about one file-scope variable.
Stored on the variable's declaration node (VariableCreationAST::getGlobalInit) and never changed once made.
Public Fields
isConst
public · variable · Source (opens in a new tab)
bool sun::semantic_analysis::constants::GlobalInitRecord::isConst = falseNo documentation comment.
kind
public · variable · Source (opens in a new tab)
GlobalInitKind sun::semantic_analysis::constants::GlobalInitRecord::kind = GlobalInitKind::StartupNo documentation comment.
Related: GlobalInitKind, GlobalInitKind::Startup
reason
public · variable · Source (opens in a new tab)
std::optional<StartupReason> sun::semantic_analysis::constants::GlobalInitRecord::reasonNo documentation comment.
Related: StartupReason
value
public · variable · Source (opens in a new tab)
std::optional<ConstantValue> sun::semantic_analysis::constants::GlobalInitRecord::valueNo documentation comment.
Related: ConstantValue