private void actionIncrementIp(out bool executionFault) { executionFault = true; IpElement?topIpNullable = getTopIp(); if (!topIpNullable.HasValue) { return; } IpElement topIp = topIpNullable.Value; topIp.index++; executionFault = false; }
public void actionIpGoBack(out bool executionFault) { executionFault = true; IpElement?topIpNullable = getTopIp(); if (!topIpNullable.HasValue) { return; } IpElement topIp = topIpNullable.Value; if (topIp.index == 0) { return; } topIp.index--; executionFault = false; }
protected void getTopBraceWithIndex(out Brace topBrace, out uint index, out bool executionFault) { executionFault = true; topBrace = null; index = 0; IpElement?topIpNullable = getTopIp(); if (!topIpNullable.HasValue) { return; } IpElement topIp = topIpNullable.Value; if (topIp.element.type != Element.EnumType.BRACE) { return; } executionFault = false; topBrace = (Brace)topIp.element; index = topIp.index; }