MCPcopy Create free account
hub / github.com/WheretIB/nullc / NodeShiftAddress

Method NodeShiftAddress

NULLC/SyntaxTree.cpp:1101–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099// Node that shifts address to the class member
1100
1101NodeShiftAddress::NodeShiftAddress(TypeInfo::MemberVariable *classMember)
1102{
1103 member = classMember;
1104
1105 memberShift = member->offset;
1106 typeInfo = CodeInfo::GetReferenceType(member->type);
1107
1108 first = TakeLastNode();
1109
1110#ifndef NULLC_ENABLE_C_TRANSLATION
1111 if(first->nodeType == typeNodeShiftAddress)
1112 {
1113 memberShift += static_cast<NodeShiftAddress*>(first)->memberShift;
1114 first = static_cast<NodeShiftAddress*>(first)->first;
1115 }
1116#endif
1117
1118 nodeType = typeNodeShiftAddress;
1119}
1120
1121NodeShiftAddress::~NodeShiftAddress()
1122{

Callers

nothing calls this directly

Calls 1

TakeLastNodeFunction · 0.85

Tested by

no test coverage detected