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

Function GetTypeId

NULLC/Callbacks.cpp:1270–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1268}
1269
1270void GetTypeId(const char* pos)
1271{
1272 if(!currType)
1273 ThrowError(pos, "ERROR: cannot take typeid from auto type");
1274 CodeInfo::nodeList.push_back(new NodeZeroOP(CodeInfo::GetReferenceType(currType)));
1275 CodeInfo::nodeList.push_back(new NodeConvertPtr(typeObject));
1276 CodeInfo::nodeList.back()->typeInfo = typeTypeid;
1277}
1278
1279void SetTypeOfLastNode()
1280{

Callers 2

AddListGeneratorFunction · 0.85
ParseTerminalFunction · 0.85

Calls 2

ThrowErrorFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected