(
&self,
fun_idx: FunIdx,
args: Vec<G>,
io_buffer: &mut IOBuffer,
)
| 209 | |
| 210 | impl Toplevel { |
| 211 | pub fn execute( |
| 212 | &self, |
| 213 | fun_idx: FunIdx, |
| 214 | args: Vec<G>, |
| 215 | io_buffer: &mut IOBuffer, |
| 216 | ) -> Result<(QueryRecord, Vec<G>), ExecError> { |
| 217 | if !self.functions[fun_idx].entry { |
| 218 | return Err(ExecError::NotEntryFunction(fun_idx)); |
| 219 | } |
| 220 | let mut record = QueryRecord::new(self); |
| 221 | let function = &self.functions[fun_idx]; |
| 222 | let output = |
| 223 | function.execute(fun_idx, args, self, &mut record, io_buffer)?; |
| 224 | if *QUERY_STATS { |
| 225 | dump_query_stats(&record, "final"); |
| 226 | } |
| 227 | Ok((record, output)) |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | enum ExecEntry<'a> { |
no test coverage detected