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

Method location

cranelift/reader/src/sourcemap.rs:129–131  ·  view source on GitHub ↗

Get the source location where an entity was defined.

(&self, entity: AnyEntity)

Source from the content-addressed store, hash-verified

127
128 /// Get the source location where an entity was defined.
129 pub fn location(&self, entity: AnyEntity) -> Option<Location> {
130 self.locations.get(&entity).cloned()
131 }
132}
133
134impl SourceMap {

Callers 1

parse_function_bodyMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected