MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / end_resource

Method end_resource

crates/csharp/src/interface.rs:1525–1548  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1523 }
1524
1525 pub(crate) fn end_resource(&mut self) {
1526 if self.direction == Direction::Export && self.csharp_gen.opts.generate_stub {
1527 uwriteln!(
1528 self.stub,
1529 "
1530 }}
1531 "
1532 );
1533 }
1534
1535 uwriteln!(
1536 self.src,
1537 "
1538 }}
1539 "
1540 );
1541
1542 uwrite!(
1543 self.csharp_interop_src,
1544 "
1545 }}
1546 "
1547 );
1548 }
1549
1550 fn sig_string(&mut self, func: &Function, qualifier: bool) -> String {
1551 let result_type = self.func_return_type(&func, qualifier);

Callers 4

import_interfaceMethod · 0.80
import_funcsMethod · 0.80
export_interfaceMethod · 0.80
export_funcsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected