1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Document the purpose of size.

This commit is contained in:
Rob Rix 2015-10-15 13:45:30 -04:00
parent dfa34aa13c
commit e2e55ef041

View File

@ -15,7 +15,9 @@ extension TermType {
}
/// The size of the receiver.
/// The count of nodes in the receiver.
///
/// This is used to compute the cost of patches, such that a patch inserting a very large tree will be charged approximately the same as a very large tree consisting of many small patches.
public var size: Int {
return cata {
switch $0 {