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

Method Neutralize

NULLC/SyntaxTree.cpp:1055–1061  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053}
1054
1055void NodeDereference::Neutralize()
1056{
1057 if(readonly)
1058 ThrowError(CodeInfo::lastKnownStartPos, "ERROR: cannot take pointer to a read-only variable");
1059 neutralized = true;
1060 typeInfo = originalNode->typeInfo;
1061}
1062
1063void NodeDereference::Compile()
1064{

Callers 3

UndoDereferceNodeFunction · 0.80
AddArrayIteratorFunction · 0.80
AddFunctionCallNodeFunction · 0.80

Calls 1

ThrowErrorFunction · 0.85

Tested by

no test coverage detected