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

Method NodeWhileExpr

NULLC/SyntaxTree.cpp:1524–1533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1522// Node for compilation of while(){}
1523
1524NodeWhileExpr::NodeWhileExpr()
1525{
1526 second = TakeLastNode();
1527 first = TakeLastNode();
1528
1529 if((first->typeInfo->type == TypeInfo::TYPE_COMPLEX && first->typeInfo != typeObject) || first->typeInfo->type == TypeInfo::TYPE_VOID)
1530 ThrowError(CodeInfo::lastKnownStartPos, "ERROR: condition type cannot be '%s' and function for conversion to bool is undefined", first->typeInfo->GetFullTypeName());
1531
1532 nodeType = typeNodeWhileExpr;
1533}
1534NodeWhileExpr::~NodeWhileExpr()
1535{
1536}

Callers

nothing calls this directly

Calls 3

TakeLastNodeFunction · 0.85
ThrowErrorFunction · 0.85
GetFullTypeNameMethod · 0.80

Tested by

no test coverage detected