MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / base_srcloc

Method base_srcloc

cranelift/codegen/src/ir/function.rs:98–100  ·  view source on GitHub ↗

Returns the base `SourceLoc`. If it was never explicitly set with `ensure_base_srcloc`, will return an invalid `SourceLoc`.

(&self)

Source from the content-addressed store, hash-verified

96 /// If it was never explicitly set with `ensure_base_srcloc`, will return an invalid
97 /// `SourceLoc`.
98 pub fn base_srcloc(&self) -> SourceLoc {
99 self.base_srcloc.unwrap_or_default()
100 }
101
102 /// Sets the base `SourceLoc`, if not set yet, and returns the base value.
103 pub fn ensure_base_srcloc(&mut self, srcloc: SourceLoc) -> SourceLoc {

Callers 4

set_val_labelMethod · 0.80
apply_paramsMethod · 0.80
srclocMethod · 0.80
cast_index_to_pointer_tyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected