top | up | prev | next

StringReferenceValue Class

Definition at line 134 of Evaluator.cpp

Constructors

StringReferenceValue(Value* stringValue_)

Member Functions

Value* As(TypeSymbol* targetType, bool cast, const Span& span, const boost::uuids::uuid& moduleId_, bool dontThrow) const override
Value* Clone() const override
Value* GetSubject() override
TypeSymbol* GetType(SymbolTable* symbolTable) override
void* IrValue(Emitter& emitter) override
bool IsStringReferenceValue() const override
void Read(BinaryReader& reader) override
void Write(BinaryWriter& writer) override

Member Variables

Value* stringValue

Constructor Details

StringReferenceValue Constructor

cmajor::binder::StringReferenceValue::StringReferenceValue(Value* stringValue_)

Definition at line 150 of Evaluator.cpp :
 150 : Value(stringValue_->GetSpan()stringValue_->ModuleId()ValueType::none)stringValue(stringValue_)
 151 {
 152 }


Declaration at line 137 of Evaluator.cpp


Member Function Details

As Member Function

Value* cmajor::binder::StringReferenceValue::As(TypeSymbol* targetType, bool cast, const Span& span, const boost::uuids::uuid& moduleId_, bool dontThrow) const override

Definition at line 142 of Evaluator.cpp :
 142 { Assert(false"string reference value cannot be converted"); return nullptr; }


Clone Member Function

Value* cmajor::binder::StringReferenceValue::Clone() const override

Definition at line 139 of Evaluator.cpp :
 139 { return new StringReferenceValue(stringValue); }


GetSubject Member Function

Value* cmajor::binder::StringReferenceValue::GetSubject() override

Definition at line 145 of Evaluator.cpp :
 145 { return stringValue; }


GetType Member Function

TypeSymbol* cmajor::binder::StringReferenceValue::GetType(SymbolTable* symbolTable) override

Definition at line 144 of Evaluator.cpp :
 144 { return stringValue->GetType(symbolTable); }

Calls: cmajor::binder::StringReferenceValue::GetType

Called by: cmajor::binder::StringReferenceValue::GetType


IrValue Member Function

void * cmajor::binder::StringReferenceValue::IrValue(Emitter& emitter) override

Definition at line 143 of Evaluator.cpp :
 143 { return stringValue->IrValue(emitter); }

Calls: cmajor::binder::StringReferenceValue::IrValue

Called by: cmajor::binder::StringReferenceValue::IrValue


IsStringReferenceValue Member Function

bool cmajor::binder::StringReferenceValue::IsStringReferenceValue() const override

Definition at line 138 of Evaluator.cpp :
 138 { return true; }


Read Member Function

void cmajor::binder::StringReferenceValue::Read(BinaryReader& reader) override

Definition at line 141 of Evaluator.cpp :
 141 {}


Write Member Function

void cmajor::binder::StringReferenceValue::Write(BinaryWriter& writer) override

Definition at line 140 of Evaluator.cpp :
 140 {}


top | up | prev | next