Lines Matching defs:protoBlock
20 void CatchBlock::Serialize(const panda::pandasm::Function::CatchBlock &block, protoPanda::CatchBlock &protoBlock)
22 protoBlock.set_wholeline(block.whole_line);
23 protoBlock.set_exceptionrecord(block.exception_record);
24 protoBlock.set_trybeginlabel(block.try_begin_label);
25 protoBlock.set_tryendlabel(block.try_end_label);
26 protoBlock.set_catchbeginlabel(block.catch_begin_label);
27 protoBlock.set_catchendlabel(block.catch_end_label);
30 void CatchBlock::Deserialize(const protoPanda::CatchBlock &protoBlock, panda::pandasm::Function::CatchBlock &block)
32 block.whole_line = protoBlock.wholeline();
33 block.exception_record = protoBlock.exceptionrecord();
34 block.try_begin_label = protoBlock.trybeginlabel();
35 block.try_end_label = protoBlock.tryendlabel();
36 block.catch_begin_label = protoBlock.catchbeginlabel();
37 block.catch_end_label = protoBlock.catchendlabel();
83 auto *protoBlock = protoFunction.add_catchblocks();
84 CatchBlock::Serialize(block, *protoBlock);