MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / switch

Method switch

aiscript-arena/src/context.rs:638–646  ·  view source on GitHub ↗
(&mut self, phase: Phase)

Source from the content-addressed store, hash-verified

636 }
637
638 fn switch(&mut self, phase: Phase) {
639 self.cx.phase.set(phase);
640
641 #[cfg(feature = "tracing")]
642 {
643 let _ = mem::replace(&mut self.span, tracing::Span::none().entered());
644 self.span = Self::span_for(&self.cx.metrics, phase).entered();
645 }
646 }
647
648 fn log_progress(&mut self, #[allow(unused)] message: &str) {
649 // TODO: add more infos here

Callers 1

do_collection_innerMethod · 0.80

Calls 2

replaceFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected