MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / collection_phase

Method collection_phase

aiscript-arena/src/arena.rs:246–259  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

244
245 #[inline]
246 pub fn collection_phase(&self) -> CollectionPhase {
247 match self.context.phase() {
248 Phase::Mark => {
249 if self.context.gray_remaining() {
250 CollectionPhase::Marking
251 } else {
252 CollectionPhase::Marked
253 }
254 }
255 Phase::Sweep => CollectionPhase::Sweeping,
256 Phase::Sleep => CollectionPhase::Sleeping,
257 Phase::Drop => unreachable!(),
258 }
259 }
260}
261
262impl<R> Arena<R>

Callers 1

interpretMethod · 0.80

Calls 2

phaseMethod · 0.80
gray_remainingMethod · 0.80

Tested by

no test coverage detected