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

Method interface

crates/csharp/src/world_generator.rs:66–85  ·  view source on GitHub ↗
(
        &'a mut self,
        resolve: &'a Resolve,
        name: &'a str,
        direction: Direction,
        is_world: bool,
    )

Source from the content-addressed store, hash-verified

64 }
65
66 fn interface<'a>(
67 &'a mut self,
68 resolve: &'a Resolve,
69 name: &'a str,
70 direction: Direction,
71 is_world: bool,
72 ) -> InterfaceGenerator<'a> {
73 InterfaceGenerator {
74 src: String::new(),
75 csharp_interop_src: String::new(),
76 stub: String::new(),
77 csharp_gen: self,
78 resolve,
79 name,
80 direction,
81 futures: Vec::new(),
82 streams: Vec::new(),
83 is_world,
84 }
85 }
86
87 // returns the qualifier and last part
88 pub(crate) fn get_class_name_from_qualified_name(qualified_type: &str) -> (String, String) {

Callers 5

import_interfaceMethod · 0.45
import_funcsMethod · 0.45
export_interfaceMethod · 0.45
export_funcsMethod · 0.45
import_typesMethod · 0.45

Calls 1

newFunction · 0.85

Tested by

no test coverage detected