sun::semantic_analysis::constants::GlobalInitRecord

sun::semantic_analysis::constants::GlobalInitRecord

struct · Source (opens in a new tab)

struct sun::semantic_analysis::constants::GlobalInitRecord

What 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 = false

No documentation comment.

kind

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

GlobalInitKind sun::semantic_analysis::constants::GlobalInitRecord::kind = GlobalInitKind::Startup

No documentation comment.

Related: GlobalInitKind, GlobalInitKind::Startup

reason

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

std::optional<StartupReason> sun::semantic_analysis::constants::GlobalInitRecord::reason

No documentation comment.

Related: StartupReason

value

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

std::optional<ConstantValue> sun::semantic_analysis::constants::GlobalInitRecord::value

No documentation comment.

Related: ConstantValue