MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / get_export

Method get_export

aiscript-vm/src/module.rs:35–40  ·  view source on GitHub ↗
(&self, name: InternedString<'gc>)

Source from the content-addressed store, hash-verified

33 }
34
35 pub fn get_export(&self, name: InternedString<'gc>) -> Option<Value<'gc>> {
36 match self {
37 ModuleKind::Script { exports, .. } => exports.get(&name).copied(),
38 ModuleKind::Native { exports, .. } => exports.get(&name).copied(),
39 }
40 }
41
42 pub fn add_export(&mut self, name: InternedString<'gc>, value: Value<'gc>) {
43 match self {

Callers 2

dispatch_nextMethod · 0.80
invokeMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected