top | up | prev | next

ArrayReferenceValue Class

Definition at line 94 of Evaluator.cpp

Constructors

ArrayReferenceValue(ArrayValue* arrayValue_)

Member Functions

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

Member Variables

ArrayValue* arrayValue

Constructor Details

ArrayReferenceValue Constructor

cmajor::binder::ArrayReferenceValue::ArrayReferenceValue(ArrayValue* arrayValue_)

Definition at line 110 of Evaluator.cpp :
 110 : Value(arrayValue_->GetSpan()arrayValue_->ModuleId()ValueType::none)arrayValue(arrayValue_)
 111 {
 112 }


Declaration at line 97 of Evaluator.cpp


Member Function Details

As Member Function

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

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


Clone Member Function

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

Definition at line 99 of Evaluator.cpp :
  99 { return new ArrayReferenceValue(arrayValue); }


GetArrayValue Member Function

ArrayValue* cmajor::binder::ArrayReferenceValue::GetArrayValue() const

Definition at line 105 of Evaluator.cpp :
 105 { return arrayValue; }


GetType Member Function

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

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

Calls: cmajor::binder::ArrayReferenceValue::GetType

Called by: cmajor::binder::ArrayReferenceValue::GetType


IrValue Member Function

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

Definition at line 103 of Evaluator.cpp :
 103 { Assert(false"array reference does not have ir value"); return nullptr; }


IsArrayReferenceValue Member Function

bool cmajor::binder::ArrayReferenceValue::IsArrayReferenceValue() const override

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


Read Member Function

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

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


Write Member Function

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

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


top | up | prev | next