Split out growth functionality into BitVector type

This commit is contained in:
Mark Rousskov
2018-07-30 08:58:14 -06:00
parent 1d64b241cd
commit 9bc4fbb10a
15 changed files with 117 additions and 99 deletions

View File

@@ -87,8 +87,8 @@ impl Globals {
Globals {
// We have no idea how many attributes their will be, so just
// initiate the vectors with 0 bits. We'll grow them as necessary.
used_attrs: Lock::new(BitVector::new(0)),
known_attrs: Lock::new(BitVector::new(0)),
used_attrs: Lock::new(BitVector::new()),
known_attrs: Lock::new(BitVector::new()),
syntax_pos_globals: syntax_pos::Globals::new(),
}
}