MCPcopy Create free account

hub / github.com/TomBebbington/js.rs / functions

Functions209 in github.com/TomBebbington/js.rs

↓ 63 callersFunctionto_value
A utility function that just calls ToValue::to_value
src/lib/front/stdlib/value.rs:559
↓ 28 callersMethodget_token
(&self, pos:uint)
src/lib/syntax/parser.rs:373
↓ 24 callersMethodcompile
Compile an expression
src/lib/front/run/compiler.rs:11
↓ 20 callersMethodbinop
(&mut self, op:BinOp, orig:Expr)
src/lib/syntax/parser.rs:499
↓ 20 callersMethodparse
Parse a single expression
src/lib/syntax/parser.rs:224
↓ 19 callersMethodto_num
Converts the value into a 64-bit floating point number
src/lib/front/stdlib/value.rs:136
↓ 14 callersMethodget_field
Resolve the property in the object and get its value, or undefined if this is not an object or the field doesn't exist
src/lib/front/stdlib/value.rs:179
↓ 14 callersMethodset_field
Set the field in the value
src/lib/front/stdlib/value.rs:186
↓ 12 callersMethodpush_punc
(&mut self, punc:Punctuator)
src/lib/syntax/lexer.rs:77
↓ 12 callersMethodto_int
Converts the value into a 32-bit integer
src/lib/front/stdlib/value.rs:150
↓ 11 callersMethodexpect_punc
(&mut self, p:Punctuator, routine:&'static str)
src/lib/syntax/parser.rs:527
↓ 11 callersFunctioninit
Initialise the URI functions on the global object
src/lib/front/stdlib/uri.rs:26
↓ 9 callersFunctionfrom_value
A utility function that just calls FromValue::from_value
src/lib/front/stdlib/value.rs:554
↓ 6 callersMethodexpect
Returns an error if the next symbol is not `tk`
src/lib/syntax/parser.rs:516
↓ 6 callersMethodnext
(&mut self)
src/lib/syntax/lexer.rs:90
↓ 6 callersMethodpreview_next
(&mut self)
src/lib/syntax/lexer.rs:93
↓ 6 callersMethodpush_token
(&mut self, tk:TokenData)
src/lib/syntax/lexer.rs:73
↓ 4 callersMethodlex
Processes an input stream from the `buffer` into a vector of tokens
src/lib/syntax/lexer.rs:105
↓ 4 callersMethodrun
Run the tests mode
src/bin/tests.rs:94
↓ 3 callersMethodexecute
(&self, comp:&(JITVal<'a>, &'a Function<'a>))
src/lib/back/executor.rs:37
↓ 3 callersMethodis_null_or_undefined
Returns true if the value is null or undefined
src/lib/front/stdlib/value.rs:104
↓ 3 callersMethodparse_all
Parse all expressions in the token array
src/lib/syntax/parser.rs:71
↓ 2 callersMethodconvert_bool
(&'a self, val:Value<'a>)
src/lib/back/compiler.rs:32
↓ 2 callersMethodget_global_obj
(&self)
src/lib/back/executor.rs:34
↓ 2 callersMethodget_precedence
(&self)
src/lib/syntax/ast/op.rs:159
↓ 2 callersMethodget_prop
Resolve the property in the object
src/lib/front/stdlib/value.rs:163
↓ 2 callersMethodget_type
Get the type of the value
src/lib/front/stdlib/value.rs:236
↓ 2 callersMethodis_string
Returns true if the value is a string
src/lib/front/stdlib/value.rs:118
↓ 2 callersMethodis_true
Returns true if the value is true
src/lib/front/stdlib/value.rs:125
↓ 2 callersMethodnext_is
(&mut self, peek:char)
src/lib/syntax/lexer.rs:97
↓ 2 callersMethodset_prop
Set the property in the value
src/lib/front/stdlib/value.rs:199
↓ 2 callersFunctionsquare
(x)
tests/asm.js:9
↓ 2 callersMethodto_json
( &self )
src/lib/front/stdlib/value.rs:302
↓ 2 callersMethodundefined
(&'a self)
src/lib/back/compiler.rs:55
↓ 1 callersFunctionDiagModule
(stdlib, foreign, heap)
tests/asm.js:2
↓ 1 callersMethodcompile_array_decl
Compile an array declaration
src/lib/front/run/compiler.rs:128
↓ 1 callersMethodcompile_arrow_function_decl
Compile an arrow function declaration
src/lib/front/run/compiler.rs:136
↓ 1 callersMethodcompile_assign
Compile an assignment
src/lib/front/run/compiler.rs:152
↓ 1 callersMethodcompile_bin_op
Compile a binary operation
src/lib/front/run/compiler.rs:63
↓ 1 callersMethodcompile_bit_op
Compile a bitwise operation
src/lib/front/run/compiler.rs:76
↓ 1 callersMethodcompile_block
Compile a block of expressions
src/lib/front/run/compiler.rs:96
↓ 1 callersMethodcompile_call
Compile a call to a function with some arguments
src/lib/front/run/compiler.rs:108
↓ 1 callersMethodcompile_comp_op
Compile a comparitive operation
src/lib/front/run/compiler.rs:80
↓ 1 callersMethodcompile_const
Compile a constant
src/lib/front/run/compiler.rs:88
↓ 1 callersMethodcompile_construct
Compile a construction of an object
src/lib/front/run/compiler.rs:140
↓ 1 callersMethodcompile_function_decl
Compile a function declaration
src/lib/front/run/compiler.rs:132
↓ 1 callersMethodcompile_get_const_field
Compile constant field access for an object
src/lib/front/run/compiler.rs:100
↓ 1 callersMethodcompile_get_field
Compile field access for an object
src/lib/front/run/compiler.rs:104
↓ 1 callersMethodcompile_if
Compile an if statement
src/lib/front/run/compiler.rs:116
↓ 1 callersMethodcompile_local
Compile a local variable
src/lib/front/run/compiler.rs:92
↓ 1 callersMethodcompile_log_op
Compile a logical operation
src/lib/front/run/compiler.rs:84
↓ 1 callersMethodcompile_num_op
Compile a numeric operation
src/lib/front/run/compiler.rs:72
↓ 1 callersMethodcompile_object_decl
Compile an object declaration
src/lib/front/run/compiler.rs:124
↓ 1 callersMethodcompile_return
Compile a return expression
src/lib/front/run/compiler.rs:144
↓ 1 callersMethodcompile_switch
Compile a switch statement
src/lib/front/run/compiler.rs:120
↓ 1 callersMethodcompile_throw
Compile a throw expression
src/lib/front/run/compiler.rs:148
↓ 1 callersMethodcompile_typeof
Compile a typeof expression
src/lib/front/run/compiler.rs:160
↓ 1 callersMethodcompile_unary_op
Compile a unary operation
src/lib/front/run/compiler.rs:59
↓ 1 callersMethodcompile_var_decl
Compile a variable declaration
src/lib/front/run/compiler.rs:156
↓ 1 callersMethodcompile_while_loop
Compile a while loop
src/lib/front/run/compiler.rs:112
↓ 1 callersFunctionconvert_to_value
(func:&Function<'a>, val:&'a JITVal<'a>)
src/lib/back/executor.rs:49
↓ 1 callersMethodderef
(&'a self)
src/lib/front/stdlib/value.rs:25
↓ 1 callersFunctiondiag
(x, y)
tests/asm.js:14
↓ 1 callersFunctionfind_attrs
(tokens: Vec<Token>)
src/bin/tests.rs:15
↓ 1 callersMethodget_assoc
(&self)
src/lib/syntax/ast/op.rs:156
↓ 1 callersMethodget_precedence_and_assoc
Get the precedence and associativity of this operator
src/lib/syntax/ast/op.rs:10
↓ 1 callersMethodparse_next
(&mut self, expr:Expr)
src/lib/syntax/parser.rs:380
↓ 1 callersMethodparse_struct
(&mut self, keyword:Keyword)
src/lib/syntax/parser.rs:79
↓ 1 callersMethodrun_test
Run a test
src/bin/tests.rs:45
↓ 1 callersMethodrun_tests_in
Run all the tests in `path`
src/bin/tests.rs:84
↓ 1 callersFunctionsqrt
Get the square root of a number
src/lib/front/stdlib/math.rs:143
↓ 1 callersMethodto_value
(&self)
src/lib/front/stdlib/value.rs:404
Function_create
Create a new `console` object
src/lib/front/stdlib/console.rs:20
Function_create
Create a new `Number` object
src/lib/front/stdlib/number.rs:60
Function_create
Create a new `Boolean` object
src/lib/front/stdlib/boolean.rs:9
Function_create
Create a new `Array` object
src/lib/front/stdlib/array.rs:10
Function_create
Create a new `String` object
src/lib/front/stdlib/string.rs:16
Function_create
Create a new `JSON` object
src/lib/front/stdlib/json.rs:23
Function_create
Create a new `Object` object
src/lib/front/stdlib/object.rs:101
Function_create
Create a new `Error` object
src/lib/front/stdlib/error.rs:19
Function_create
Create a new `Math` object
src/lib/front/stdlib/math.rs:159
Function_create
Create a new `Function` object
src/lib/front/stdlib/function.rs:34
Function_random
Generate a random floating-point number between 0 and 1
src/lib/front/stdlib/math.rs:123
Functionabs
Get the absolute value of a number
src/lib/front/stdlib/math.rs:7
Functionacos
Get the arccos of a number
src/lib/front/stdlib/math.rs:15
Methodadd
(&self, other:&Value)
src/lib/front/stdlib/value.rs:323
Functionasin
Get the arcsine of a number
src/lib/front/stdlib/math.rs:23
Methodassert
(args:Vec<Value>, _:Value, _:Value, _:Value)
src/bin/tests.rs:46
Functionatan
Get the arctangent of a number
src/lib/front/stdlib/math.rs:31
Functionatan2
Get the arctangent of a numbers
src/lib/front/stdlib/math.rs:39
Methodbitand
(&self, other:&Value)
src/lib/front/stdlib/value.rs:353
Methodbitor
(&self, other:&Value)
src/lib/front/stdlib/value.rs:358
Methodbitxor
(&self, other:&Value)
src/lib/front/stdlib/value.rs:363
Methodcall
Call with some args
src/lib/front/stdlib/function.rs:29
Functioncbrt
Get the cubic root of a number
src/lib/front/stdlib/math.rs:47
Functionceil
Get lowest integer above a number
src/lib/front/stdlib/math.rs:55
Methodcompile_bit_op
(&'a self, op:BitOp, left:&Expr, right:&Expr)
src/lib/back/compiler.rs:106
Methodcompile_block
(&'a self, block:Vec<Expr>)
src/lib/back/compiler.rs:85
Methodcompile_comp_op
(&'a self, op:CompOp, left:&Expr, right:&Expr)
src/lib/back/compiler.rs:130
Methodcompile_const
(&'a self, constant:&Const)
src/lib/back/compiler.rs:63
next →1–100 of 209, ranked by callers