/// <summary> /// Obtiene la información de depuración /// </summary> protected override string GetDebugInfo(int indent) { string debug = Environment.NewLine + GetIndent(indent + 1) + " --> Condición " + Condition.GetDebugInfo(); // Condiciones debug += Environment.NewLine + GetIndent(indent + 1) + " --> Condición RPN " + ConditionRPN.GetDebugInfo(); // Devuelve la cadena de depuración return(debug); }
/// <summary> /// Obtiene la información de depuración /// </summary> protected override string GetDebugInfo(int indent) { string debug = Environment.NewLine + GetIndent(indent + 1) + " --> Condición " + Condition.GetDebugInfo(); // Condiciones debug += Environment.NewLine + GetIndent(indent + 1) + " --> Condición RPN " + ConditionRPN.GetDebugInfo(); // Else debug += Environment.NewLine + GetIndent(indent); if (InstructionsElse == null || InstructionsElse.Count == 0) { debug += "Sin sentencia else"; } else { debug += "Else " + Environment.NewLine + InstructionsElse.GetDebugString(indent + 1); } // Devuelve la cadena de depuración return(debug); }