MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / add_dynamic

Method add_dynamic

src/lower2/constant_pool.rs:251–262  ·  view source on GitHub ↗
(
        &mut self,
        bootstrap_method_attr_index: u16,
        name: N,
        descriptor: D,
    )

Source from the content-addressed store, hash-verified

249 #[allow(dead_code)]
250 pub(super) fn add_dynamic<N: AsRef<str>, D: AsRef<str>>(
251 &mut self,
252 bootstrap_method_attr_index: u16,
253 name: N,
254 descriptor: D,
255 ) -> jvm::Result<u16> {
256 let name_and_type_index = self.add_name_and_type(name, descriptor)?;
257 self.add(Constant::Dynamic {
258 bootstrap_method_attr_index,
259 name_and_type_index,
260 })
261 }
262
263 pub(super) fn add_invoke_dynamic<N: AsRef<str>, D: AsRef<str>>(
264 &mut self,
265 bootstrap_method_attr_index: u16,

Callers

nothing calls this directly

Calls 2

add_name_and_typeMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected