Add more useful statistics to DUMP_STYLE_STATISTICS.

This commit is contained in:
Bobby Holley 2017-04-12 18:59:47 +08:00
parent 591733408d
commit 687ea0ef9e
3 changed files with 83 additions and 13 deletions

View file

@ -60,6 +60,11 @@ impl fmt::Debug for PropertyDeclarationBlock {
}
impl PropertyDeclarationBlock {
/// Returns the number of declarations in the block.
pub fn len(&self) -> usize {
self.declarations.len()
}
/// Create an empty block
pub fn new() -> Self {
PropertyDeclarationBlock {