mirror of
https://github.com/github/semantic.git
synced 2024-11-25 11:04:00 +03:00
Document the purpose of size
.
This commit is contained in:
parent
dfa34aa13c
commit
e2e55ef041
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user