MCPcopy Create free account

hub / github.com/EarlGray/language-incubator / functions

Functions609 in github.com/EarlGray/language-incubator

↓ 68 callersMethodget
(&self, objref: JSRef)
js/slothjs/src/heap.rs:93
↓ 41 callersMethodmap_node
(&self, property: &str, mut action: F)
js/slothjs/src/parse/jsonnode.rs:39
↓ 35 callersFunctiondrop_cell
fp/secd/secd.c:320
↓ 33 callersFunctionnext_token
llvm/kldscp/ast.c:240
↓ 33 callersMethodto_ref
to_ref() tries to return the underlying object reference, if any. Throws Exception::ReferenceNotAnObject if it's not a reference. Checking if a JSValu
js/slothjs/src/value.rs:128
↓ 32 callersFunctionget_car
fp/secd/secd.c:205
↓ 31 callersMethodemit
(&mut self, code: &[u8])
bf/bfjc/src/jit.rs:73
↓ 30 callersMethodas_str
(&self)
js/slothjs/src/ast/expr.rs:183
↓ 28 callersFunctioncell_index
fp/secd/secd.c:179
↓ 27 callersMethodget_own_value
Tries to get JSValue of the own property `name`. This might call getters of the property.
js/slothjs/src/object.rs:135
↓ 26 callersFunctionnot_nil
fp/secd/secd.c:175
↓ 25 callersFunctionlist_next
fp/secd/secd.c:192
↓ 25 callersMethodstringify
stringify() makes everything into a string used for evaluation in a string context. It corresponds to .toString() in JavaScript
js/slothjs/src/value.rs:195
↓ 24 callersMethodas_str
(&self)
js/slothjs/src/value.rs:20
↓ 24 callersMethodget_mut
(&mut self, objref: JSRef)
js/slothjs/src/heap.rs:99
↓ 24 callersFunctionnew_cons
fp/secd/secd.c:358
↓ 23 callersFunctionshare_cell
fp/secd/secd.c:310
↓ 22 callersMethodarg_value
(&self, index: usize, heap: &mut Heap)
js/slothjs/src/function.rs:48
↓ 22 callersMethodto_value
This might call getters of the property.
js/slothjs/src/object.rs:546
↓ 21 callersMethodto_error
(&self)
js/slothjs/src/parse/jsonnode.rs:9
↓ 21 callersMethodto_string
`to_string()` makes a human-readable string representation of the value: ``` # use serde_json::json; # use slothjs::{JSValue, Heap}; # let mut heap =
js/slothjs/src/value.rs:178
↓ 19 callersFunctionatom_type
fp/secd/secd.c:166
↓ 19 callersFunctionerrorVal
llvm/kldscp/codegen.cpp:46
↓ 19 callersMethodexpect_str
Check that the value of `property` is a string equal to `value`. Depends on [`SourceNode::get_str`].
js/slothjs/src/parse/mod.rs:131
↓ 19 callersMethodnewElement
(tag, attrs, ...children)
js/slothjs/wasm/demo/src/index.js:23
↓ 18 callersMethodalloc
(&mut self, object: JSObject)
js/slothjs/src/heap.rs:109
↓ 18 callersMethodnew
(pages: Pages)
bf/bfjc/src/jit.rs:53
↓ 17 callersMethodchars
(&self)
js/slothjs/src/value.rs:28
↓ 17 callersMethodnumberify
numberify() tries to make everything into a numeric value for evalation in a numeric context. It is slightly more strict than `+value` in JavaScript:
js/slothjs/src/value.rs:225
↓ 17 callersFunctionpop_stack
fp/secd/secd.c:459
↓ 16 callersFunctionis_cons
fp/secd/secd.c:211
↓ 15 callersFunctionis_nil
fp/secd/secd.c:171
↓ 14 callersMethodevaluate
A wrapper for `.interpret` that also resolves the result to JSValue
js/slothjs/src/interpret.rs:16
↓ 13 callersMethodmap_opt_node
(&self, property: &str, action: F)
js/slothjs/src/parse/mod.rs:149
↓ 12 callersMethodas_array
It `self` is an Array, give its underlying storage.
js/slothjs/src/object.rs:102
↓ 12 callersFunctioncell_type
fp/secd/secd.c:158
↓ 12 callersMethodlog
(self, msg)
emu/bcpu/BCPU.py:188
↓ 12 callersFunctionpush_stack
fp/secd/secd.c:452
↓ 12 callersMethodset_hidden
A shortcut for defining a non-enumerable property and setting its value.
js/slothjs/src/object.rs:292
↓ 11 callersFunctionget_cdr
fp/secd/secd.c:208
↓ 11 callersFunctionprint_indent
llvm/kldscp/ast.c:650
↓ 11 callersFunctionpush_dump
fp/secd/secd.c:475
↓ 10 callersMethodget_str
(&self, property: &str)
js/slothjs/src/parse/jsonnode.rs:61
↓ 10 callersMethodinterpret
(&self, heap: &mut Heap)
js/slothjs/src/interpret.rs:27
↓ 10 callersMethodis_empty
(&self)
js/slothjs/src/value.rs:24
↓ 10 callersMethodlocal_scope
If there's a local scope, return a `JSRef` to it.
js/slothjs/src/heap.rs:198
↓ 10 callersMethodmap_array
(&self, property: &str, func: F)
js/slothjs/src/parse/jsonnode.rs:68
↓ 10 callersMethodnext
(&mut self)
js/slothjs/src/error.rs:213
↓ 10 callersFunctionparse_expr
llvm/kldscp/ast.c:484
↓ 10 callersMethodset_property
If `name` is a number and `self` is an Array, just set the array elemnt to `value`. Otherwise: if the own property `name` does not exist, create it wi
js/slothjs/src/object.rs:261
↓ 9 callersMethodset_system
are these shortcuts a good idea? A shortcut for `define_own_property(Access::NONE)` and assigning the value.
js/slothjs/src/object.rs:284
↓ 9 callersMethodto_value
(&self)
js/slothjs/src/ast/expr.rs:120
↓ 8 callersMethodboolify
boolify() treats everythings as a truthy value. ES5: ToBoolean
js/slothjs/src/value.rs:249
↓ 8 callersFunctioncodegen
llvm/kldscp/codegen.cpp:313
↓ 8 callersMethodemit_u32
(&mut self, val: u32)
bf/bfjc/src/jit.rs:81
↓ 8 callersFunctionlist_head
fp/secd/secd.c:201
↓ 8 callersFunctionprintc
fp/secd/secd.c:265
↓ 8 callersFunctionsymname
fp/secd/secd.c:184
↓ 7 callersMethodarg_as_number
(&self, argnum: usize, heap: &Heap)
js/slothjs/src/function.rs:55
↓ 7 callersFunctionastmalloc
llvm/kldscp/ast.c:280
↓ 7 callersFunctioncons
(hd, tl)
fp/secdjs/secd.js:32
↓ 7 callersFunctionlit
make a [`Literal`] from `value` - `lit(2)` is `2` in JavaScript - `lit(true)` is `true` in JavaScript - ... DO NOT USE this for arrays and objects,
js/slothjs/src/ast/expr.rs:351
↓ 7 callersMethodref_to_string
(&mut self, href: JSRef)
js/slothjs/src/builtin/string.rs:39
↓ 7 callersMethodreg_at
(command, pos, linenum)
emu/bcpu/BCPU.py:126
↓ 7 callersMethodscope_mut
(&mut self)
js/slothjs/src/heap.rs:210
↓ 7 callersFunctionto_bool
fp/secd/secd.c:556
↓ 7 callersMethodto_error
(&self)
js/slothjs/src/parse/heapnode.rs:58
↓ 6 callersMethodalloc_func
(&mut self, func: HostFn)
js/slothjs/src/heap.rs:115
↓ 6 callersMethodexecute
Given a `func_ref` to a closure or a native call and a set of arguments, executes the function. `this_ref` is bound as `this`.
js/slothjs/src/heap.rs:365
↓ 6 callersMethodget_bool
(&self, property: &str)
js/slothjs/src/parse/jsonnode.rs:52
↓ 6 callersFunctionid
make an [`Identifier`] from `name` (JS: `name`)
js/slothjs/src/ast/expr.rs:359
↓ 6 callersMethodinit_class
(&mut self, proto: JSRef, class: &HostClass)
js/slothjs/src/heap.rs:120
↓ 6 callersFunctionnil
()
fp/secdjs/secd.js:33
↓ 6 callersFunctionpop_control
fp/secd/secd.c:471
↓ 6 callersFunctionprint_cell
fp/secd/secd.c:233
↓ 5 callersFunctionarithm_op
fp/secd/secd.c:628
↓ 5 callersFunctioncell_secd
fp/secd/secd.c:162
↓ 5 callersFunctioncodegenFunDef
llvm/kldscp/codegen.cpp:278
↓ 5 callersMethodevaluate
A shortcut for `interpretable.evaluate(&mut heap)`.
js/slothjs/src/heap.rs:359
↓ 5 callersFunctionlist_append
llvm/kldscp/ast.c:39
↓ 5 callersMethodlookup_value
Check own and all inherited properties for `name` and returns the first found value. ES5: \[\[Get\]\], None corresponds to `undefined`
js/slothjs/src/object.rs:173
↓ 5 callersFunctionnew_clone
fp/secd/secd.c:383
↓ 5 callersFunctionnew_symbol
fp/secd/secd.c:374
↓ 5 callersFunctionnextchar
fp/secd/secd.c:1305
↓ 5 callersFunctionparse_error
llvm/kldscp/ast.c:338
↓ 5 callersFunctionparseinit
llvm/kldscp/ast.c:267
↓ 5 callersFunctionpop_free
fp/secd/secd.c:337
↓ 5 callersMethodproperty
(&self, name: &str)
js/slothjs/src/parse/heapnode.rs:41
↓ 5 callersMethodset
- if own property `name` does not exist, create it with the given `content` and `access`. - if `name` is a number and `self` is an Array, assign value
js/slothjs/src/object.rs:251
↓ 5 callersMethodset_nonconf
A shortcut for defining a non-configurable property and setting its value.
js/slothjs/src/object.rs:300
↓ 5 callersMethodto_primitive
It's roughly `Object.valueOf(self)`
js/slothjs/src/object.rs:91
↓ 5 callersMethodwith_name
(mut self, name: JSString)
js/slothjs/src/function.rs:43
↓ 5 callersMethodwith_this
(mut self, this_ref: JSRef)
js/slothjs/src/function.rs:38
↓ 4 callersFunctionadd
make a [`BinaryExpression`] (`left`, [`BinOp::Plus`], `right`)
js/slothjs/src/ast/expr.rs:415
↓ 4 callersFunctionbinop_precedence
llvm/kldscp/ast.c:110
↓ 4 callersMethodcall
(self, call: CallContext, heap: &mut Heap)
js/slothjs/src/function.rs:83
↓ 4 callersMethodenumerable
(&self)
js/slothjs/src/object.rs:522
↓ 4 callersFunctionfree_ast
llvm/kldscp/ast.c:727
↓ 4 callersFunctionfree_cell
fp/secd/secd.c:416
↓ 4 callersFunctioninit_parser
fp/secd/secd.c:1287
next →1–100 of 609, ranked by callers