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

Method NodeForExpr

NULLC/SyntaxTree.cpp:1458–1469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1456unsigned int currLoopDepth = 0;
1457
1458NodeForExpr::NodeForExpr()
1459{
1460 fourth = TakeLastNode();
1461 third = TakeLastNode();
1462 second = TakeLastNode();
1463 first = TakeLastNode();
1464
1465 if((second->typeInfo->type == TypeInfo::TYPE_COMPLEX && second->typeInfo != typeObject) || second->typeInfo->type == TypeInfo::TYPE_VOID)
1466 ThrowError(CodeInfo::lastKnownStartPos, "ERROR: condition type cannot be '%s' and function for conversion to bool is undefined", second->typeInfo->GetFullTypeName());
1467
1468 nodeType = typeNodeForExpr;
1469}
1470NodeForExpr::~NodeForExpr()
1471{
1472}

Callers

nothing calls this directly

Calls 3

TakeLastNodeFunction · 0.85
ThrowErrorFunction · 0.85
GetFullTypeNameMethod · 0.80

Tested by

no test coverage detected