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

Method NodeDoWhileExpr

NULLC/SyntaxTree.cpp:1583–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1581// Node for compilation of do{}while()
1582
1583NodeDoWhileExpr::NodeDoWhileExpr()
1584{
1585 second = TakeLastNode();
1586 first = TakeLastNode();
1587
1588 if((second->typeInfo->type == TypeInfo::TYPE_COMPLEX && second->typeInfo != typeObject) || second->typeInfo->type == TypeInfo::TYPE_VOID)
1589 ThrowError(CodeInfo::lastKnownStartPos, "ERROR: condition type cannot be '%s' and function for conversion to bool is undefined", second->typeInfo->GetFullTypeName());
1590
1591 nodeType = typeNodeDoWhileExpr;
1592}
1593NodeDoWhileExpr::~NodeDoWhileExpr()
1594{
1595}

Callers

nothing calls this directly

Calls 3

TakeLastNodeFunction · 0.85
ThrowErrorFunction · 0.85
GetFullTypeNameMethod · 0.80

Tested by

no test coverage detected