Changeset 5499 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Formatters
- Timestamp:
- 02/16/11 19:01:00 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4
- Property svn:ignore
-
old new 2 2 obj 3 3 HeuristicLabEncodingsSymbolicExpressionTreeEncodingPlugin.cs 4 *.user
-
- Property svn:ignore
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Formatters/SymbolicExpressionTreeStringFormatter.cs
r5445 r5499 21 21 22 22 using System.Text; 23 using System.Linq; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 27 27 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding .Formatters{28 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding { 28 29 29 30 [Item("SymbolicExpressionTreeStringFormatter", "The default string formatter for symbolic expression trees.")] … … 49 50 } 50 51 51 private string FormatRecursively( SymbolicExpressionTreeNode node, int indentLength) {52 private string FormatRecursively(ISymbolicExpressionTreeNode node, int indentLength) { 52 53 StringBuilder strBuilder = new StringBuilder(); 53 54 if (Indent) strBuilder.Append(' ', indentLength); 54 55 strBuilder.Append("("); 55 56 // internal nodes or leaf nodes? 56 if (node.SubTrees.Count > 0) {57 if (node.SubTrees.Count() > 0) { 57 58 // symbol on same line as '(' 58 59 strBuilder.AppendLine(node.ToString()); … … 75 76 return new SymbolicExpressionTreeStringFormatter(this, cloner); 76 77 } 77 78 78 } 79 80 79 }
Note: See TracChangeset
for help on using the changeset viewer.