1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 17:59:10 +03:00

Expand on the documentation of Copy.

This commit is contained in:
Rob Rix 2015-10-02 13:02:51 -04:00
parent a96a88cdf8
commit cacba977dd

View File

@ -4,6 +4,8 @@ public enum Diff: Comparable, CustomDebugStringConvertible, CustomDocConvertible
case Patch(Term<Info>, Term<Info>)
/// Copy a syntax node, recursively diffing its branches.
///
/// This represents a node in the syntax which is unchanged, but whose child nodes (if any) may have been changed; thus, its children are themselves represented by `Syntax` instantiated to `Diff`, rather than `Term`.
indirect case Copy(Syntax<Diff, Info>)
/// Insert, remove, and patch terms by some assigned identity.