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

Method AddNode

NULLC/SyntaxTree.cpp:1869–1883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1867}
1868
1869void NodeExpressionList::AddNode(bool reverse)
1870{
1871 // If reverse is set, add before the head
1872 if(reverse)
1873 {
1874 NodeZeroOP *firstNext = first;
1875 first = TakeLastNode();
1876 first->next = firstNext;
1877 first->next->prev = first;
1878 }else{
1879 tail->next = TakeLastNode();
1880 tail->next->prev = tail;
1881 tail = tail->next;
1882 }
1883}
1884
1885NodeZeroOP* NodeExpressionList::GetFirstNode()
1886{

Callers 8

AddStringNodeFunction · 0.80
ConvertArrayToUnsizedFunction · 0.80
AddTwoExpressionNodeFunction · 0.80
AddArrayConstructorFunction · 0.80
FunctionEndFunction · 0.80
AddFunctionCallNodeFunction · 0.80
TypeInstanceGenericFunction · 0.80
CreateRedirectionTablesFunction · 0.80

Calls 1

TakeLastNodeFunction · 0.85

Tested by

no test coverage detected