sun::codegen::FunctionFrame
struct · Source (opens in a new tab)
struct sun::codegen::FunctionFrameThe function body currently being emitted: its receiver, and what its return statements are allowed to do.
Nested emission (a method body inside a class definition, a lambda inside a function) saves and restores this through the guards on CodegenState rather than by hand.
Public Fields
canError
public · variable · Source (opens in a new tab)
bool sun::codegen::FunctionFrame::canError = falseNo documentation comment.
currentClass
public · variable · Source (opens in a new tab)
std::shared_ptr<sun::types::ClassType> sun::codegen::FunctionFrame::currentClass = nullptrNo documentation comment.
Related: sun::types::ClassType
returnsRef
public · variable · Source (opens in a new tab)
bool sun::codegen::FunctionFrame::returnsRef = falseNo documentation comment.
thisPtr
public · variable · Source (opens in a new tab)
llvm::Value* sun::codegen::FunctionFrame::thisPtr = nullptrNo documentation comment.
valueType
public · variable · Source (opens in a new tab)
llvm::Type* sun::codegen::FunctionFrame::valueType = nullptrNo documentation comment.