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

Method push

aiscript-vm/src/object.rs:59–63  ·  view source on GitHub ↗
(&mut self, value: Value<'gc>)

Source from the content-addressed store, hash-verified

57 }
58
59 pub fn push(&mut self, value: Value<'gc>) {
60 if self.kind == ListKind::Array {
61 self.data.push(value);
62 }
63 }
64
65 pub fn get(&self, index: usize) -> Option<Value<'gc>> {
66 self.data.get(index).copied()

Callers 15

read_raw_scriptMethod · 0.80
escape_stringMethod · 0.80
addMethod · 0.80
dropMethod · 0.80
barrierMethod · 0.80
traceMethod · 0.80
resurrectMethod · 0.80
fmtMethod · 0.80
add_search_pathMethod · 0.80
write_byteMethod · 0.80
add_constantMethod · 0.80
add_class_fieldMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_commandFunction · 0.64