public InStack ( ICLS_Expression expr ) : void | ||
expr | ICLS_Expression | |
Результат | void |
public void InStack(ICLS_Expression expr)
{
if (!useDebug) return;
if (stackExpr.Count > 0 && stackExpr.Peek() == expr)
{
throw new Exception("InStack error");
}
stackExpr.Push(expr);
}
public void OutStack(ICLS_Expression expr)
CLS_Content::InStack ( |
public CLS_Content.Value ComputeValue(CLS_Content content) { content.InStack(this); content.DepthAdd(); CLS_Content.Value vrt = null; ICLS_Expression expr_while = listParam[0]; ICLS_Expression expr_block = listParam[1]; while ((bool)expr_while.ComputeValue(content).value) { if (expr_block != null) { CLS_Content.Value v = expr_block.ComputeValue(content); if (v != null) { if (v.breakBlock > 2) { vrt = v; } if (v.breakBlock > 1) { break; } } } } content.DepthRemove(); content.OutStack(this); return(vrt); }