MCPcopy Index your code
hub / github.com/endbasic/endbasic / temp_scope

Method temp_scope

core/src/compiler/syms.rs:474–484  ·  view source on GitHub ↗

Enters a new temporary scope.

(&self)

Source from the content-addressed store, hash-verified

472
473 /// Enters a new temporary scope.
474 pub(crate) fn temp_scope(&self) -> TempScope {
475 let nlocals = u8::try_from(self.symtable.locals.len())
476 .expect("Cannot have allocated more locals than u8");
477 TempScope {
478 base_temp: *self.next_temp.borrow(),
479 nlocals,
480 ntemps: 0,
481 next_temp: self.next_temp.clone(),
482 count_temps: self.count_temps.clone(),
483 }
484 }
485}
486
487/// A scope for temporary registers.

Callers 15

compile_array_accessFunction · 0.80
compile_pending_opsFunction · 0.80
compile_exprFunction · 0.80
compile_assignmentFunction · 0.80
compile_case_guardFunction · 0.80
compile_guardFunction · 0.80
compile_forFunction · 0.80
compile_ifFunction · 0.80
compile_whileFunction · 0.80
compile_stmtFunction · 0.80
test_temp_scope_firstFunction · 0.80

Calls 1

lenMethod · 0.45