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

Method add_string

src/lower2/constant_pool.rs:175–178  ·  view source on GitHub ↗
(&mut self, value: S)

Source from the content-addressed store, hash-verified

173 self.add(Constant::Class(name_index))
174 }
175
176 pub(super) fn add_string<S: AsRef<str>>(&mut self, value: S) -> jvm::Result<u16> {
177 let string_index = self.add_utf8(value)?;
178 self.add(Constant::String(string_index))
179 }
180
181 pub(super) fn add_field_ref<N: AsRef<str>, D: AsRef<str>>(

Callers 2

translate_instructionMethod · 0.80
load_constantFunction · 0.80

Calls 2

add_utf8Method · 0.80
addMethod · 0.80

Tested by

no test coverage detected