Changeset 4249 for trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureManipulators/SubroutineDuplicater.cs
- Timestamp:
- 08/18/10 14:57:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.3/ArchitectureManipulators/SubroutineDuplicater.cs
r4068 r4249 66 66 duplicatedDefunBranch.FunctionName = newFunctionName; 67 67 symbolicExpressionTree.Root.AddSubTree(duplicatedDefunBranch); 68 duplicatedDefunBranch. Grammar = (ISymbolicExpressionGrammar)selectedBranch.Grammar.Clone();68 duplicatedDefunBranch.SetGrammar((ISymbolicExpressionGrammar)selectedBranch.Grammar.Clone()); 69 69 // add an invoke symbol for each branch that is allowed to invoke the original function 70 70 foreach (var subtree in symbolicExpressionTree.Root.SubTrees.OfType<SymbolicExpressionTreeTopLevelNode>()) {
Note: See TracChangeset
for help on using the changeset viewer.