-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Restorer.Extras flag and disabled resorting Scopes and Objects …
…by default.
- Loading branch information
Showing
3 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
package dst | ||
|
||
// TODO: What should we be doing here? | ||
// After cloning a node, should it still be attached to the same object / scope? Or a cloned copy? | ||
// Should we really have objects / scopes at all? As soon as you modify the tree, they are | ||
// potentially invalid. | ||
|
||
// CloneObject returns nil: After cloning a node, it should not be attached to the same object / scope. | ||
func CloneObject(o *Object) *Object { | ||
return nil | ||
} | ||
|
||
// CloneScope returns nil: After cloning a node, it should not be attached to the same object / scope. | ||
func CloneScope(s *Scope) *Scope { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters