Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NeilFraser/JS-Interpreter
/ functions
Functions
190 in github.com/NeilFraser/JS-Interpreter
⨍
Functions
190
◇
Types & classes
0
↓ 52 callers
Function
G
(a,b,d)
acorn_interpreter.js:107
↓ 40 callers
Function
finishNode
* Finish an AST node, adding `type` and `end` properties. * * @param {!node_t} node * @param {string} type * @returns {!node_t}
acorn.js:1344
↓ 40 callers
Function
z
(f,h)
acorn_interpreter.js:19
↓ 37 callers
Function
c
(f,h)
acorn_interpreter.js:7
↓ 36 callers
Function
raise
* This function is used to raise exceptions on parse errors. It * takes an offset integer (into the current `input`) to indicate * the location
acorn.js:322
↓ 33 callers
Function
B
()
acorn_interpreter.js:18
↓ 33 callers
Function
next
* Continue to the next token.
acorn.js:1251
↓ 23 callers
Function
E
(f)
acorn_interpreter.js:19
↓ 23 callers
Function
eat
* Predicate that tests whether the next token is of the given * type, and if yes, consumes it as a side effect. * @param {!Object} type * @re
acorn.js:1374
↓ 22 callers
Function
Q
(a,b,d)
acorn_interpreter.js:86
↓ 21 callers
Function
P
(a,b,d,c)
acorn_interpreter.js:102
↓ 20 callers
Function
H
(f)
acorn_interpreter.js:19
↓ 20 callers
Function
expect
* Expect a token of a given type. If found, consume it, otherwise, * raise an unexpected token error. * * @param {!Object} type
acorn.js:1409
↓ 18 callers
Function
L
(f,h)
acorn_interpreter.js:14
↓ 18 callers
Function
callback
(value)
interpreter.js:4262
↓ 18 callers
Function
finishOp
* @param {!Object} type * @param {number} size
acorn.js:933
↓ 18 callers
Function
finishToken
* Called at the end of every token. Sets `tokEnd`, `tokVal`, and * `tokRegexpAllowed`, and skips the space after the token, so that * the next o
acorn.js:604
↓ 18 callers
Function
k
(f,h)
acorn_interpreter.js:8
↓ 17 callers
Function
M
()
acorn_interpreter.js:18
↓ 17 callers
Function
startNode
* @returns {!node_t}
acorn.js:1302
↓ 16 callers
Function
N
(f, h)
acorn_interpreter.js:25
↓ 16 callers
Function
d
(f)
acorn_interpreter.js:7
↓ 16 callers
Function
parseExpression
* Parse a full expression. The arguments are used to forbid comma * sequences (in argument lists, array literals, or object literals) * or the `
acorn.js:1848
↓ 14 callers
Function
e
(f)
acorn_interpreter.js:8
↓ 9 callers
Function
Cc
(a)
acorn_interpreter.js:106
↓ 9 callers
Function
Dc
(a,b)
acorn_interpreter.js:95
↓ 9 callers
Function
aa
()
acorn_interpreter.js:19
↓ 9 callers
Function
ba
(f)
acorn_interpreter.js:32
↓ 9 callers
Function
unexpected
* Raise an unexpected token error. * @throws {SyntaxError}
acorn.js:1421
↓ 8 callers
Function
ja
(f)
acorn_interpreter.js:18
↓ 8 callers
Function
parseIdent
* Parse the next token as an identifier. If `liberal` is true (used * when parsing properties), it will also convert keywords into * identifiers
acorn.js:2266
↓ 8 callers
Function
startNodeFrom
* Start a node whose start offset information should be based on * the start of another node. For example, a binary operator node is * only star
acorn.js:1324
↓ 7 callers
Function
ea
(a,b,d)
acorn_interpreter.js:49
↓ 7 callers
Function
g
()
acorn_interpreter.js:8
↓ 7 callers
Function
oa
()
acorn_interpreter.js:19
↓ 7 callers
Function
semicolon
* Consume a semicolon, or, failing that, see if we are allowed to * pretend that there is a semicolon at this position.
acorn.js:1397
↓ 6 callers
Function
Jc
(a,b)
acorn_interpreter.js:81
↓ 6 callers
Function
createErrorSubclass
(name)
interpreter.js:2318
↓ 6 callers
Function
ia
(f)
acorn_interpreter.js:14
↓ 6 callers
Function
readToken
* @param {boolean=} forceRegexp
acorn.js:897
↓ 5 callers
Function
C
()
acorn_interpreter.js:8
↓ 5 callers
Function
Ea
(f,h)
acorn_interpreter.js:15
↓ 5 callers
Function
Ec
(a)
acorn_interpreter.js:90
↓ 5 callers
Function
Fc
(a,b,d)
acorn_interpreter.js:89
↓ 5 callers
Function
Ga
()
acorn_interpreter.js:24
↓ 5 callers
Function
Gc
(a,b,d,c,e)
acorn_interpreter.js:88
↓ 5 callers
Function
Hc
(a,b,d,c)
acorn_interpreter.js:89
↓ 5 callers
Function
Ia
(f)
acorn_interpreter.js:24
↓ 5 callers
Function
Ic
(a,b,d,c)
acorn_interpreter.js:102
↓ 5 callers
Function
Sa
(a)
acorn_interpreter.js:48
↓ 5 callers
Function
d
(a,d)
demos/diff_match_patch.js:34
↓ 5 callers
Function
jd
(a,b,d,c)
acorn_interpreter.js:108
↓ 5 callers
Function
ld
(a,b,d)
acorn_interpreter.js:113
↓ 5 callers
Function
parseBlock
* Parse a semicolon-enclosed block of statements, handling `"use * strict"` declarations when `allowStrict` is true (used for * function bodies)
acorn.js:1755
↓ 5 callers
Function
parseParenExpression
* Used for constructs like `switch` and `if` that insist on * parentheses around their expression. * * @returns {!node_t}
acorn.js:1740
↓ 5 callers
Function
readInt
* Read an integer in the given radix. Return null if zero digits * were read, the integer value otherwise. When `len` is given, this * will retu
acorn.js:998
↓ 5 callers
Function
skipSpace
()
acorn.js:654
↓ 5 callers
Function
throwIfNullUndefined
(value)
interpreter.js:859
↓ 4 callers
Function
Ta
(a)
acorn_interpreter.js:102
↓ 4 callers
Function
U
()
acorn_interpreter.js:20
↓ 4 callers
Function
Wa
(f)
acorn_interpreter.js:17
↓ 4 callers
Function
Ya
()
acorn_interpreter.js:19
↓ 4 callers
Function
Za
(f)
acorn_interpreter.js:19
↓ 4 callers
Function
b
(a,b)
demos/diff_match_patch.js:20
↓ 4 callers
Function
c
(a)
demos/diff_match_patch.js:11
↓ 4 callers
Function
canInsertSemicolon
* Test whether a semicolon can be inserted at the current position. * * @returns {boolean}
acorn.js:1387
↓ 4 callers
Function
checkLVal
* Verify that a node is an lval — something that can be assigned to. * * @param {!node_t} expr
acorn.js:1430
↓ 4 callers
Function
isIdentifierStart
(code)
acorn.js:550
↓ 4 callers
Function
makePredicate
* @param {string} words * @returns {function(*): boolean}
acorn.js:495
↓ 4 callers
Function
parseStatement
* Parse a single statement. * * If expecting a statement and finding a slash operator, parse a * regular expression literal. This is to handl
acorn.js:1489
↓ 4 callers
Function
readHexChar
* Used to read character escape sequences ('\x', '\u', '\U'). * * @param {number} len * @returns {number}
acorn.js:1155
↓ 3 callers
Function
Ab
(f,h,l)
acorn_interpreter.js:31
↓ 3 callers
Function
Kc
(a,b,d)
acorn_interpreter.js:86
↓ 3 callers
Function
Lc
(a,b,d)
acorn_interpreter.js:87
↓ 3 callers
Function
Qb
(a,b,d,c)
acorn_interpreter.js:91
↓ 3 callers
Function
W
(a,b)
acorn_interpreter.js:110
↓ 3 callers
Function
bd
(a,b,d)
acorn_interpreter.js:90
↓ 3 callers
Function
cb
(a,b,d)
acorn_interpreter.js:105
↓ 3 callers
Function
cd
(a,b,d)
acorn_interpreter.js:97
↓ 3 callers
Function
ed
(a,b,d)
acorn_interpreter.js:102
↓ 3 callers
Function
fd
(a,b)
acorn_interpreter.js:103
↓ 3 callers
Function
hd
(a,b)
acorn_interpreter.js:106
↓ 3 callers
Function
id
(a,b,d)
acorn_interpreter.js:107
↓ 3 callers
Function
isUseStrict
* Test whether a statement node is the string literal `"use strict"`. * * @param {!node_t} stmt * @returns {boolean}
acorn.js:1362
↓ 3 callers
Function
ka
(a,b,d)
acorn_interpreter.js:102
↓ 3 callers
Function
la
(a,b,d)
acorn_interpreter.js:48
↓ 3 callers
Function
lb
(f)
acorn_interpreter.js:18
↓ 3 callers
Function
md
(a,b,d,c)
acorn_interpreter.js:114
↓ 3 callers
Function
nb
(f)
acorn_interpreter.js:19
↓ 3 callers
Function
nd
(a,b)
acorn_interpreter.js:114
↓ 3 callers
Function
parseExprAtom
* Parse an atomic expression — either a single token that is an expression, * an expression started by a keyword like `function` or `new`, * or
acorn.js:2019
↓ 3 callers
Function
parseExprList
* Parses a comma-separated list of expressions, and returns them as * an array. `close` is the token type that ends the list, and * `allowEmpty`
acorn.js:2239
↓ 3 callers
Function
parseFor
* Parse a regular `for` loop. The disambiguation code in `parseStatement` * will already have parsed the init statement or expression. * * @p
acorn.js:1783
↓ 3 callers
Function
parseFunction
* Parse a function declaration or literal (depending on the * `isStatement` parameter). * * @param {!node_t} node * @param {boolean} isSta
acorn.js:2175
↓ 3 callers
Function
q
()
acorn_interpreter.js:8
↓ 3 callers
Function
rb
(f,h)
acorn_interpreter.js:25
↓ 3 callers
Function
setStrict
* Enter strict mode. Re-reads the next token to please pedantic * tests ("use strict"; 010; -- should fail). * * @param {boolean} strct
acorn.js:1264
↓ 3 callers
Function
skipLineComment
()
acorn.js:637
↓ 3 callers
Function
ub
(f,h)
acorn_interpreter.js:30
↓ 2 callers
Function
Ja
(f,h)
acorn_interpreter.js:27
next →
1–100 of 190, ranked by callers