2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
7 #include "VariableValueNodeChild.h"
10 #include "ValueLocation.h"
13 VariableValueNodeChild::VariableValueNodeChild(Variable
* variable
)
17 fVariable
->AcquireReference();
18 SetLocation(fVariable
->Location(), B_OK
);
22 VariableValueNodeChild::~VariableValueNodeChild()
24 fVariable
->ReleaseReference();
29 VariableValueNodeChild::Name() const
31 return fVariable
->Name();
36 VariableValueNodeChild::GetType() const
38 return fVariable
->GetType();
43 VariableValueNodeChild::Parent() const
50 VariableValueNodeChild::ResolveLocation(ValueLoader
* valueLoader
,
51 ValueLocation
*& _location
)
53 _location
= fVariable
->Location();
54 _location
->AcquireReference();