Changeset 10014 for branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Statements/IfStat.cs
- Timestamp:
- 10/01/13 16:39:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Robocode.TrunkInt/HeuristicLab.Problems.Robocode/3.3/Symbols/Statements/IfStat.cs
r10011 r10014 43 43 44 44 public IfStat() 45 : base("IfStat ement", "An if statement.") {45 : base("IfStat", "An if statement.") { 46 46 Prefix = "if ("; 47 Suffix = ") ";47 Suffix = ") {"; 48 48 } 49 49 … … 63 63 else throw new ArgumentException("Unexpected children.", "children"); 64 64 } 65 return Prefix + condition + Suffix + Environment.NewLine + ifTrue + Environment.NewLine + ifElse + Environment.NewLine; 65 string result = Prefix + condition + Suffix + Environment.NewLine + ifTrue + Environment.NewLine + "}"; 66 result += string.IsNullOrEmpty(ifElse) ? Environment.NewLine : ifElse; 67 return result; 66 68 } 67 69 }
Note: See TracChangeset
for help on using the changeset viewer.