| 1512 | /// create parameters with specific values. |
| 1513 | #[cold] |
| 1514 | pub fn append_block_param_for_parser(&mut self, block: Block, ty: Type, val: Value) { |
| 1515 | let num = self.blocks[block].params.push(val, &mut self.value_lists); |
| 1516 | assert!(num <= u16::MAX as usize, "Too many parameters on block"); |
| 1517 | self.values[val] = ValueData::Param { |
| 1518 | ty, |
| 1519 | num: num as u16, |
| 1520 | block, |
| 1521 | } |
| 1522 | .into(); |
| 1523 | } |
| 1524 | |
| 1525 | /// Create a new value alias. This is only for use by the parser to create |
| 1526 | /// aliases with specific values, and the printer for testing. |